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 ClassgetBeanClass()Returns the bean Class.BeanDescriptorgetBeanDescriptor()intgetDefaultEventIndex()intgetDefaultPropertyIndex()EventSetDescriptor[]getEventSetDescriptors()ImagegetIcon(int iconKind)MethodDescriptor[]getMethodDescriptors()abstract StringgetName()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:
getBeanDescriptorin interfaceBeanInfo
-
getPropertyDescriptors
public PropertyDescriptor[] getPropertyDescriptors()
- Specified by:
getPropertyDescriptorsin interfaceBeanInfo
-
getDefaultPropertyIndex
public int getDefaultPropertyIndex()
- Specified by:
getDefaultPropertyIndexin interfaceBeanInfo
-
getEventSetDescriptors
public EventSetDescriptor[] getEventSetDescriptors()
- Specified by:
getEventSetDescriptorsin interfaceBeanInfo
-
getDefaultEventIndex
public int getDefaultEventIndex()
- Specified by:
getDefaultEventIndexin interfaceBeanInfo
-
getMethodDescriptors
public MethodDescriptor[] getMethodDescriptors()
- Specified by:
getMethodDescriptorsin interfaceBeanInfo
-
getAdditionalBeanInfo
public BeanInfo[] getAdditionalBeanInfo()
- Specified by:
getAdditionalBeanInfoin interfaceBeanInfo
-
-