public abstract class BeanProxy<ViewType> extends java.lang.Object implements DataListener
Modifier and Type | Field and Description |
---|---|
protected java.lang.Class<ViewType> |
PROTOTYPE_CLASS
prototype class
|
Constructor and Description |
---|
BeanProxy(java.lang.Class<ViewType> prototypeClass)
Constructor
|
Modifier and Type | Method and Description |
---|---|
abstract java.lang.String |
dataLabel()
Provides the name used to identify the class in an external data source.
|
ViewType |
getBeanInstance(java.lang.Class<ViewType> theClass)
Create an instance of the specified view
|
ViewType |
getBeanInstance(java.lang.Class<ViewType> theClass,
java.lang.reflect.Constructor<ViewType> constructor,
java.lang.Object... parameters)
Create an instance of the specified view
|
java.lang.Object[] |
getConstructorParameters()
Get the array of constructor arguments
|
java.lang.Class[] |
getConstructorParameterTypes()
Get the array of constructor arguments
|
javax.swing.Icon |
getIcon()
Get an icon representation for the view
|
java.lang.String |
getJavaDeclarationSnippet(BeanNode<ViewType> node)
Get the java declaration snippet
|
java.lang.String |
getJavaReferenceSnippet(BeanNode<?> node)
get the java reference snippet
|
java.lang.String |
getJythonReferenceSnippet(BeanNode<?> node)
get the jython reference snippet
|
java.lang.String |
getName()
get the name of the prototype
|
ViewType |
getPrototype()
Get the prototype view
|
java.lang.Class<ViewType> |
getPrototypeClass()
Get the class of the view
|
protected java.lang.String |
getReferenceSnippetFetchMethodArgumentsString(BeanNode<?> node)
Get the reference snippet method arguments
|
protected java.lang.String |
getReferenceSnippetFetchMethodName()
Get the reference snippet method name
|
java.lang.String |
getShortName()
get the short name of the prototype
|
java.lang.String |
getText()
Get a textual representation of the view
|
java.lang.String |
getType()
get the name of the prototype
|
java.lang.String |
getXALReferenceSnippet(BeanNode<ViewType> node)
get the java reference snippet
|
void |
setup(ViewType object)
setup the instance after construction
|
void |
setupPrototype(ViewType object)
setup the instance after construction with prototype data
|
java.lang.String |
toString()
get string representation
|
void |
update(DataAdaptor adaptor)
Update the data based on the information provided by the data provider.
|
void |
write(DataAdaptor adaptor)
Write data to the data adaptor for storage.
|
protected final java.lang.Class<ViewType> PROTOTYPE_CLASS
public BeanProxy(java.lang.Class<ViewType> prototypeClass)
public ViewType getBeanInstance(java.lang.Class<ViewType> theClass)
public ViewType getBeanInstance(java.lang.Class<ViewType> theClass, java.lang.reflect.Constructor<ViewType> constructor, java.lang.Object... parameters)
public void setup(ViewType object)
public void setupPrototype(ViewType object)
public final java.lang.Class<ViewType> getPrototypeClass()
public final ViewType getPrototype()
public java.lang.Class[] getConstructorParameterTypes()
public java.lang.Object[] getConstructorParameters()
public javax.swing.Icon getIcon()
public java.lang.String getType()
public java.lang.String getName()
public java.lang.String getShortName()
public java.lang.String getText()
public java.lang.String getJythonReferenceSnippet(BeanNode<?> node)
public java.lang.String getJavaReferenceSnippet(BeanNode<?> node)
public java.lang.String getXALReferenceSnippet(BeanNode<ViewType> node)
public java.lang.String getJavaDeclarationSnippet(BeanNode<ViewType> node)
protected java.lang.String getReferenceSnippetFetchMethodName()
protected java.lang.String getReferenceSnippetFetchMethodArgumentsString(BeanNode<?> node)
public abstract java.lang.String dataLabel()
dataLabel
in interface DataListener
public void update(DataAdaptor adaptor)
update
in interface DataListener
adaptor
- The adaptor from which to update the datapublic void write(DataAdaptor adaptor)
write
in interface DataListener
adaptor
- The adaptor to which the receiver's data is writtenpublic java.lang.String toString()
toString
in class java.lang.Object