NodeUpdater
based on introspection.
For beans that do not implement any interface we use the JavaBeans specification for doing the introspection of the properties we are interested in. Those properties should have at least an associated getter. The list of properties we look for is defined by the GPBean
interface.
This NodeUpdater also supports the BeanInfo
tagging done through the BeanTagger
class. Tagging a BeanInfo
allows to add information that is not directly supported by the BeanInfo
. Three tags are recognized by BeanNode
:
BeanTagger.getActions()
to get the actions for this node. By default no action is added. BeanTagger.getDefaultAction()
to get the default action for this node. By default the Property action is used. BeanTagger.isCacheable()
to get whether the value of the properties of the bean can be cached or not.
|
Creates a new |
|
Creates a new |
|
Creates a new |
|
Finds getter methods for the given getter name. The return type of the getter must be of type String |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Returns the internal display name of the associated bean. If null is returned a default name will be used.
Implements cern::gp::beans::GPBean.
|
|
Returns the internal name of the associated bean. If null is returned a default name will be used.
Implements cern::gp::beans::GPBean.
|
|
Returns an array of qualified name of actions for the node representing the associated bean. Null can be used in the array to represent a separator.
Implements cern::gp::beans::GPBean.
|
|
Returns the qualified name of the default action for the node representing the associated bean. The default action is the one triggered when the user double-clic on the node. If null is returned a default default action will be used.
Implements cern::gp::beans::GPBean.
|
|
Returns the icon in 16x16 size used to display the node representing the associated bean. If null is returned a default icon will be used.
Implements cern::gp::beans::GPBean.
|
|
Returns true if the value of the properties can be cached in the node, false if they cannot or null if no behavior is specified. The default behavior is not to cache the value of the properties. If the value of a property is not cached, the getter method will be invoked whenever the node need to get the value of the property.
If the value of the property is cached, the getter method for the property will only be invoked once to read the value. Then, whenever the node need the value of the property it will used the cached one until a
Caching values can improve performance greatly but it adds one more responsibility on the developer who has to fire
This property gives the caching strategy for all properties. It is possible to override the bean level caching strategy at the property level by using the property information
Implements cern::gp::beans::GPBean.
|
|
|
|
Returns an array of
Each
Implements cern::gp::beans::GPBean.
|
|
Returns a short description of the associated bean (used in tooltip for instance). If null is returned a default description will be used.
Implements cern::gp::beans::GPBean.
|
|
|
|
|
|
|
|
Returns whether or not the property having the given
|
|
|
|
bean |
|
bean info |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
listener for properties |
|
|
|
remove PropertyChangeListener method |
|
|
|
|
|
|
|
|
|
Initial value:
|
|
|
|
Initial value:
|
|
Initial value:
|
|
Initial value:
|
|
Initial value:
|
|
Initial value:
|
|
Initial value:
|
|
Initial value:
|