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