public class ValueHolder extends Object implements ValueModel
Constructor and Description |
---|
ValueHolder() |
ValueHolder(Class type) |
ValueHolder(Object value) |
Modifier and Type | Method and Description |
---|---|
void |
addPropertyChangeListener(PropertyChangeListener listener)
Add a PropertyChangeListener to the listener list.
|
Class |
getType() |
Object |
getValue() |
boolean |
isEditable() |
void |
removePropertyChangeListener(PropertyChangeListener listener)
Removes a PropertyChangeListener from the listener list.
|
void |
setEditable(boolean editable) |
void |
setValue(Object value) |
public ValueHolder()
public ValueHolder(Class type)
public ValueHolder(Object value)
public void addPropertyChangeListener(PropertyChangeListener listener)
listener
- The listener to add.public void removePropertyChangeListener(PropertyChangeListener listener)
listener
- The listener to remove.public Object getValue()
getValue
in interface ValueModel
public void setValue(Object value)
setValue
in interface ValueModel
public Class getType()
getType
in interface ValueModel
public boolean isEditable()
isEditable
in interface ValueModel
public void setEditable(boolean editable)