public class BeanProperty extends Object implements PropertySheet.Item
PropertySheet.Item for use in the
PropertySheet control based on a property belonging to a
JavaBean - simply provide a PropertyDescriptor and the rest will be
taken care of automatically.PropertySheet.Item,
PropertySheet,
PropertyDescriptor| Constructor and Description |
|---|
BeanProperty(Object bean,
PropertyDescriptor propertyDescriptor) |
| Modifier and Type | Method and Description |
|---|---|
String |
getCategory()
Returns a String representation of the category of the property.
|
String |
getDescription()
A String that will be shown to the user as a tooltip.
|
String |
getName()
Returns the display name of the property, which should be short (i.e.
|
Class<?> |
getType()
Returns the class type of the property.
|
Object |
getValue()
Returns the current value of the property.
|
void |
setValue(Object value)
Sets the current value of the property.
|
public BeanProperty(Object bean, PropertyDescriptor propertyDescriptor)
public String getName()
PropertyEditor.
If you need to explain more detail to the user, consider placing it
in the PropertySheet.Item.getDescription().getName in interface PropertySheet.Itempublic String getDescription()
PropertySheet.Item.getName()
method.getDescription in interface PropertySheet.Itempublic Class<?> getType()
getType in interface PropertySheet.Itempublic Object getValue()
getValue in interface PropertySheet.Itempublic void setValue(Object value)
setValue in interface PropertySheet.Itempublic String getCategory()
PropertySheet
mode property is set to
PropertySheet.Mode.CATEGORY - as then all properties with the same category
will be grouped together visually.getCategory in interface PropertySheet.Item