|
Groovy Documentation | |||||||
FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object groovy.model.ValueHolder
public class ValueHolder
A simple ValueModel implementation which is a holder of an object value. Used to share local variables with closures
Constructor Summary | |
ValueHolder()
|
|
ValueHolder(java.lang.Class type)
|
|
ValueHolder(java.lang.Object value)
|
Method Summary | |
---|---|
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)
|
Methods inherited from class java.lang.Object | |
---|---|
java.lang.Object#wait(long, int), java.lang.Object#wait(long), java.lang.Object#wait(), java.lang.Object#equals(java.lang.Object), java.lang.Object#toString(), java.lang.Object#hashCode(), java.lang.Object#getClass(), java.lang.Object#notify(), java.lang.Object#notifyAll() |
Constructor Detail |
---|
public ValueHolder()
public ValueHolder(java.lang.Class type)
public ValueHolder(java.lang.Object value)
Method Detail |
---|
public void addPropertyChangeListener(java.beans.PropertyChangeListener listener)
listener
- The listener to add.
public java.lang.Class getType()
public java.lang.Object getValue()
public boolean isEditable()
public void removePropertyChangeListener(java.beans.PropertyChangeListener listener)
listener
- The listener to remove.
public void setEditable(boolean editable)
public void setValue(java.lang.Object value)
Groovy Documentation