public class SimpleBeanInfo extends Objectimplements BeanInfo
It defaults to providing "noop" information, and can be selectively overriden to provide more explicit information on chosen topics. When the introspector sees the "noop" values, it will apply low level introspection and design patterns to automatically analyze the target bean.
ICON_COLOR_16x16, ICON_COLOR_32x32, ICON_MONO_16x16, ICON_MONO_32x32| Constructor and Description |
|---|
SimpleBeanInfo()
|
| Modifier and Type | Method and Description |
|---|---|
BeanInfo |
getAdditionalBeanInfo()
Claim there are no other relevant BeanInfo objects.
|
BeanDescriptor |
getBeanDescriptor()
Deny knowledge about the class and customizer of the bean.
|
int |
getDefaultEventIndex()
Deny knowledge of a default event.
|
int |
getDefaultPropertyIndex()
Deny knowledge of a default property.
|
EventSetDescriptor |
getEventSetDescriptors()
Deny knowledge of event sets.
|
Image |
getIcon(int iconKind)
Claim there are no icons available.
|
MethodDescriptor |
getMethodDescriptors()
Deny knowledge of methods.
|
PropertyDescriptor |
getPropertyDescriptors()
Deny knowledge of properties.
|
Image |
loadImage(String
This is a utility method to help in loading icon images.
|
public BeanDescriptorgetBeanDescriptor()
getBeanDescriptor in interface
BeanInfo
BeanDescriptor object, or
null if the information is to be obtained through the automatic analysis
public PropertyDescriptor[] getPropertyDescriptors()
getPropertyDescriptors in interface
BeanInfo
PropertyDescriptor objects, or
null if the information is to be obtained through the automatic analysis
public int getDefaultPropertyIndex()
getDefaultPropertyIndex in interface
BeanInfo
PropertyDescriptor array returned by the
getPropertyDescriptors method, or -1 if there is no default property
public EventSetDescriptor[] getEventSetDescriptors()
getEventSetDescriptors in interface
BeanInfo
EventSetDescriptor objects, or
null if the information is to be obtained through the automatic analysis
public int getDefaultEventIndex()
getDefaultEventIndex in interface
BeanInfo
EventSetDescriptor array returned by the
getEventSetDescriptors method, or -1 if there is no default event
public MethodDescriptor[] getMethodDescriptors()
getMethodDescriptors in interface
BeanInfo
MethodDescriptor objects, or
null if the information is to be obtained through the automatic analysis
public BeanInfo[] getAdditionalBeanInfo()
getAdditionalBeanInfo in interface
BeanInfo
BeanInfo objects, or
null if there are no additional
BeanInfo objects
public ImagegetIcon(int iconKind)
getIcon in interface
BeanInfo
iconKind - the kind of icon requested
null if no suitable icon is available
BeanInfo.ICON_COLOR_16x16 ,
BeanInfo.ICON_COLOR_32x32 ,
BeanInfo.ICON_MONO_16x16 ,
BeanInfo.ICON_MONO_32x32
public ImageloadImage(String resourceName)
resourceName - A pathname relative to the directory holding the class file of the current class. For example, "wombat.gif".