APIdia Launch Partner
Top Description Fields Constructors Methods
java.beans

public Class BeanDescriptor

extends FeatureDescriptor
Class Inheritance
Imports
java.lang.ref.Reference, javax.swing.SwingContainer

A BeanDescriptor provides global information about a "bean", including its Java class, its displayName, etc.

This is one of the kinds of descriptor returned by a BeanInfo object, which also returns descriptors for properties, method, and events.

Since
1.1

Field Summary

Modifier and TypeField and Description
private Reference<? extends Class<?>>
private Reference<? extends Class<?>>

Constructor Summary

AccessConstructor and Description
public
BeanDescriptor(Class<?>
The Class object of the Java class that implements the bean. For example sun.beans.OurButton.class.
beanClass
)

Create a BeanDescriptor for a bean that doesn't have a customizer.

public
BeanDescriptor(Class<?>
The Class object of the Java class that implements the bean. For example sun.beans.OurButton.class.
beanClass
,
Class<?>
The Class object of the Java class that implements the bean's Customizer. For example sun.beans.OurButtonCustomizer.class.
customizerClass
)

Create a BeanDescriptor for a bean that has a customizer.

pack-priv

Method Summary

Modifier and TypeMethod and Description
pack-priv void
public Class<?>

Returns:

The Class object for the bean.
getBeanClass
()

Gets the bean's Class object.

public Class<?>

Returns:

The Class object for the bean's customizer. This may be null if the bean doesn't have a customizer.
getCustomizerClass
()

Gets the Class object for the bean's customizer.

Inherited from java.beans.FeatureDescriptor:
appendToappendToappendToattributeNamesgetClass0getDisplayNamegetNamegetParameterTypesgetReturnTypegetShortDescriptiongetSoftReferencegetValuegetWeakReferenceisExpertisHiddenisPreferredisTransientsetClass0setDisplayNamesetExpertsetHiddensetNamesetPreferredsetShortDescriptionsetTransientsetValuetoString

Field Detail

beanClassRefback to summary
private Reference<? extends Class<?>> beanClassRef
customizerClassRefback to summary
private Reference<? extends Class<?>> customizerClassRef

Constructor Detail

BeanDescriptorback to summary
public BeanDescriptor(Class<?> beanClass)

Create a BeanDescriptor for a bean that doesn't have a customizer.

Parameters
beanClass:Class<?>

The Class object of the Java class that implements the bean. For example sun.beans.OurButton.class.

BeanDescriptorback to summary
public BeanDescriptor(Class<?> beanClass, Class<?> customizerClass)

Create a BeanDescriptor for a bean that has a customizer.

Parameters
beanClass:Class<?>

The Class object of the Java class that implements the bean. For example sun.beans.OurButton.class.

customizerClass:Class<?>

The Class object of the Java class that implements the bean's Customizer. For example sun.beans.OurButtonCustomizer.class.

BeanDescriptorback to summary
pack-priv BeanDescriptor(BeanDescriptor old)

Method Detail

appendToback to summary
pack-priv void appendTo(StringBuilder sb)

Overrides java.beans.FeatureDescriptor.appendTo.

Annotations
@Override
getBeanClassback to summary
public Class<?> getBeanClass()

Gets the bean's Class object.

Returns:Class<?>

The Class object for the bean.

getCustomizerClassback to summary
public Class<?> getCustomizerClass()

Gets the Class object for the bean's customizer.

Returns:Class<?>

The Class object for the bean's customizer. This may be null if the bean doesn't have a customizer.