java.beans.SimpleBeanInfo (JDK 1.1)
The SimpleBeanInfo class is a trivial implementation of the BeanInfo interface. The methods of this class all return null or -1, indicating that no bean information is available. To use this class, you need only to override the method or methods that return the particular type of bean information you want to provide.
In addition, SimpleBeanInfo provides a convenience method, loadImage(), that takes a resource name as an argument and returns an Image object. This method is useful when defining the getIcon() method.
public classSimpleBeanInfoextends Object implements BeanInfo { //Default Constructor: public SimpleBeanInfo()//Public Instance Methodspublic BeanInfo[]getAdditionalBeanInfo(); //From BeanInfopublic BeanDescriptorgetBeanDescriptor(); //From BeanInfopublic intgetDefaultEventIndex(); //From BeanInfopublic intgetDefaultPropertyIndex(); //From BeanInfopublic EventSetDescriptor[]getEventSetDescriptors(); //From BeanInfopublic ImagegetIcon(inticonKind); //From BeanInfopublic MethodDescriptor[]getMethodDescriptors(); //From BeanInfopublic PropertyDescriptor[]getPropertyDescriptors(); //From BeanInfopublic ImageloadImage(StringresourceName); }