Public Member Functions | |
String | getName () |
String | getDisplayName () |
String | getShortDescription () |
java.awt.Image | getNodeIcon () |
String | getNodeDefaultAction () |
String[] | getNodeActions () |
Boolean | getNodePropertiesCacheable () |
PropertyInfo[] | getPropertyInfo () |
Static Public Attributes | |
final String | CLASS_PROPERTY_NAME = "class" |
final String | NAME_PROPERTY_NAME = "name" |
final String | DISPLAYNAME_PROPERTY_NAME = "displayName" |
final String | SHORTDESCRIPTION_PROPERTY_NAME = "shortDescription" |
final String | NODE_ICON_PROPERTY_NAME = "nodeIcon" |
final String | NODE_DEFAULT_ACTION_PROPERTY_NAME = "nodeDefaultAction" |
final String | NODE_ACTIONS_PROPERTY_NAME = "nodeActions" |
final String | NODE_PROPERTIES_CACHEABLE_PROPERTY_NAME = "nodePropertiesCacheable" |
final String | PROPERTY_INFO_PROPERTY_NAME = "propertyInfo" |
final String | NAME_PROPERTY_DISPLAY_NAME = "Name" |
final String | DISPLAYNAME_PROPERTY_DISPLAY_NAME = "Display name" |
final String | SHORTDESCRIPTION_PROPERTY_DISPLAY_NAME = "Short description" |
A node that is built based on a given bean will use introspection to find those methods. The bean can implements any of them and possibly none of them. The node will use whatever information is available to initialize itself. The information non available through those methods will be taken from the BeanInfo or defaulted to a given value.
A bean that aimed to be used in GP Layer can choose one of the following strategies :
BeanSupport
and override any of those methods to return an appropriated value. The methods non overriden are implemented in BeanSupport
and return null BeanSupport
. Since the methods are found by introspection it is not strictly necessary to implement this interface. Nevertheless the interface brings a compile time check that can prove to be useful. It the bean implements the interface it needs to implement all methods are can return null for those where it doesn't want to specify a value. BeanSupport
and provides an explicit BeanInfo
for the specifying additional information.
|
Returns the internal display name of the associated bean. If null is returned a default name will be used.
Implemented in cern::gp::beans::BeanSupport, cern::gp::beans::impl::IntrospectionBasedNodeUpdater, cern::laser::guiplatform::configuration::ConfigurationBean, and cern::laser::guiplatform::user::UserBean.
|
|
Returns the internal name of the associated bean. If null is returned a default name will be used.
Implemented in cern::gp::beans::BeanSupport, cern::gp::beans::impl::IntrospectionBasedNodeUpdater, cern::laser::guiplatform::configuration::ConfigurationBean, cern::laser::guiplatform::filters::FilterItemBean, and cern::laser::guiplatform::user::UserBean.
|
|
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.
Implemented in cern::gp::beans::BeanSupport, cern::gp::beans::impl::IntrospectionBasedNodeUpdater, cern::laser::guiplatform::configuration::ConfigurationBean, cern::laser::guiplatform::filters::FilterItemBean, and cern::laser::guiplatform::user::UserBean.
|
|
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.
Implemented in cern::gp::beans::BeanSupport, cern::gp::beans::impl::IntrospectionBasedNodeUpdater, cern::laser::guiplatform::configuration::ConfigurationBean, cern::laser::guiplatform::filters::FilterItemBean, and cern::laser::guiplatform::user::UserBean.
|
|
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.
Implemented in cern::gp::beans::BeanSupport, cern::gp::beans::impl::IntrospectionBasedNodeUpdater, cern::laser::guiplatform::configuration::ConfigurationBean, cern::laser::guiplatform::filters::FilterItemBean, and cern::laser::guiplatform::user::UserBean.
|
|
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
Implemented in cern::gp::beans::BeanSupport, and cern::gp::beans::impl::IntrospectionBasedNodeUpdater.
|
|
Returns an array of
Each
Implemented in cern::gp::beans::BeanSupport, cern::gp::beans::impl::IntrospectionBasedNodeUpdater, cern::laser::guiplatform::configuration::ConfigurationBean, cern::laser::guiplatform::filters::FilterItemBean, and cern::laser::guiplatform::user::UserBean.
|
|
Returns a short description of the associated bean (used in tooltip for instance). If null is returned a default description will be used.
Implemented in cern::gp::beans::BeanSupport, cern::gp::beans::impl::IntrospectionBasedNodeUpdater, cern::laser::guiplatform::configuration::ConfigurationBean, and cern::laser::guiplatform::user::UserBean.
|
|
the class property name |
|
the display name of the display name property |
|
the display name property name |
|
the display name of the name property |
|
the name property name |
|
the node actions property name |
|
the node default action property name |
|
the node icon property name |
|
the node property cacheable property name |
|
the property info property name |
|
the display name of the short description property |
|
the short description property name |