java.beans
Class BeanDescriptor

java.lang.Object sample code for java.lang.Object definition code for java.lang.Object 
  extended by java.beans.FeatureDescriptor sample code for java.beans.FeatureDescriptor definition code for java.beans.FeatureDescriptor 
      extended by java.beans.BeanDescriptor

public class BeanDescriptor
extends FeatureDescriptor sample code for java.beans.FeatureDescriptor definition code for java.beans.FeatureDescriptor

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.


Constructor Summary
BeanDescriptor sample code for java.beans.BeanDescriptor.BeanDescriptor(java.lang.Class) definition code for java.beans.BeanDescriptor.BeanDescriptor(java.lang.Class) (Class sample code for java.lang.Class definition code for java.lang.Class <?> beanClass)
          Create a BeanDescriptor for a bean that doesn't have a customizer.
BeanDescriptor sample code for java.beans.BeanDescriptor.BeanDescriptor(java.lang.Class, java.lang.Class) definition code for java.beans.BeanDescriptor.BeanDescriptor(java.lang.Class, java.lang.Class) (Class sample code for java.lang.Class definition code for java.lang.Class <?> beanClass, Class sample code for java.lang.Class definition code for java.lang.Class <?> customizerClass)
          Create a BeanDescriptor for a bean that has a customizer.
 
Method Summary
 Class sample code for java.lang.Class definition code for java.lang.Class <?> getBeanClass sample code for java.beans.BeanDescriptor.getBeanClass() definition code for java.beans.BeanDescriptor.getBeanClass() ()
          Gets the bean's Class object.
 Class sample code for java.lang.Class definition code for java.lang.Class <?> getCustomizerClass sample code for java.beans.BeanDescriptor.getCustomizerClass() definition code for java.beans.BeanDescriptor.getCustomizerClass() ()
          Gets the Class object for the bean's customizer.
 
Methods inherited from class java.beans.FeatureDescriptor sample code for java.beans.FeatureDescriptor definition code for java.beans.FeatureDescriptor
attributeNames sample code for java.beans.FeatureDescriptor.attributeNames() definition code for java.beans.FeatureDescriptor.attributeNames() , getDisplayName sample code for java.beans.FeatureDescriptor.getDisplayName() definition code for java.beans.FeatureDescriptor.getDisplayName() , getName sample code for java.beans.FeatureDescriptor.getName() definition code for java.beans.FeatureDescriptor.getName() , getShortDescription sample code for java.beans.FeatureDescriptor.getShortDescription() definition code for java.beans.FeatureDescriptor.getShortDescription() , getValue sample code for java.beans.FeatureDescriptor.getValue(java.lang.String) definition code for java.beans.FeatureDescriptor.getValue(java.lang.String) , isExpert sample code for java.beans.FeatureDescriptor.isExpert() definition code for java.beans.FeatureDescriptor.isExpert() , isHidden sample code for java.beans.FeatureDescriptor.isHidden() definition code for java.beans.FeatureDescriptor.isHidden() , isPreferred sample code for java.beans.FeatureDescriptor.isPreferred() definition code for java.beans.FeatureDescriptor.isPreferred() , setDisplayName sample code for java.beans.FeatureDescriptor.setDisplayName(java.lang.String) definition code for java.beans.FeatureDescriptor.setDisplayName(java.lang.String) , setExpert sample code for java.beans.FeatureDescriptor.setExpert(boolean) definition code for java.beans.FeatureDescriptor.setExpert(boolean) , setHidden sample code for java.beans.FeatureDescriptor.setHidden(boolean) definition code for java.beans.FeatureDescriptor.setHidden(boolean) , setName sample code for java.beans.FeatureDescriptor.setName(java.lang.String) definition code for java.beans.FeatureDescriptor.setName(java.lang.String) , setPreferred sample code for java.beans.FeatureDescriptor.setPreferred(boolean) definition code for java.beans.FeatureDescriptor.setPreferred(boolean) , setShortDescription sample code for java.beans.FeatureDescriptor.setShortDescription(java.lang.String) definition code for java.beans.FeatureDescriptor.setShortDescription(java.lang.String) , setValue sample code for java.beans.FeatureDescriptor.setValue(java.lang.String, java.lang.Object) definition code for java.beans.FeatureDescriptor.setValue(java.lang.String, java.lang.Object)
 
Methods inherited from class java.lang.Object sample code for java.lang.Object definition code for java.lang.Object
clone sample code for java.lang.Object.clone() definition code for java.lang.Object.clone() , equals sample code for java.lang.Object.equals(java.lang.Object) definition code for java.lang.Object.equals(java.lang.Object) , finalize sample code for java.lang.Object.finalize() definition code for java.lang.Object.finalize() , getClass sample code for java.lang.Object.getClass() definition code for java.lang.Object.getClass() , hashCode sample code for java.lang.Object.hashCode() definition code for java.lang.Object.hashCode() , notify sample code for java.lang.Object.notify() definition code for java.lang.Object.notify() , notifyAll sample code for java.lang.Object.notifyAll() definition code for java.lang.Object.notifyAll() , toString sample code for java.lang.Object.toString() definition code for java.lang.Object.toString() , wait sample code for java.lang.Object.wait() definition code for java.lang.Object.wait() , wait sample code for java.lang.Object.wait(long) definition code for java.lang.Object.wait(long) , wait sample code for java.lang.Object.wait(long, int) definition code for java.lang.Object.wait(long, int)
 

Constructor Detail

BeanDescriptor sample code for java.beans.BeanDescriptor(java.lang.Class<?>) definition code for java.beans.BeanDescriptor(java.lang.Class<?>)

public BeanDescriptor(Class sample code for java.lang.Class definition code for java.lang.Class <?> beanClass)
Create a BeanDescriptor for a bean that doesn't have a customizer.

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

BeanDescriptor sample code for java.beans.BeanDescriptor(java.lang.Class<?>, java.lang.Class<?>) definition code for java.beans.BeanDescriptor(java.lang.Class<?>, java.lang.Class<?>)

public BeanDescriptor(Class sample code for java.lang.Class definition code for java.lang.Class <?> beanClass,
                      Class sample code for java.lang.Class definition code for java.lang.Class <?> customizerClass)
Create a BeanDescriptor for a bean that has a customizer.

Parameters:
beanClass - The Class object of the Java class that implements the bean. For example sun.beans.OurButton.class.
customizerClass - The Class object of the Java class that implements the bean's Customizer. For example sun.beans.OurButtonCustomizer.class.
Method Detail

getBeanClass sample code for java.beans.BeanDescriptor.getBeanClass() definition code for java.beans.BeanDescriptor.getBeanClass()

public Class sample code for java.lang.Class definition code for java.lang.Class <?> getBeanClass()
Gets the bean's Class object.

Returns:
The Class object for the bean.

getCustomizerClass sample code for java.beans.BeanDescriptor.getCustomizerClass() definition code for java.beans.BeanDescriptor.getCustomizerClass()

public Class sample code for java.lang.Class definition code for java.lang.Class <?> getCustomizerClass()
Gets the Class object for the bean's customizer.

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