Package org.jivesoftware.util
Class JiveBeanInfo
java.lang.Object
org.jivesoftware.util.JiveBeanInfo
- All Implemented Interfaces:
BeanInfo
- Direct Known Subclasses:
DefaultConnectionProviderBeanInfo
An abstract BeanInfo implementation that automatically constructs
PropertyDescriptors and handles i18n through ResourceBundles.
- Author:
- Jive Software
- See Also:
-
Field Summary
Fields inherited from interface java.beans.BeanInfo
ICON_COLOR_16x16, ICON_COLOR_32x32, ICON_MONO_16x16, ICON_MONO_32x32
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionBeanInfo[]
abstract Class<?>
Returns the bean Class.int
int
getIcon
(int iconKind) abstract String
getName()
Returns the name of the class that the bean info applies to (which corresponds to the resource bundle that will be loaded).abstract String[]
Returns the names of the properties of the bean that should be exposed.
-
Constructor Details
-
JiveBeanInfo
public JiveBeanInfo()
-
-
Method Details
-
getPropertyNames
Returns the names of the properties of the bean that should be exposed.- Returns:
- the names of the properties that should be exposed.
-
getBeanClass
Returns the bean Class.- Returns:
- the Class of the JavaBean that the BeanInfo is for.
-
getName
Returns the name of the class that the bean info applies to (which corresponds to the resource bundle that will be loaded). For example, for the classcom.foo.ExampleClass
, the name would beExampleClass
.- Returns:
- the name of the JavaBean that the BeanInfo is for.
-
getBeanDescriptor
- Specified by:
getBeanDescriptor
in interfaceBeanInfo
-
getPropertyDescriptors
- Specified by:
getPropertyDescriptors
in interfaceBeanInfo
-
getDefaultPropertyIndex
public int getDefaultPropertyIndex()- Specified by:
getDefaultPropertyIndex
in interfaceBeanInfo
-
getEventSetDescriptors
- Specified by:
getEventSetDescriptors
in interfaceBeanInfo
-
getDefaultEventIndex
public int getDefaultEventIndex()- Specified by:
getDefaultEventIndex
in interfaceBeanInfo
-
getMethodDescriptors
- Specified by:
getMethodDescriptors
in interfaceBeanInfo
-
getAdditionalBeanInfo
- Specified by:
getAdditionalBeanInfo
in interfaceBeanInfo
-
getIcon
-