edu.iastate.utils.log
Class BeanInfoEx
java.lang.Object
edu.iastate.utils.log.BeanInfoEx
- All Implemented Interfaces:
- java.beans.BeanInfo
- public abstract class BeanInfoEx
- extends java.lang.Object
- implements java.beans.BeanInfo
An abstract BeanInfo implementation that automatically constructs
PropertyDescriptors and handles i18n through ResourceBundles.
|
Field Summary |
private java.util.ResourceBundle |
bundle
|
| Fields inherited from interface java.beans.BeanInfo |
ICON_COLOR_16x16, ICON_COLOR_32x32, ICON_MONO_16x16, ICON_MONO_32x32 |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
bundle
private java.util.ResourceBundle bundle
BeanInfoEx
public BeanInfoEx()
getPropertyNames
public abstract java.lang.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 java.lang.Class getBeanClass()
- Returns the bean Class.
- Returns:
- the Class of the JavaBean that the BeanInfo is for.
getName
public abstract java.lang.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 class com.foo.ExampleClass, the name would be
ExampleClass.
- Returns:
- the name of the JavaBean that the BeanInfo is for.
getBeanDescriptor
public java.beans.BeanDescriptor getBeanDescriptor()
- Specified by:
getBeanDescriptor in interface java.beans.BeanInfo
getPropertyDescriptors
public java.beans.PropertyDescriptor[] getPropertyDescriptors()
- Specified by:
getPropertyDescriptors in interface java.beans.BeanInfo
getDefaultPropertyIndex
public int getDefaultPropertyIndex()
- Specified by:
getDefaultPropertyIndex in interface java.beans.BeanInfo
getEventSetDescriptors
public java.beans.EventSetDescriptor[] getEventSetDescriptors()
- Specified by:
getEventSetDescriptors in interface java.beans.BeanInfo
getDefaultEventIndex
public int getDefaultEventIndex()
- Specified by:
getDefaultEventIndex in interface java.beans.BeanInfo
getMethodDescriptors
public java.beans.MethodDescriptor[] getMethodDescriptors()
- Specified by:
getMethodDescriptors in interface java.beans.BeanInfo
getAdditionalBeanInfo
public java.beans.BeanInfo[] getAdditionalBeanInfo()
- Specified by:
getAdditionalBeanInfo in interface java.beans.BeanInfo
getIcon
public java.awt.Image getIcon(int iconKind)
- Specified by:
getIcon in interface java.beans.BeanInfo