Package xal.extension.bricks
Class BeanProxy<T>
java.lang.Object
xal.extension.bricks.BeanProxy<T>
- All Implemented Interfaces:
DataListener
- Direct Known Subclasses:
BorderProxy,ViewProxy
proxy for generating a Java Bean object
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract StringProvides the name used to identify the class in an external data source.getBeanInstance(Class<T> theClass) Create an instance of the specified viewgetBeanInstance(Class<T> theClass, Constructor<T> constructor, Object... parameters) Create an instance of the specified viewObject[]Get the array of constructor argumentsClass[]Get the array of constructor argumentsgetIcon()Get an icon representation for the viewgetJavaDeclarationSnippet(BeanNode<T> node) Get the java declaration snippetgetJavaReferenceSnippet(BeanNode<?> node) get the java reference snippetgetJythonReferenceSnippet(BeanNode<?> node) get the Jython reference snippetgetName()get the name of the prototypefinal TGet the prototype viewGet the class of the viewprotected StringGet the reference snippet method argumentsprotected StringGet the reference snippet method nameget the short name of the prototypegetText()Get a textual representation of the viewgetType()get the name of the prototypegetXALReferenceSnippet(BeanNode<T> node) get the java reference snippetvoidsetup the instance after constructionvoidsetupPrototype(T object) setup the instance after construction with prototype datatoString()get string representationvoidupdate(DataAdaptor adaptor) Update the data based on the information provided by the data provider.voidwrite(DataAdaptor adaptor) Write data to the data adaptor for storage.
-
Field Details
-
prototypeClass
prototype class
-
-
Constructor Details
-
BeanProxy
Constructor
-
-
Method Details
-
getBeanInstance
Create an instance of the specified view -
getBeanInstance
Create an instance of the specified view -
setup
setup the instance after construction -
setupPrototype
setup the instance after construction with prototype data -
getPrototypeClass
Get the class of the view -
getPrototype
Get the prototype view- Returns:
- the prototype view
-
getConstructorParameterTypes
Get the array of constructor arguments- Returns:
- the constructor arguments
-
getConstructorParameters
Get the array of constructor arguments- Returns:
- the constructor arguments
-
getIcon
Get an icon representation for the view -
getType
get the name of the prototype -
getName
get the name of the prototype -
getShortName
get the short name of the prototype -
getText
Get a textual representation of the view -
getJythonReferenceSnippet
get the Jython reference snippet -
getJavaReferenceSnippet
get the java reference snippet -
getXALReferenceSnippet
get the java reference snippet -
getJavaDeclarationSnippet
Get the java declaration snippet- Returns:
- the java declaration snippet
-
getReferenceSnippetFetchMethodName
Get the reference snippet method name- Returns:
- the method name
-
getReferenceSnippetFetchMethodArgumentsString
Get the reference snippet method arguments- Returns:
- the method arguments
-
dataLabel
Provides the name used to identify the class in an external data source.- Specified by:
dataLabelin interfaceDataListener- Returns:
- a tag that identifies the receiver's type
-
update
Update the data based on the information provided by the data provider.- Specified by:
updatein interfaceDataListener- Parameters:
adaptor- The adaptor from which to update the data
-
write
Write data to the data adaptor for storage.- Specified by:
writein interfaceDataListener- Parameters:
adaptor- The adaptor to which the receiver's data is written
-
toString
get string representation
-