Package groovy.swing.model
Class ValueHolder
java.lang.Object
groovy.swing.model.ValueHolder
- All Implemented Interfaces:
ValueModel
A simple ValueModel implementation which is a holder of an object value.
Used to share local variables with closures
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Add a PropertyChangeListener to the listener list.getType()
getValue()
boolean
void
Removes a PropertyChangeListener from the listener list.void
setEditable
(boolean editable) void
-
Constructor Details
-
ValueHolder
public ValueHolder() -
ValueHolder
-
ValueHolder
-
-
Method Details
-
addPropertyChangeListener
Add a PropertyChangeListener to the listener list.- Parameters:
listener
- The listener to add.
-
removePropertyChangeListener
Removes a PropertyChangeListener from the listener list.- Parameters:
listener
- The listener to remove.
-
getValue
- Specified by:
getValue
in interfaceValueModel
-
setValue
- Specified by:
setValue
in interfaceValueModel
-
getType
- Specified by:
getType
in interfaceValueModel
-
isEditable
public boolean isEditable()- Specified by:
isEditable
in interfaceValueModel
-
setEditable
public void setEditable(boolean editable)
-