Package org.jivesoftware.util
Class JiveBeanInfo
- java.lang.Object
-
- org.jivesoftware.util.JiveBeanInfo
-
- All Implemented Interfaces:
BeanInfo
- Direct Known Subclasses:
DefaultConnectionProviderBeanInfo
public abstract class JiveBeanInfo extends Object implements BeanInfo
An abstract BeanInfo implementation that automatically constructs PropertyDescriptors and handles i18n through ResourceBundles.- Author:
- Jive Software
- See Also:
BeanInfo
-
-
Field Summary
-
Fields inherited from interface java.beans.BeanInfo
ICON_COLOR_16x16, ICON_COLOR_32x32, ICON_MONO_16x16, ICON_MONO_32x32
-
-
Constructor Summary
Constructors Constructor Description JiveBeanInfo()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description BeanInfo[]
getAdditionalBeanInfo()
abstract Class
getBeanClass()
Returns the bean Class.BeanDescriptor
getBeanDescriptor()
int
getDefaultEventIndex()
int
getDefaultPropertyIndex()
EventSetDescriptor[]
getEventSetDescriptors()
Image
getIcon(int iconKind)
MethodDescriptor[]
getMethodDescriptors()
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).PropertyDescriptor[]
getPropertyDescriptors()
abstract String[]
getPropertyNames()
Returns the names of the properties of the bean that should be exposed.
-
-
-
Method Detail
-
getPropertyNames
public abstract String[] 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
public abstract Class getBeanClass()
Returns the bean Class.- Returns:
- the Class of the JavaBean that the BeanInfo is for.
-
getName
public 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). For example, for the classcom.foo.ExampleClass
, the name would beExampleClass
.- Returns:
- the name of the JavaBean that the BeanInfo is for.
-
getBeanDescriptor
public BeanDescriptor getBeanDescriptor()
- Specified by:
getBeanDescriptor
in interfaceBeanInfo
-
getPropertyDescriptors
public PropertyDescriptor[] getPropertyDescriptors()
- Specified by:
getPropertyDescriptors
in interfaceBeanInfo
-
getDefaultPropertyIndex
public int getDefaultPropertyIndex()
- Specified by:
getDefaultPropertyIndex
in interfaceBeanInfo
-
getEventSetDescriptors
public EventSetDescriptor[] getEventSetDescriptors()
- Specified by:
getEventSetDescriptors
in interfaceBeanInfo
-
getDefaultEventIndex
public int getDefaultEventIndex()
- Specified by:
getDefaultEventIndex
in interfaceBeanInfo
-
getMethodDescriptors
public MethodDescriptor[] getMethodDescriptors()
- Specified by:
getMethodDescriptors
in interfaceBeanInfo
-
getAdditionalBeanInfo
public BeanInfo[] getAdditionalBeanInfo()
- Specified by:
getAdditionalBeanInfo
in interfaceBeanInfo
-
-