DESY ACOP Beans Home
com.cosylab.util
Class BeanInfoSupport
java.lang.Object
java.beans.SimpleBeanInfo
com.cosylab.util.BeanInfoSupport
- All Implemented Interfaces:
- java.beans.BeanInfo
- Direct Known Subclasses:
- AbstractDisplayerPanelBeanInfo, AcopChartBeanInfo, AcopChartReorgBeanInfo, AcopSpiderBeanInfo, AcopTableBeanInfo, AcopTransportBeanInfo, AcopVideoBeanInfo, DialKnobBeanInfo, IconDisplayerBeanInfo, NumberFieldBeanInfo, SliderBeanInfo, WheelswitchBeanInfo
public class BeanInfoSupport
- extends java.beans.SimpleBeanInfo
- implements java.beans.BeanInfo
- Version:
- $id$
- Author:
- Jernej Kamenik
Fields inherited from interface java.beans.BeanInfo |
ICON_COLOR_16x16, ICON_COLOR_32x32, ICON_MONO_16x16, ICON_MONO_32x32 |
Constructor Summary |
protected |
BeanInfoSupport()
Creates new instance of BeanInfoSupport. |
Method Summary |
protected void |
addPropertyDescriptor(java.beans.PropertyDescriptor... descriptors)
|
protected void |
clearPropertyDescriptors()
|
static java.beans.BeanInfo[] |
getAdditionalBeanInfo(java.lang.Class beanType)
|
protected java.lang.Class |
getBeanClass()
Override this method, if default implementation is not suitable for you. |
java.beans.BeanDescriptor |
getBeanDescriptor()
|
static java.beans.BeanDescriptor |
getBeanDescriptor(java.lang.Class beanType)
|
static java.beans.BeanInfo |
getBeanInfo(java.lang.Class beanType)
|
static int |
getDefaultEventIndex(java.lang.Class beanType)
|
static int |
getDefaultPropertyIndex(java.lang.Class beanType)
|
static java.beans.EventSetDescriptor[] |
getEventSetDescriptors(java.lang.Class beanType)
|
static java.awt.Image |
getIcon(int arg0,
java.lang.Class beanType)
|
static java.beans.MethodDescriptor[] |
getMethodDescriptors(java.lang.Class beanType)
|
protected java.beans.PropertyDescriptor |
getPropertyDescriptor(java.lang.String name)
|
java.beans.PropertyDescriptor[] |
getPropertyDescriptors()
|
static java.beans.PropertyDescriptor[] |
getPropertyDescriptors(java.lang.Class beanType)
|
protected void |
loadDefaultPropertyDescriptors()
|
protected void |
loadPropertyDescriptor(java.lang.String name,
java.lang.Class editor)
|
protected void |
loadPropertyDescriptor(java.lang.String name,
java.lang.Class editor,
java.lang.reflect.Method readMethod,
java.lang.reflect.Method writeMethod)
|
protected void |
loadPropertyDescriptors(java.lang.String... names)
|
protected void |
overridePropertyDescriptor(java.lang.String name,
java.lang.Class editor,
java.lang.String readMethod,
java.lang.String writeMethod)
|
protected java.beans.PropertyDescriptor |
removePropertyDescriptor(java.lang.String name)
|
protected void |
removePropertyDescriptors(java.lang.String... names)
|
protected void |
setBeanDescriptor(java.lang.Class customizer)
Sets new beanDescriptor. |
protected void |
setPropertyEditor(java.lang.String property,
java.lang.Class editor)
|
Methods inherited from class java.beans.SimpleBeanInfo |
getAdditionalBeanInfo, getDefaultEventIndex, getDefaultPropertyIndex, getEventSetDescriptors, getIcon, getMethodDescriptors, loadImage |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface java.beans.BeanInfo |
getAdditionalBeanInfo, getDefaultEventIndex, getDefaultPropertyIndex, getEventSetDescriptors, getIcon, getMethodDescriptors |
BeanInfoSupport
protected BeanInfoSupport()
- Creates new instance of BeanInfoSupport.
getBeanInfo
public static java.beans.BeanInfo getBeanInfo(java.lang.Class beanType)
getBeanDescriptor
public static java.beans.BeanDescriptor getBeanDescriptor(java.lang.Class beanType)
getEventSetDescriptors
public static java.beans.EventSetDescriptor[] getEventSetDescriptors(java.lang.Class beanType)
getDefaultEventIndex
public static int getDefaultEventIndex(java.lang.Class beanType)
- See Also:
BeanInfo.getDefaultEventIndex()
getPropertyDescriptors
public static java.beans.PropertyDescriptor[] getPropertyDescriptors(java.lang.Class beanType)
- See Also:
BeanInfo.getPropertyDescriptors()
getDefaultPropertyIndex
public static int getDefaultPropertyIndex(java.lang.Class beanType)
- See Also:
BeanInfo.getDefaultPropertyIndex()
getMethodDescriptors
public static java.beans.MethodDescriptor[] getMethodDescriptors(java.lang.Class beanType)
- See Also:
BeanInfo.getMethodDescriptors()
getAdditionalBeanInfo
public static java.beans.BeanInfo[] getAdditionalBeanInfo(java.lang.Class beanType)
- See Also:
BeanInfo.getAdditionalBeanInfo()
getIcon
public static java.awt.Image getIcon(int arg0,
java.lang.Class beanType)
- See Also:
BeanInfo.getIcon(int)
getBeanClass
protected java.lang.Class getBeanClass()
- Override this method, if default implementation is not suitable for you. Default implementation
calculates bean class from bean info class name by stripping BeanInfo part.
- Returns:
- calculates bean class from bean info class name by stripping BeanInfo part
setPropertyEditor
protected void setPropertyEditor(java.lang.String property,
java.lang.Class editor)
throws java.beans.IntrospectionException
- Throws:
java.beans.IntrospectionException
getPropertyDescriptor
protected java.beans.PropertyDescriptor getPropertyDescriptor(java.lang.String name)
throws java.beans.IntrospectionException
- Throws:
java.beans.IntrospectionException
removePropertyDescriptor
protected java.beans.PropertyDescriptor removePropertyDescriptor(java.lang.String name)
loadDefaultPropertyDescriptors
protected void loadDefaultPropertyDescriptors()
loadPropertyDescriptors
protected void loadPropertyDescriptors(java.lang.String... names)
throws java.beans.IntrospectionException
- Throws:
java.beans.IntrospectionException
addPropertyDescriptor
protected void addPropertyDescriptor(java.beans.PropertyDescriptor... descriptors)
removePropertyDescriptors
protected void removePropertyDescriptors(java.lang.String... names)
loadPropertyDescriptor
protected void loadPropertyDescriptor(java.lang.String name,
java.lang.Class editor)
throws java.beans.IntrospectionException
- Throws:
java.beans.IntrospectionException
loadPropertyDescriptor
protected void loadPropertyDescriptor(java.lang.String name,
java.lang.Class editor,
java.lang.reflect.Method readMethod,
java.lang.reflect.Method writeMethod)
throws java.beans.IntrospectionException
- Throws:
java.beans.IntrospectionException
overridePropertyDescriptor
protected void overridePropertyDescriptor(java.lang.String name,
java.lang.Class editor,
java.lang.String readMethod,
java.lang.String writeMethod)
throws java.beans.IntrospectionException
- Throws:
java.beans.IntrospectionException
clearPropertyDescriptors
protected void clearPropertyDescriptors()
setBeanDescriptor
protected void setBeanDescriptor(java.lang.Class customizer)
- Sets new beanDescriptor.
getPropertyDescriptors
public java.beans.PropertyDescriptor[] getPropertyDescriptors()
- Specified by:
getPropertyDescriptors
in interface java.beans.BeanInfo
- Overrides:
getPropertyDescriptors
in class java.beans.SimpleBeanInfo
getBeanDescriptor
public java.beans.BeanDescriptor getBeanDescriptor()
- Specified by:
getBeanDescriptor
in interface java.beans.BeanInfo
- Overrides:
getBeanDescriptor
in class java.beans.SimpleBeanInfo
Copyright © 2010. All Rights Reserved.