API Overview API Index Package Overview Direct link to this page
JDK 1.6
  java.beans. PropertyDescriptor View Source
Author(s)
Since
Version
Serial
Hierarchy
 Object
      FeatureDescriptor
          PropertyDescriptor
Implements
Subclasses
Description
public class PropertyDescriptor
A PropertyDescriptor describes one property that a Java Bean exports via a pair of accessor methods.
See also:   
Constructors
pack-private PropertyDescriptor (PropertyDescriptor old)
pack-private PropertyDescriptor (PropertyDescriptor x, PropertyDescriptor y)
  Package-private constructor.
public PropertyDescriptor (String propertyName, Class<Object> beanClass) throws IntrospectionException
  Constructs a PropertyDescriptor for a property that follows the standard Java convention by having getFoo and setFoo accessor methods.
public PropertyDescriptor (String propertyName, Class<Object> beanClass, String readMethodName, String writeMethodName) throws IntrospectionException
  This constructor takes the name of a simple property, and method names for reading and writing the property.
public PropertyDescriptor (String propertyName, Method readMethod, Method writeMethod) throws IntrospectionException
  This constructor takes the name of a simple property, and Method objects for reading and writing the property.
Methods
Hide/Show inherited methods
public Enumeration<String> attributeNames () [Inherited From FeatureDescriptor]
  Gets an enumeration of the locale-independent names of this feature.
pack-privatestatic String capitalize (String s) [Inherited From FeatureDescriptor]
pack-private boolean compareMethods (Method a, Method b)
  Package private helper method for Descriptor .equals methods.
public PropertyEditor createPropertyEditor (Object bean)
  Constructs an instance of a property editor using the current property editor class.
pack-privatestatic Reference createReference (Object obj) [Inherited From FeatureDescriptor]
pack-privatestatic Reference createReference (Object obj, boolean soft) [Inherited From FeatureDescriptor]
  Create a Reference wrapper for the object.
public boolean equals (Object obj)
  Compares this PropertyDescriptor against the specified object.
pack-private String getBaseName ()
pack-private Class getClass0 () [Inherited From FeatureDescriptor]
public String getDisplayName () [Inherited From FeatureDescriptor]
  Gets the localized display name of this feature.
public String getName () [Inherited From FeatureDescriptor]
  Gets the programmatic name of this feature.
pack-privatestatic Object getObject (Reference ref) [Inherited From FeatureDescriptor]
  Returns an object from a Reference wrapper.
public Class<Object> getPropertyEditorClass ()
  Gets any explicit PropertyEditor Class that has been registered for this property.
publicsynchronized Class<Object> getPropertyType ()
  Gets the Class object for the property.
publicsynchronized Method getReadMethod ()
  Gets the method that should be used to read the property value.
public String getShortDescription () [Inherited From FeatureDescriptor]
  Gets the short description of this feature.
public Object getValue (String attributeName) [Inherited From FeatureDescriptor]
  Retrieve a named attribute with this feature.
publicsynchronized Method getWriteMethod ()
  Gets the method that should be used to write the property value.
public int hashCode ()
  Returns a hash code value for the object.
public boolean isBound ()
  Updates to "bound" properties will cause a "PropertyChange" event to get fired when the property is changed.
public boolean isConstrained ()
  Attempted updates to "Constrained" properties will cause a "VetoableChange" event to get fired when the property is changed.
public boolean isExpert () [Inherited From FeatureDescriptor]
  The "expert" flag is used to distinguish between those features that are intended for expert users from those that are intended for normal users.
public boolean isHidden () [Inherited From FeatureDescriptor]
  The "hidden" flag is used to identify features that are intended only for tool use, and which should not be exposed to humans.
public boolean isPreferred () [Inherited From FeatureDescriptor]
  The "preferred" flag is used to identify features that are particularly important for presenting to humans.
public void setBound (boolean bound)
  Updates to "bound" properties will cause a "PropertyChange" event to get fired when the property is changed.
pack-private void setClass0 (Class clz) [Overrides FeatureDescriptor]
Overridden to ensure that a super class doesn't take precedent
public void setConstrained (boolean constrained)
  Attempted updates to "Constrained" properties will cause a "VetoableChange" event to get fired when the property is changed.
public void setDisplayName (String displayName) [Inherited From FeatureDescriptor]
  Sets the localized display name of this feature.
public void setExpert (boolean expert) [Inherited From FeatureDescriptor]
  The "expert" flag is used to distinguish between features that are intended for expert users from those that are intended for normal users.
public void setHidden (boolean hidden) [Inherited From FeatureDescriptor]
  The "hidden" flag is used to identify features that are intended only for tool use, and which should not be exposed to humans.
public void setName (String name) [Inherited From FeatureDescriptor]
  Sets the programmatic name of this feature.
public void setPreferred (boolean preferred) [Inherited From FeatureDescriptor]
  The "preferred" flag is used to identify features that are particularly important for presenting to humans.
public void setPropertyEditorClass (Class<Object> propertyEditorClass)
  Normally PropertyEditors will be found using the PropertyEditorManager.
publicsynchronized void setReadMethod (Method readMethod) throws IntrospectionException
  Sets the method that should be used to read the property value.
public void setShortDescription (String text) [Inherited From FeatureDescriptor]
  You can associate a short descriptive string with a feature.
public void setValue (String attributeName, Object value) [Inherited From FeatureDescriptor]
  Associate a named attribute with this feature.
publicsynchronized void setWriteMethod (Method writeMethod) throws IntrospectionException
  Sets the method that should be used to write the property value.
Fields
Hide/Show inherited fields
Nested Classes
Generated By: JavaOnTracks Doclet 0.1.4     ©Thibaut Colar