public interface PropertyModel
Note:While not yet deprecated, this class will soon be deprecated. The only functionality it offers that is distinct from Node.Property and/or PropertySupport.Reflection is the ability to listen to the model for changes, rather than listening to the bean it is a property of.
Users of PropertyPanel are encouraged instead to use its Node.Property constructor unless you are absolutely sure that the property you want to display can be changed by circumstances beyond your control while it is on screen (this is usually a bug not a feature).
DefaultPropertyModel
Modifier and Type | Field and Description |
---|---|
static String |
PROP_VALUE
Name of the 'value' property.
|
Modifier and Type | Method and Description |
---|---|
void |
addPropertyChangeListener(PropertyChangeListener l)
Add listener to change of the value.
|
Class |
getPropertyEditorClass()
The class of the property editor or
null
if default property editor should be used. |
Class |
getPropertyType()
The class of the property.
|
Object |
getValue()
Getter for current value of a property.
|
void |
removePropertyChangeListener(PropertyChangeListener l)
Remove listener to change of the value.
|
void |
setValue(Object v)
Setter for a value of a property.
|
static final String PROP_VALUE
Object getValue() throws InvocationTargetException
InvocationTargetException
- if, for example, the getter method
cannot be accessedvoid setValue(Object v) throws InvocationTargetException
v
- the valueInvocationTargetException
- if, for example, the setter cannot
be accessedClass getPropertyType()
Class getPropertyEditorClass()
null
if default property editor should be used.void addPropertyChangeListener(PropertyChangeListener l)
void removePropertyChangeListener(PropertyChangeListener l)