public class BaseBeanInfo extends SimpleBeanInfo
ICON_COLOR_16x16, ICON_COLOR_32x32, ICON_MONO_16x16, ICON_MONO_32x32| Constructor and Description |
|---|
BaseBeanInfo(Class<?> type)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
ExtendedPropertyDescriptor |
addProperty(String propertyName) |
protected PropertyDescriptor |
addPropertyDescriptor(PropertyDescriptor property) |
BeanDescriptor |
getBeanDescriptor() |
String |
getDescription(Object value)
Return a text describing briefly the object.
|
Image |
getIcon(int kind)
Get the icon for displaying this bean.
|
PropertyDescriptor |
getPropertyDescriptor(int index) |
int |
getPropertyDescriptorCount() |
PropertyDescriptor[] |
getPropertyDescriptors() |
ResourceManager |
getResources()
Get the resource manager associated with the wrapped type.
|
String |
getText(Object value)
Return a text describing the object.
|
String |
getToolTipText(Object value)
Return a text describing the object.
|
Class<?> |
getType()
Get the class type that the object wraps.
|
PropertyDescriptor |
removeProperty(String propertyName)
Removes the first occurrence of the property named
propertyName. |
getAdditionalBeanInfo, getDefaultEventIndex, getDefaultPropertyIndex, getEventSetDescriptors, getMethodDescriptors, loadImagepublic BaseBeanInfo(Class<?> type)
type - The class type for pulling out Bean information.public final Class<?> getType()
public ResourceManager getResources()
public BeanDescriptor getBeanDescriptor()
getBeanDescriptor in interface BeanInfogetBeanDescriptor in class SimpleBeanInfopublic PropertyDescriptor[] getPropertyDescriptors()
getPropertyDescriptors in interface BeanInfogetPropertyDescriptors in class SimpleBeanInfopublic int getPropertyDescriptorCount()
public PropertyDescriptor getPropertyDescriptor(int index)
protected PropertyDescriptor addPropertyDescriptor(PropertyDescriptor property)
public ExtendedPropertyDescriptor addProperty(String propertyName)
public PropertyDescriptor removeProperty(String propertyName)
propertyName.propertyName - public Image getIcon(int kind)
getIcon in interface BeanInfogetIcon in class SimpleBeanInfokind - Kind of icon.public String getText(Object value)
value - an Object valuepublic String getDescription(Object value)
value - an Object valueString valueCopyright © 2017. All rights reserved.