|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
A model defining the behavior of a property. This model is used to allow components such as PropertyPanel to be used with arbitrary JavaBeans, without requiring them to be instances of Node.Property.
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
Field Summary | |
static String |
PROP_VALUE
Name of the 'value' property. |
Method Summary | |
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. |
Field Detail |
public static final String PROP_VALUE
Method Detail |
public Object getValue() throws InvocationTargetException
InvocationTargetException
- if, for example, the getter method
cannot be accessedpublic void setValue(Object v) throws InvocationTargetException
v
- the value
InvocationTargetException
- if, for example, the setter cannot
be accessedpublic Class getPropertyType()
public Class getPropertyEditorClass()
null
if default property editor should be used.
public void addPropertyChangeListener(PropertyChangeListener l)
public void removePropertyChangeListener(PropertyChangeListener l)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |