

Public Member Functions | |
| BeanInfoSupport () | |
| final BeanInfo[] | getAdditionalBeanInfo () |
| final BeanDescriptor | getBeanDescriptor () |
| final PropertyDescriptor[] | getPropertyDescriptors () |
| final EventSetDescriptor[] | getEventSetDescriptors () |
| final MethodDescriptor[] | getMethodDescriptors () |
| final int | getDefaultPropertyIndex () |
| final int | getDefaultEventIndex () |
| final java.awt.Image | getIcon (int iconKind) |
Protected Member Functions | |
| BeanDescriptor | getBeanDescriptorLazy () |
| PropertyDescriptor[] | getPropertyDescriptorsLazy () throws IntrospectionException |
| EventSetDescriptor[] | getEventSetDescriptorsLazy () throws IntrospectionException |
| MethodDescriptor[] | getMethodDescriptorsLazy () throws IntrospectionException |
| String | getIconNameM16 () |
| String | getIconNameM32 () |
| String | getIconNameC16 () |
| String | getIconNameC32 () |
| int | getDefaultPropertyIndexLazy () |
| int | getDefaultEventIndexLazy () |
| Class | getSuperclass () |
| EventSetDescriptor | createPropertyChangeEventSet (Class beanClass) throws IntrospectionException |
Static Protected Attributes | |
| static final PropertyDescriptor[] | EMPTY_PROPERTY_SET = new PropertyDescriptor[0] |
| static final MethodDescriptor[] | EMPTY_METHOD_SET = new MethodDescriptor[0] |
| static final EventSetDescriptor[] | EMPTY_EVENT_SET = new EventSetDescriptor[0] |
Private Member Functions | |
| void | setActionsFromAdditionalBeanInfo () |
Private Attributes | |
| java.awt.Image | iconColor16 |
| java.awt.Image | iconColor32 |
| java.awt.Image | iconMono16 |
| java.awt.Image | iconMono32 |
| BeanDescriptor | beanDescriptor |
| PropertyDescriptor[] | propertyDescriptors |
| EventSetDescriptor[] | eventSetDescriptors |
| MethodDescriptor[] | methodDescriptors |
| BeanInfo[] | additionalBeanInfos |
Static Private Attributes | |
| static final BeanInfo[] | EMPTY_BEAN_INFO_SET = new BeanInfo[0] |
Utility class that provides default implementation and caching for all aspect of the BeanInfo.
Should be subclassed in order to overwrite the protected methods.
| cern::gp::beans::BeanInfoSupport::BeanInfoSupport | ( | ) | [inline] |
References setActionsFromAdditionalBeanInfo().
| EventSetDescriptor cern::gp::beans::BeanInfoSupport::createPropertyChangeEventSet | ( | Class | beanClass | ) | throws IntrospectionException [inline, protected] |
Returns a new EventSetDescriptor for PropertyChangeEvent. Call this method inside the method getEventSetDescriptorsLazy in order to include PropertyChangeEvent in the array of EventSetDescriptor you return. You do that if the bean class has the methods addPropertyChangeListener and removePropertyChangeListener.
| <code>beanClass</code> | the class of the bean this BeanInfo is for |
| IntrospectionException | if the EventSetDescriptor cannot be built. |
| final BeanInfo [] cern::gp::beans::BeanInfoSupport::getAdditionalBeanInfo | ( | ) | [inline] |
References additionalBeanInfos, EMPTY_BEAN_INFO_SET, and getSuperclass().
Referenced by setActionsFromAdditionalBeanInfo().
| final BeanDescriptor cern::gp::beans::BeanInfoSupport::getBeanDescriptor | ( | ) | [inline] |
Gets the bean's BeanDescriptors.
References beanDescriptor, and getBeanDescriptorLazy().
| BeanDescriptor cern::gp::beans::BeanInfoSupport::getBeanDescriptorLazy | ( | ) | [inline, protected] |
Returns the bean descriptor for this bean info.
Reimplemented in cern::gp::actions::test::helpers::AcceptorBeanBeanInfo.
Referenced by getBeanDescriptor().
| final int cern::gp::beans::BeanInfoSupport::getDefaultEventIndex | ( | ) | [inline] |
A bean may have a "default" event that is the event that will mostly commonly be used by human's when using the bean.
Returns -1 if there is no default event.
References getDefaultEventIndexLazy().
| int cern::gp::beans::BeanInfoSupport::getDefaultEventIndexLazy | ( | ) | [inline, protected] |
Returns the index of the event. Default implementation returns -1.
Referenced by getDefaultEventIndex().
| final int cern::gp::beans::BeanInfoSupport::getDefaultPropertyIndex | ( | ) | [inline] |
A bean may have a "default" property that is the property that will mostly commonly be initially chosen for update by human's who are customizing the bean.
Returns -1 if there is no default property.
References getDefaultPropertyIndexLazy().
| int cern::gp::beans::BeanInfoSupport::getDefaultPropertyIndexLazy | ( | ) | [inline, protected] |
Returns the index of the default property. Default implementation returns -1.
Referenced by getDefaultPropertyIndex().
| final EventSetDescriptor [] cern::gp::beans::BeanInfoSupport::getEventSetDescriptors | ( | ) | [inline] |
Gets the bean's EventSetDescriptors.
References EMPTY_EVENT_SET, eventSetDescriptors, and getEventSetDescriptorsLazy().
| EventSetDescriptor [] cern::gp::beans::BeanInfoSupport::getEventSetDescriptorsLazy | ( | ) | throws IntrospectionException [inline, protected] |
Returns the event set descriptors for this bean info. Default implementation returns null which means that the Introspector will perform the introspection to get the EventSetDescriptors This method is guarantee to be called once
Referenced by getEventSetDescriptors().
| final java.awt.Image cern::gp::beans::BeanInfoSupport::getIcon | ( | int | iconKind | ) | [inline] |
This method returns an image object that can be used to represent the bean in toolboxes, toolbars, etc. Icon images will typically be GIFs, but may in future include other formats.
Beans aren't required to provide icons and may return null from this method.
There are four possible flavors of icons (16x16 color, 32x32 color, 16x16 mono, 32x32 mono). If a bean choses to only support a single icon we recommend supporting 16x16 color.
We recommend that icons have a "transparent" background so they can be rendered onto an existing background.
| iconKind | The kind of icon requested. This should be one of the constant values ICON_COLOR_16x16, ICON_COLOR_32x32, ICON_MONO_16x16, or ICON_MONO_32x32. |
References getIconNameC16(), getIconNameC32(), getIconNameM16(), getIconNameM32(), iconColor16, iconColor32, iconMono16, and iconMono32.
| String cern::gp::beans::BeanInfoSupport::getIconNameC16 | ( | ) | [inline, protected] |
Returns the name of the icon C16. Default implementation returns null.
Referenced by getIcon().
| String cern::gp::beans::BeanInfoSupport::getIconNameC32 | ( | ) | [inline, protected] |
Returns the name of the icon C32. Default implementation returns null.
Referenced by getIcon().
| String cern::gp::beans::BeanInfoSupport::getIconNameM16 | ( | ) | [inline, protected] |
Returns the name of the icon M16. Default implementation returns null.
Referenced by getIcon().
| String cern::gp::beans::BeanInfoSupport::getIconNameM32 | ( | ) | [inline, protected] |
Returns the name of the icon M32. Default implementation returns null.
Referenced by getIcon().
| final MethodDescriptor [] cern::gp::beans::BeanInfoSupport::getMethodDescriptors | ( | ) | [inline] |
Gets the bean's MethodDescriptors.
References EMPTY_METHOD_SET, getMethodDescriptorsLazy(), and methodDescriptors.
| MethodDescriptor [] cern::gp::beans::BeanInfoSupport::getMethodDescriptorsLazy | ( | ) | throws IntrospectionException [inline, protected] |
Returns the method descriptors for this bean info. Default implementation returns null which means that the Introspector will perform the introspection to get the MethodDescriptors. This method is guarantee to be called once
Referenced by getMethodDescriptors().
| final PropertyDescriptor [] cern::gp::beans::BeanInfoSupport::getPropertyDescriptors | ( | ) | [inline] |
Gets the bean's PropertyDescriptors.
If a property is indexed, then its entry in the result array will belong to the IndexedPropertyDescriptor subclass of PropertyDescriptor. A client of getPropertyDescriptors can use "instanceof" to check if a given PropertyDescriptor is an IndexedPropertyDescriptor.
References EMPTY_PROPERTY_SET, getPropertyDescriptorsLazy(), and propertyDescriptors.
| PropertyDescriptor [] cern::gp::beans::BeanInfoSupport::getPropertyDescriptorsLazy | ( | ) | throws IntrospectionException [inline, protected] |
Returns the property descriptors for this bean info. Default implementation returns null which means that the Introspector will perform the introspection to get the PropertyDescriptors This method is guarantee to be called once
Reimplemented in cern::gp::explorer::test::helpers::ColoredBeanBeanInfo.
Referenced by getPropertyDescriptors().
| Class cern::gp::beans::BeanInfoSupport::getSuperclass | ( | ) | [inline, protected] |
Returns the superclass of the class this bean info is for. This is used in order to look for additional BeanInfo. Default implementation returns null which means that there is no additional BeanInfo
Referenced by getAdditionalBeanInfo().
| void cern::gp::beans::BeanInfoSupport::setActionsFromAdditionalBeanInfo | ( | ) | [inline, private] |
Sets the qname of available actions for this BeanInfo by getting the ones of all additional BeanInfos.
References getAdditionalBeanInfo().
Referenced by BeanInfoSupport().
BeanInfo [] cern::gp::beans::BeanInfoSupport::additionalBeanInfos [private] |
cached additional beaninfos
Referenced by getAdditionalBeanInfo().
BeanDescriptor cern::gp::beans::BeanInfoSupport::beanDescriptor [private] |
cached value if the bean descriptor
Referenced by getBeanDescriptor().
final BeanInfo [] cern::gp::beans::BeanInfoSupport::EMPTY_BEAN_INFO_SET = new BeanInfo[0] [static, private] |
Referenced by getAdditionalBeanInfo().
final EventSetDescriptor [] cern::gp::beans::BeanInfoSupport::EMPTY_EVENT_SET = new EventSetDescriptor[0] [static, protected] |
Empty array of event set descriptor that you can return in getEventSetDescriptorsLazy in order not to have any event set and to prevent the Introspector to introspect the event set from the bean
Referenced by getEventSetDescriptors().
final MethodDescriptor [] cern::gp::beans::BeanInfoSupport::EMPTY_METHOD_SET = new MethodDescriptor[0] [static, protected] |
Empty array of method descriptors that you can return in getMethodDescriptorsLazy in order not to have any method descriptor and to prevent the Introspector to introspect the methods from the bean
Referenced by getMethodDescriptors().
final PropertyDescriptor [] cern::gp::beans::BeanInfoSupport::EMPTY_PROPERTY_SET = new PropertyDescriptor[0] [static, protected] |
Empty array of property set that you can return in getPropertyDescriptorsLazy in order not to have any property and to prevent the Introspector to introspect the properties from the bean
Referenced by getPropertyDescriptors().
EventSetDescriptor [] cern::gp::beans::BeanInfoSupport::eventSetDescriptors [private] |
cached value if the event set descriptors
Referenced by getEventSetDescriptors().
java.awt.Image cern::gp::beans::BeanInfoSupport::iconColor16 [private] |
cached value if the icon
Referenced by getIcon().
java.awt.Image cern::gp::beans::BeanInfoSupport::iconColor32 [private] |
cached value if the icon
Referenced by getIcon().
java.awt.Image cern::gp::beans::BeanInfoSupport::iconMono16 [private] |
cached value if the icon
Referenced by getIcon().
java.awt.Image cern::gp::beans::BeanInfoSupport::iconMono32 [private] |
cached value if the icon
Referenced by getIcon().
MethodDescriptor [] cern::gp::beans::BeanInfoSupport::methodDescriptors [private] |
cached value if the method descriptors
Referenced by getMethodDescriptors().
PropertyDescriptor [] cern::gp::beans::BeanInfoSupport::propertyDescriptors [private] |
cached value if the property descriptors
Referenced by getPropertyDescriptors().
1.6.2