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.
ICON_COLOR_16x16, ICON_COLOR_32x32, ICON_MONO_16x16, ICON_MONO_32x32 public SimpleBeanInfo()
public BeanDescriptor getBeanDescriptor()
Deny knowledge about the class and customizer of the bean. You can override this if you wish to provide explicit info.
getBeanDescriptor in interface BeanInfo
BeanDescriptor object, or null if the information is to be obtained through the automatic analysispublic PropertyDescriptor[] getPropertyDescriptors()
Deny knowledge of properties. You can override this if you wish to provide explicit property info.
getPropertyDescriptors in interface BeanInfo
PropertyDescriptor objects, or null if the information is to be obtained through the automatic analysispublic int getDefaultPropertyIndex()
Deny knowledge of a default property. You can override this if you wish to define a default property for the bean.
getDefaultPropertyIndex in interface BeanInfo
PropertyDescriptor array returned by the getPropertyDescriptors method, or -1 if there is no default propertypublic EventSetDescriptor[] getEventSetDescriptors()
Deny knowledge of event sets. You can override this if you wish to provide explicit event set info.
getEventSetDescriptors in interface BeanInfo
EventSetDescriptor objects, or null if the information is to be obtained through the automatic analysispublic int getDefaultEventIndex()
Deny knowledge of a default event. You can override this if you wish to define a default event for the bean.
getDefaultEventIndex in interface BeanInfo
EventSetDescriptor array returned by the getEventSetDescriptors method, or -1 if there is no default eventpublic MethodDescriptor[] getMethodDescriptors()
Deny knowledge of methods. You can override this if you wish to provide explicit method info.
getMethodDescriptors in interface BeanInfo
MethodDescriptor objects, or null if the information is to be obtained through the automatic analysispublic 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.
getAdditionalBeanInfo in interface BeanInfo
BeanInfo objects, or null if there are no additional BeanInfo objectspublic Image getIcon(int iconKind)
Claim there are no icons available. You can override this if you want to provide icons for your bean.
getIcon in interface BeanInfo
iconKind - the kind of icon requestednull if no suitable icon is availableBeanInfo.ICON_COLOR_16x16, BeanInfo.ICON_COLOR_32x32, BeanInfo.ICON_MONO_16x16, BeanInfo.ICON_MONO_32x32
public 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.
resourceName - A pathname relative to the directory holding the class file of the current class. For example, "wombat.gif".
© 1993–2017, Oracle and/or its affiliates. All rights reserved.
Documentation extracted from Debian's OpenJDK Development Kit package.
Licensed under the GNU General Public License, version 2, with the Classpath Exception.
Various third party code in OpenJDK is licensed under different licenses (see Debian package).
Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.