Example usage for Java java.beans PropertyDescriptor fields, constructors, methods, implement or subclass
The text is from its open source code.
PropertyDescriptor(String propertyName, Class> beanClass) Constructs a PropertyDescriptor for a property that follows the standard Java convention by having getFoo and setFoo accessor methods. | |
PropertyDescriptor(Entry Creates PropertyDescriptor from the specified property info. | |
PropertyDescriptor(PropertyDescriptor x, PropertyDescriptor y) Package-private constructor. | |
PropertyDescriptor(String propertyName, Class> beanClass, String readMethodName, String writeMethodName) This constructor takes the name of a simple property, and method names for reading and writing the property. | |
PropertyDescriptor(String propertyName, Method readMethod, Method writeMethod) This constructor takes the name of a simple property, and Method objects for reading and writing the property. |
Enumeration | attributeNames() Gets an enumeration of the locale-independent names of this feature. |
PropertyEditor | createPropertyEditor(Object bean) Constructs an instance of a property editor using the current property editor class. |
Class> | getClass() Returns the runtime class of this Object . |
String | getDisplayName() Gets the localized display name of this feature. |
String | getName() Gets the programmatic name of this feature. |
Class> | getPropertyEditorClass() Gets any explicit PropertyEditor Class that has been registered for this property. |
Class> | getPropertyType() Returns the Java type info for the property. |
Method | getReadMethod() Gets the method that should be used to read the property value. |
String | getShortDescription() Gets the short description of this feature. |
Object | getValue(String attributeName) Retrieve a named attribute with this feature. |
Method | getWriteMethod() Gets the method that should be used to write the property value. |
boolean | isBound() Updates to "bound" properties will cause a "PropertyChange" event to get fired when the property is changed. |
boolean | isConstrained() Attempted updates to "Constrained" properties will cause a "VetoableChange" event to get fired when the property is changed. |
boolean | isExpert() The "expert" flag is used to distinguish between those features that are intended for expert users from those that are intended for normal users. |
boolean | isHidden() The "hidden" flag is used to identify features that are intended only for tool use, and which should not be exposed to humans. |
boolean | isPreferred() The "preferred" flag is used to identify features that are particularly important for presenting to humans. |
void | setBound(boolean bound) Updates to "bound" properties will cause a "PropertyChange" event to get fired when the property is changed. |
void | setConstrained(boolean constrained) Attempted updates to "Constrained" properties will cause a "VetoableChange" event to get fired when the property is changed. |
void | setDisplayName(String displayName) Sets the localized display name of this feature. |
void | setExpert(boolean expert) The "expert" flag is used to distinguish between features that are intended for expert users from those that are intended for normal users. |
void | setHidden(boolean hidden) The "hidden" flag is used to identify features that are intended only for tool use, and which should not be exposed to humans. |
void | setName(String name) Sets the programmatic name of this feature. |
void | setPreferred(boolean preferred) The "preferred" flag is used to identify features that are particularly important for presenting to humans. |
void | setPropertyEditorClass(Class> propertyEditorClass) Normally PropertyEditors will be found using the PropertyEditorManager. |
void | setReadMethod(Method readMethod) Sets the method that should be used to read the property value. |
void | setShortDescription(String text) You can associate a short descriptive string with a feature. |
void | setValue(String attributeName, Object value) Associate a named attribute with this feature. |
void | setWriteMethod(Method writeMethod) Sets the method that should be used to write the property value. |