- java.lang.Object
- 
- java.beans.SimpleBeanInfo
 
- 
- All Implemented Interfaces:
- BeanInfo
 
 public class SimpleBeanInfo extends Object implements BeanInfo This is a support class to make it easier for people to provide BeanInfo classes.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. - Since:
- 1.1
 
- 
- 
Field Summary- 
Fields declared in interface java.beans.BeanInfoICON_COLOR_16x16, ICON_COLOR_32x32, ICON_MONO_16x16, ICON_MONO_32x32
 
- 
 - 
Constructor SummaryConstructors Constructor Description SimpleBeanInfo()
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description BeanInfo[]getAdditionalBeanInfo()Claim there are no other relevant BeanInfo objects.BeanDescriptorgetBeanDescriptor()Deny knowledge about the class and customizer of the bean.intgetDefaultEventIndex()Deny knowledge of a default event.intgetDefaultPropertyIndex()Deny knowledge of a default property.EventSetDescriptor[]getEventSetDescriptors()Deny knowledge of event sets.ImagegetIcon(int iconKind)Claim there are no icons available.MethodDescriptor[]getMethodDescriptors()Deny knowledge of methods.PropertyDescriptor[]getPropertyDescriptors()Deny knowledge of properties.ImageloadImage(String resourceName)This is a utility method to help in loading icon images.
 
- 
- 
- 
Method Detail- 
getBeanDescriptorpublic BeanDescriptor getBeanDescriptor() Deny knowledge about the class and customizer of the bean. You can override this if you wish to provide explicit info.- Specified by:
- getBeanDescriptorin interface- BeanInfo
- Returns:
- a BeanDescriptorobject, ornullif the information is to be obtained through the automatic analysis
 
 - 
getPropertyDescriptorspublic PropertyDescriptor[] getPropertyDescriptors() Deny knowledge of properties. You can override this if you wish to provide explicit property info.- Specified by:
- getPropertyDescriptorsin interface- BeanInfo
- Returns:
- an array of PropertyDescriptorobjects, ornullif the information is to be obtained through the automatic analysis
 
 - 
getDefaultPropertyIndexpublic int getDefaultPropertyIndex() Deny knowledge of a default property. You can override this if you wish to define a default property for the bean.- Specified by:
- getDefaultPropertyIndexin interface- BeanInfo
- Returns:
- index of the default property in the PropertyDescriptorarray returned by thegetPropertyDescriptorsmethod, or -1 if there is no default property
 
 - 
getEventSetDescriptorspublic EventSetDescriptor[] getEventSetDescriptors() Deny knowledge of event sets. You can override this if you wish to provide explicit event set info.- Specified by:
- getEventSetDescriptorsin interface- BeanInfo
- Returns:
- an array of EventSetDescriptorobjects, ornullif the information is to be obtained through the automatic analysis
 
 - 
getDefaultEventIndexpublic int getDefaultEventIndex() Deny knowledge of a default event. You can override this if you wish to define a default event for the bean.- Specified by:
- getDefaultEventIndexin interface- BeanInfo
- Returns:
- index of the default event in the EventSetDescriptorarray returned by thegetEventSetDescriptorsmethod, or -1 if there is no default event
 
 - 
getMethodDescriptorspublic MethodDescriptor[] getMethodDescriptors() Deny knowledge of methods. You can override this if you wish to provide explicit method info.- Specified by:
- getMethodDescriptorsin interface- BeanInfo
- Returns:
- an array of MethodDescriptorobjects, ornullif the information is to be obtained through the automatic analysis
 
 - 
getAdditionalBeanInfopublic BeanInfo[] getAdditionalBeanInfo() Claim there are no other relevant BeanInfo objects. You may override this if you want to (for example) return a BeanInfo for a base class.- Specified by:
- getAdditionalBeanInfoin interface- BeanInfo
- Returns:
- an array of BeanInfoobjects, ornullif there are no additionalBeanInfoobjects
 
 - 
getIconpublic Image getIcon(int iconKind) Claim there are no icons available. You can override this if you want to provide icons for your bean.- Specified by:
- getIconin interface- BeanInfo
- Parameters:
- iconKind- the kind of icon requested
- Returns:
- an image object representing the requested icon,
                   or nullif no suitable icon is available
- See Also:
- BeanInfo.ICON_COLOR_16x16,- BeanInfo.ICON_COLOR_32x32,- BeanInfo.ICON_MONO_16x16,- BeanInfo.ICON_MONO_32x32
 
 - 
loadImagepublic Image loadImage(String resourceName) This is a utility method to help in loading icon images. It takes the name of a resource file associated with the current object's class file and loads an image object from that file. Typically images will be GIFs.- Parameters:
- resourceName- A pathname relative to the directory holding the class file of the current class. For example, "wombat.gif".
- Returns:
- an image object or null if the resource is not found or the resource could not be loaded as an Image
 
 
- 
 
-