com.livis.flabes.util.beans
Class DefaultBeanInfo
java.lang.Object
|
+--com.livis.flabes.util.beans.DefaultBeanInfo
- public class DefaultBeanInfo
- extends java.lang.Object
- implements java.beans.BeanInfo
Utility BeanInfo
base class to replace
SimpleBeanInfo
.
It serves as base class for BeanInfo
implementations that want adopt the Introspector
's BeanInfo
, selectively
replacing properties on demand.
Example:
public class MyBeanBeanInfo
extends DefaultBeanInfo {
public MyBeanBeanInfo () {
super ();
getPropertyDescriptor ("myProperty").setPropertyEditorClass (MyPropertyEditor.class);
}
}
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 |
DefaultBeanInfo
protected DefaultBeanInfo(java.lang.Class beanClass,
int flags)
DefaultBeanInfo
protected DefaultBeanInfo(java.lang.Class beanClass)
DefaultBeanInfo
protected DefaultBeanInfo()
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
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)
removePropertyDescriptors
protected void removePropertyDescriptors(java.util.Collection removeProperties)