APIdia Launch Partner
Top Description Constructors Methods
java.beans

public Class SimpleBeanInfo

extends Object
implements BeanInfo
Class Inheritance
All Implemented Interfaces
java.beans.BeanInfo
Known Direct Subclasses
com.sun.beans.infos.ComponentBeanInfo, java.beans.GenericBeanInfo
Imports
java.awt.Image, .Toolkit, java.awt.image.ImageProducer, java.net.URL

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 overridden 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

Constructor Summary

AccessConstructor and Description
public
SimpleBeanInfo()

Constructs a SimpleBeanInfo.

Method Summary

Modifier and TypeMethod and Description
public BeanInfo[]
getAdditionalBeanInfo()

Implements java.beans.BeanInfo.getAdditionalBeanInfo.

Claim there are no other relevant BeanInfo objects.

public BeanDescriptor
getBeanDescriptor()

Implements java.beans.BeanInfo.getBeanDescriptor.

Deny knowledge about the class and customizer of the bean.

public int
getDefaultEventIndex()

Implements java.beans.BeanInfo.getDefaultEventIndex.

Deny knowledge of a default event.

public int
getDefaultPropertyIndex()

Implements java.beans.BeanInfo.getDefaultPropertyIndex.

Deny knowledge of a default property.

public EventSetDescriptor[]
getEventSetDescriptors()

Implements java.beans.BeanInfo.getEventSetDescriptors.

Deny knowledge of event sets.

public Image
getIcon(final int iconKind)

Implements java.beans.BeanInfo.getIcon.

Claim there are no icons available.

public MethodDescriptor[]
getMethodDescriptors()

Implements java.beans.BeanInfo.getMethodDescriptors.

Deny knowledge of methods.

public PropertyDescriptor[]
getPropertyDescriptors()

Implements java.beans.BeanInfo.getPropertyDescriptors.

Deny knowledge of properties.

private Image

Returns:

an image object. May be null if the load failed.
loadImage
(final String
A pathname relative to the directory holding the class file of the current class
resourceName
,
final String
A String containing a file suffix (e.g., "Color32.gif" or "Mono32.gif")
suffix
)

This is a utility method to help in loading standard icon images.

public Image

Returns:

an image object or null if the resource is not found or the resource could not be loaded as an Image
loadImage
(final String
A pathname relative to the directory holding the class file of the current class. For example, "wombat.gif".
resourceName
)

This is a utility method to help in loading icon images.

private Image

Returns:

an image object. May be null if the load failed.
loadStandardImage
(final String
A pathname relative to the directory holding the class file of the current class
resourceName
)

This is a utility method to help in loading standard icon images.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

SimpleBeanInfoback to summary
public SimpleBeanInfo()

Constructs a SimpleBeanInfo.

Method Detail

getAdditionalBeanInfoback to summary
public BeanInfo[] getAdditionalBeanInfo()

Implements java.beans.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.

Annotations
@Override
getBeanDescriptorback to summary
public BeanDescriptor getBeanDescriptor()

Implements java.beans.BeanInfo.getBeanDescriptor.

Deny knowledge about the class and customizer of the bean. You can override this if you wish to provide explicit info.

Annotations
@Override
getDefaultEventIndexback to summary
public int getDefaultEventIndex()

Implements java.beans.BeanInfo.getDefaultEventIndex.

Deny knowledge of a default event. You can override this if you wish to define a default event for the bean.

Annotations
@Override
getDefaultPropertyIndexback to summary
public int getDefaultPropertyIndex()

Implements java.beans.BeanInfo.getDefaultPropertyIndex.

Deny knowledge of a default property. You can override this if you wish to define a default property for the bean.

Annotations
@Override
getEventSetDescriptorsback to summary
public EventSetDescriptor[] getEventSetDescriptors()

Implements java.beans.BeanInfo.getEventSetDescriptors.

Deny knowledge of event sets. You can override this if you wish to provide explicit event set info.

Annotations
@Override
getIconback to summary
public Image getIcon(final int iconKind)

Implements java.beans.BeanInfo.getIcon.

Claim there are no icons available. You can override this if you want to provide icons for your bean.

Annotations
@Override
getMethodDescriptorsback to summary
public MethodDescriptor[] getMethodDescriptors()

Implements java.beans.BeanInfo.getMethodDescriptors.

Deny knowledge of methods. You can override this if you wish to provide explicit method info.

Annotations
@Override
getPropertyDescriptorsback to summary
public PropertyDescriptor[] getPropertyDescriptors()

Implements java.beans.BeanInfo.getPropertyDescriptors.

Deny knowledge of properties. You can override this if you wish to provide explicit property info.

Annotations
@Override
loadImageback to summary
private Image loadImage(final String resourceName, final String suffix)

This is a utility method to help in loading standard icon images.

Parameters
resourceName:String

A pathname relative to the directory holding the class file of the current class

suffix:String

A String containing a file suffix (e.g., "Color32.gif" or "Mono32.gif")

Returns:Image

an image object. May be null if the load failed.

See Also
java.beans.SimpleBeanInfo#loadImage(String)
loadImageback to summary
public Image loadImage(final 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:String

A pathname relative to the directory holding the class file of the current class. For example, "wombat.gif".

Returns:Image

an image object or null if the resource is not found or the resource could not be loaded as an Image

loadStandardImageback to summary
private Image loadStandardImage(final String resourceName)

This is a utility method to help in loading standard icon images.

Parameters
resourceName:String

A pathname relative to the directory holding the class file of the current class

Returns:Image

an image object. May be null if the load failed.

See Also
java.beans.SimpleBeanInfo#loadImage(String)