Class SimpleBeanInfo
- All Implemented Interfaces:
 BeanInfo
public class SimpleBeanInfo extends Object implements 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.
- Since:
 - 1.1
 
Field Summary
Fields declared in interface java.beans.BeanInfo
ICON_COLOR_16x16, ICON_COLOR_32x32, ICON_MONO_16x16, ICON_MONO_32x32
Constructor Summary
| Constructor | Description | 
|---|---|
SimpleBeanInfo() | 
  Constructs a   SimpleBeanInfo. | 
Method Summary
| Modifier and Type | Method | 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 | 
  Claim there are no icons available.   | 
MethodDescriptor[] | 
getMethodDescriptors() | 
  Deny knowledge of methods.   | 
PropertyDescriptor[] | 
getPropertyDescriptors() | 
  Deny knowledge of properties.   | 
Image | 
loadImage | 
  This is a utility method to help in loading icon images.   | 
Constructor Details
SimpleBeanInfo
public SimpleBeanInfo()
SimpleBeanInfo.Method Details
getBeanDescriptor
public BeanDescriptor getBeanDescriptor()
- Specified by:
 - 
getBeanDescriptorin interfaceBeanInfo - Returns:
 - a 
BeanDescriptorobject, ornullif the information is to be obtained through the automatic analysis 
getPropertyDescriptors
public PropertyDescriptor[] getPropertyDescriptors()
- Specified by:
 - 
getPropertyDescriptorsin interfaceBeanInfo - Returns:
 - an array of 
PropertyDescriptorobjects, ornullif the information is to be obtained through the automatic analysis 
getDefaultPropertyIndex
public int getDefaultPropertyIndex()
- Specified by:
 - 
getDefaultPropertyIndexin interfaceBeanInfo - Returns:
 - index of the default property in the 
PropertyDescriptorarray returned by thegetPropertyDescriptorsmethod, or -1 if there is no default property 
getEventSetDescriptors
public EventSetDescriptor[] getEventSetDescriptors()
- Specified by:
 - 
getEventSetDescriptorsin interfaceBeanInfo - Returns:
 - an array of 
EventSetDescriptorobjects, ornullif the information is to be obtained through the automatic analysis 
getDefaultEventIndex
public int getDefaultEventIndex()
- Specified by:
 - 
getDefaultEventIndexin interfaceBeanInfo - Returns:
 - index of the default event in the 
EventSetDescriptorarray returned by thegetEventSetDescriptorsmethod, or -1 if there is no default event 
getMethodDescriptors
public MethodDescriptor[] getMethodDescriptors()
- Specified by:
 - 
getMethodDescriptorsin interfaceBeanInfo - Returns:
 - an array of 
MethodDescriptorobjects, ornullif the information is to be obtained through the automatic analysis 
getAdditionalBeanInfo
public BeanInfo[] getAdditionalBeanInfo()
- Specified by:
 - 
getAdditionalBeanInfoin interfaceBeanInfo - Returns:
 - an array of 
BeanInfoobjects, ornullif there are no additionalBeanInfoobjects 
getIcon
public Image getIcon(int iconKind)
loadImage
public Image loadImage(String resourceName)
- 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
 
    © 1993, 2021, 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.
    https://docs.oracle.com/en/java/javase/17/docs/api/java.desktop/java/beans/SimpleBeanInfo.html