[Java] Class ValueHolder
- groovy.model.ValueHolder
- All Implemented Interfaces and Traits:
- ValueModel
@Deprecated public class ValueHolder
A simple ValueModel implementation which is a holder of an object value. Used to share local variables with closures
Constructor Summary
Constructor and description |
---|
ValueHolder
() |
ValueHolder
(Class type) |
ValueHolder
(Object value) |
Methods Summary
Type Params | Return Type | Name and description |
---|---|---|
public void |
addPropertyChangeListener(PropertyChangeListener listener) Add a PropertyChangeListener to the listener list. | |
public Class |
getType() | |
public Object |
getValue() | |
public boolean |
isEditable() | |
public void |
removePropertyChangeListener(PropertyChangeListener listener) Removes a PropertyChangeListener from the listener list. | |
public void |
setEditable(boolean editable) | |
public void |
setValue(Object value) |
Inherited Methods Summary
Methods inherited from class | Name |
---|---|
class Object | wait, wait, wait, equals, toString, hashCode, getClass, notify, notifyAll |
Constructor Detail
public ValueHolder()
public ValueHolder(Class type)
public ValueHolder(Object value)
Method Detail
public void addPropertyChangeListener(PropertyChangeListener listener)
Add a PropertyChangeListener to the listener list.
- Parameters:
-
listener
- The listener to add.
public Class getType()
public Object getValue()
public boolean isEditable()
public void removePropertyChangeListener(PropertyChangeListener listener)
Removes a PropertyChangeListener from the listener list.
- Parameters:
-
listener
- The listener to remove.
public void setEditable(boolean editable)
public void setValue(Object value)
© 2003-2020 The Apache Software Foundation
Licensed under the Apache license.
https://docs.groovy-lang.org/3.0.7/html/gapi/groovy/model/ValueHolder.html