|
Groovy 2.2.0 | |||||||
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(Class type)
|
|
ValueHolder(Object value)
|
Method Summary | |
---|---|
void
|
addPropertyChangeListener(PropertyChangeListener listener)
Add a PropertyChangeListener to the listener list. |
Class
|
getType()
|
Object
|
getValue()
|
boolean
|
isEditable()
|
void
|
removePropertyChangeListener(PropertyChangeListener listener)
Removes a PropertyChangeListener from the listener list. |
void
|
setEditable(boolean editable)
|
void
|
setValue(Object value)
|
Methods inherited from 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)
listener
- The listener to add.
public Class getType()
public Object getValue()
public boolean isEditable()
public void removePropertyChangeListener(PropertyChangeListener listener)
listener
- The listener to remove.
public void setEditable(boolean editable)
public void setValue(Object value)
Copyright © 2003-2013 The Codehaus. All rights reserved.