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