public abstract class BeanNode<T> extends Brick implements DataListener
Modifier and Type | Field and Description |
---|---|
protected java.lang.String |
_customBeanClassName
custom bean class name
|
protected java.lang.String |
_tag
tag for identifying this node
|
protected static java.lang.String |
BEAN_DATA_LABEL
data label from bean properties
|
protected T |
BEAN_OBJECT
bean object
|
protected BeanProxy<T> |
BEAN_PROXY
the bean proxy
|
protected java.util.Map<java.lang.String,java.lang.Object> |
BEAN_SETTINGS
bean settings
|
EVENT_PROXY, MESSAGE_CENTER, TREE_NODE
Constructor and Description |
---|
BeanNode(BeanNode<T> node)
Constructor
|
BeanNode(BeanProxy<T> beanProxy)
Constructor
|
BeanNode(BeanProxy<T> beanProxy,
java.util.Map<java.lang.String,java.lang.Object> beanSettings,
java.lang.String tag)
Primary Constructor
|
Modifier and Type | Method and Description |
---|---|
protected void |
applyBeanSettings()
apply the bean settings
|
abstract java.lang.String |
dataLabel()
Provides the name used to identify the class in an external data source.
|
void |
display()
Display the bean's window
|
T |
getBeanObject()
Get the bean object
|
java.beans.BeanInfo |
getBeanObjectBeanInfo()
Get the bean info of the view.
|
BeanProxy<T> |
getBeanProxy()
Get the view proxy
|
java.lang.String |
getClassName()
get the fully qualified class name
|
java.lang.String |
getCustomBeanClassName()
Get this node's custom bean class name
|
java.lang.String |
getJavaDeclarationSnippet()
Get the java declaration snippet
|
java.lang.String |
getJavaReferenceSnippet()
get the java reference snippet
|
java.lang.String |
getJythonReferenceSnippet()
get the jython reference snippet
|
static DataListener |
getPropertyArchiver(java.lang.String name,
java.lang.Object value)
get the archiver of bean propertiers
|
java.lang.Object |
getPropertyValue(java.beans.PropertyDescriptor propertyDescriptor)
get the property value
|
protected java.util.Map<java.lang.String,java.beans.PropertyDescriptor> |
getProperyDescriptorTable()
Get the property descriptor table keyed by property name
|
protected T |
getPrototypeBean(BeanProxy<T> beanProxy)
get the bean instance
|
java.lang.String |
getShortClassName()
get the short version of the class name
|
java.lang.String |
getTag()
Get this node's tag
|
ViewNodeContainer |
getViewNodeContainer()
Get the containing node
|
java.lang.String |
getXALReferenceSnippet()
get the java reference snippet
|
boolean |
hasCustomBeanClass()
Determine whether this node has a custom bean class
|
void |
refreshDisplay()
refresh display
|
void |
setCustomBeanClassName(java.lang.String name)
Set this node's custom bean class name
|
void |
setPropertyValue(java.beans.PropertyDescriptor propertyDescriptor,
java.lang.Object value)
update the property with the specified value
|
void |
setTag(java.lang.String tag)
Set this node's tag
|
java.lang.String |
toString()
get a label
|
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.
|
addBrickListener, canAdd, canAddAll, canAddAllNodes, canAddNode, canAllBeSiblings, canAllNodesBeSiblings, canBeSibling, canNodeBeSibling, getContainingBrick, getParent, getTreeNode, isAncestorOf, removeBrickListener, removeFromParent
protected static final java.lang.String BEAN_DATA_LABEL
protected final T BEAN_OBJECT
protected final java.util.Map<java.lang.String,java.lang.Object> BEAN_SETTINGS
protected java.lang.String _tag
protected java.lang.String _customBeanClassName
public BeanNode(BeanProxy<T> beanProxy, java.util.Map<java.lang.String,java.lang.Object> beanSettings, java.lang.String tag)
public T getBeanObject()
public java.beans.BeanInfo getBeanObjectBeanInfo()
public java.lang.String getTag()
public void setTag(java.lang.String tag)
tag
- the new tagpublic boolean hasCustomBeanClass()
public java.lang.String getCustomBeanClassName()
public void setCustomBeanClassName(java.lang.String name)
name
- the new custom bean class namepublic java.lang.String getClassName()
public java.lang.String getShortClassName()
public java.lang.String getJythonReferenceSnippet()
public java.lang.String getJavaReferenceSnippet()
public java.lang.String getXALReferenceSnippet()
public java.lang.String getJavaDeclarationSnippet()
public void refreshDisplay()
protected void applyBeanSettings()
protected java.util.Map<java.lang.String,java.beans.PropertyDescriptor> getProperyDescriptorTable()
public java.lang.Object getPropertyValue(java.beans.PropertyDescriptor propertyDescriptor) throws java.lang.Exception
java.lang.Exception
public void setPropertyValue(java.beans.PropertyDescriptor propertyDescriptor, java.lang.Object value)
public ViewNodeContainer getViewNodeContainer()
public void display()
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 static DataListener getPropertyArchiver(java.lang.String name, java.lang.Object value)
public java.lang.String toString()
toString
in class java.lang.Object