com.livis.flabes.util.beans
Class FastBeanInfo
java.lang.Object
|
+--com.livis.flabes.util.beans.FastBeanInfo
- public class FastBeanInfo
- extends java.lang.Object
- implements java.beans.BeanInfo
BeanInfo
wrapper class.
Objects of this class are instantiated by wrapping existing BeanInfo
s and allow for fast (hashed)
programmatic access to property
descriptors
, method descriptors
, and
event set descriptors
by name.
Example:
FastBeanInfo bi = new FastBeanInfo (new MyBeanBeanInfo (), true);
PropertyDescriptor pd = bi.getPropertyDescriptor ("myProperty");
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 |
FastBeanInfo
public FastBeanInfo(java.beans.BeanInfo bi,
boolean rwPropertiesOnly)
FastBeanInfo
public FastBeanInfo(java.beans.BeanInfo bi)
FastBeanInfo
public FastBeanInfo(java.lang.Class beanClass,
boolean rwPropertiesOnly)
FastBeanInfo
public FastBeanInfo(java.lang.Class beanClass)
FastBeanInfo
public FastBeanInfo(java.lang.Object bean,
boolean rwPropertiesOnly)
FastBeanInfo
public FastBeanInfo(java.lang.Object bean)
getAdditionalBeanInfo
public java.beans.BeanInfo[] getAdditionalBeanInfo()
- Specified by:
- getAdditionalBeanInfo in interface java.beans.BeanInfo
getBeanDescriptor
public java.beans.BeanDescriptor getBeanDescriptor()
- Specified by:
- getBeanDescriptor in interface java.beans.BeanInfo
getDefaultEventIndex
public int getDefaultEventIndex()
- Specified by:
- getDefaultEventIndex 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
getIcon
public java.awt.Image getIcon(int iconKind)
- Specified by:
- getIcon in interface java.beans.BeanInfo
getMethodDescriptors
public java.beans.MethodDescriptor[] getMethodDescriptors()
- Specified by:
- getMethodDescriptors in interface java.beans.BeanInfo
getPropertyDescriptors
public java.beans.PropertyDescriptor[] getPropertyDescriptors()
- Specified by:
- getPropertyDescriptors in interface java.beans.BeanInfo
getPropertyNames
public java.lang.String[] getPropertyNames()
getPropertyEditorClasses
public java.lang.Class[] getPropertyEditorClasses()
getPropertyElementEditorClasses
public java.lang.Class[] getPropertyElementEditorClasses()
newPropertyEditors
public java.beans.PropertyEditor[] newPropertyEditors()
newPropertyElementEditors
public java.beans.PropertyEditor[] newPropertyElementEditors()
getEventSetDescriptorMap
public java.util.Map getEventSetDescriptorMap()
getEventSetDescriptor
public java.beans.EventSetDescriptor getEventSetDescriptor(java.lang.String name)
getMethodDescriptorMap
public java.util.Map getMethodDescriptorMap()
getMethodDescriptor
public java.beans.MethodDescriptor getMethodDescriptor(java.lang.String name)
getPropertyDescriptorMap
public java.util.Map getPropertyDescriptorMap()
getPropertyDescriptor
public java.beans.PropertyDescriptor getPropertyDescriptor(java.lang.String name)
getPropertyNameSet
public java.util.Set getPropertyNameSet()
getPropertyEditorClassMap
public java.util.Map getPropertyEditorClassMap()
getPropertyEditorClass
public java.lang.Class getPropertyEditorClass(java.lang.String name)
getPropertyElementEditorClassMap
public java.util.Map getPropertyElementEditorClassMap()
getPropertyElementEditorClass
public java.lang.Class getPropertyElementEditorClass(java.lang.String name)
newPropertyEditorMap
public java.util.Map newPropertyEditorMap()
newPropertyEditor
public java.beans.PropertyEditor newPropertyEditor(java.lang.String name)
newPropertyElementEditorMap
public java.util.Map newPropertyElementEditorMap()
newPropertyElementEditor
public java.beans.PropertyEditor newPropertyElementEditor(java.lang.String name)