

Public Member Functions | |
| Action | getPreferredAction () |
| Object | getBean () |
| void | destroy () throws java.io.IOException |
| java.awt.Image | getIcon (int type) |
| java.awt.Image | getOpenedIcon (int type) |
| boolean | hasCustomizer () |
| java.awt.Component | getCustomizer () |
| void | resetCache () |
Protected Member Functions | |
| BeanNode (Object bean, Children children) throws IntrospectionException | |
| void | createProperties (Object bean, BeanInfo info, PropertyInfo[] propertyInfo) |
| SystemAction[] | createActions () |
Static Package Functions | |
| [static initializer] | |
Private Member Functions | |
| void | resetCache (String propertyName) |
| void | resetCache (Sheet.Set sheetSet) |
| void | resetCache (Sheet.Set sheetSet, String propertyName) |
| void | hideUnwantedPropertyDescriptors () |
| void | initialization () throws IntrospectionException |
| SystemAction | getDefaultActionInstance (String defaultAction) |
Static Private Member Functions | |
| Node.Property | createIndexedNodeProperty (Object bean, IndexedPropertyDescriptor p, CachingStrategy strategy) |
| Node.Property | createNodeProperty (Object bean, PropertyDescriptor p, CachingStrategy strategy) |
| CachingStrategy | createCachingStrategy (Boolean beanCacheable, Boolean propertyCacheable) |
| Descriptor | computeProperties (Object bean, BeanInfo info, boolean ignoreHiddenProperties, Boolean nodePropertiesCacheable, PropertyInfo[] propertyInfo) |
| PropertyInfo | findPropertyInfoByName (PropertyInfo[] propertyInfo, String propName) |
| void | exception (Throwable e) |
| void | warning (Throwable e) |
| void | initializeCookieSet (Object bean, CookieSet cookieSet) |
| final Node.Cookie | createInstanceCookie (final Object o) |
| final java.awt.Dialog | createDialog (Object o) |
| void | attachCustomizer (Node node, java.beans.Customizer cust) |
Private Attributes | |
| java.awt.Image | _iconColor16 |
| Object | _bean |
| BeanInfo | _beanInfo |
| GuiUpdaterIntrospector | _guiUpdater |
| Boolean | _nodePropertiesCacheable |
| SystemAction | _defaultAction |
Static Private Attributes | |
| final CachingStrategy | DEFAULT_CACHING_STRATEGY = new NoCachingStrategy() |
| final String | ICON_BASE = "org/openide/resources/beans" |
| final Node.Property[] | EMPTY_NODE_PROPERTY_ARRAY = new Node.Property[0] |
You may use this node type for an already-existing JavaBean in order for its JavaBean properties to be reflected as corresponding node properties. Thus, it serves as a compatibility wrapper.
This BeanNode is based on a NodeUpdater that provides it the information it needs. BeanNode builds a NodeUpdater based on the introspection of the bean. Then it tries to register itself as PropertyChangeListener provided that the bean implements the method addPropertyChangeListener. In such a case, the BeanNode will receive the PropertyChangeEvent and update itself when needed.
Whether or not the BeanNode can register itself as PropertyChangeListener or receives any PropertyChangeEvent, it will still try to use the getters available through introspection to initialize itself. When a given getter is not available for a property needed by the node, the node will try to find a default value in the BeanInfo.
To see the property this node is interested in, see the class cern.gp.beans.IntrospectionBasedNodeUpdater.
|
||||||||||||
|
Constructs a node for a JavaBean with a defined child list. Intended for use by subclasses with different strategies for computing the children.
|
|
|
|
|
||||||||||||
|
Attaches a customizer to given node.
|
|
||||||||||||||||||||||||
|
Computes a descriptor for properties from a bean info.
|
|
|
Returns the actions that shall be displayed in the pop-up menu for this node. This method is called by Netbeans Explorer to build the pop-up menu for this node. It uses the BeanInfo associated with the contained bean for finding the actions. |
|
||||||||||||
|
|
|
|
Checks whether an object is instance of DialogDescriptor and if so it used top manager to create its instance.
|
|
||||||||||||||||
|
|
|
|
Creates InstanceCookie, if available.
|
|
||||||||||||||||
|
|
|
||||||||||||||||
|
Prepare node properties based on the bean, storing them into the current property sheet. Called when the bean info is ready. This implementation always creates a set for standard properties and may create a set for expert ones if there are any.
|
|
|
Detaches all listeners from the bean and destroys it.
|
|
|
|
|
||||||||||||
|
|
|
|
|
|
|
Returns the customizer component.
|
|
|
|
|
|
Get an icon for this node in the closed state. Uses the Bean's icon if possible.
|
|
|
Get an icon for this node in the open state.
|
|
|
|
|
|
Test if there is a customizer for this node. If
|
|
|
|
|
|
Performs initalization of the node |
|
||||||||||||
|
Initializes the CookieSet with the corresponding Capability available from the bean directly or through a CapabilityProvider
|
|
||||||||||||
|
|
|
|
|
|
|
|
|
|
reset the cache for this Node. As a result the node will reset the cache of all its properties. |
|
|
|
|
|
bean |
|
|
bean info for the bean |
|
|
|
|
|
|
|
|
cached value of the icon when changed |
|
|
|
|
|
|
|
|
|
|
|
Icon base for bean nodes |
1.3.8