|
Groovy 2.2.0 | |||||||
FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object groovy.model.ClosureModel
public class ClosureModel
Represents a value model using a closure to extract the value from some source model and an optional write closure for updating the value.
Constructor Summary | |
ClosureModel(ValueModel sourceModel, Closure readClosure)
|
|
ClosureModel(ValueModel sourceModel, Closure readClosure, Closure writeClosure)
|
|
ClosureModel(ValueModel sourceModel, Closure readClosure, Closure writeClosure, Class type)
|
Method Summary | |
---|---|
ValueModel
|
getSourceModel()
|
Class
|
getType()
|
Object
|
getValue()
|
boolean
|
isEditable()
|
void
|
setValue(Object value)
|
Methods inherited from class Object | |
---|---|
wait, wait, wait, equals, toString, hashCode, getClass, notify, notifyAll |
Constructor Detail |
---|
public ClosureModel(ValueModel sourceModel, Closure readClosure)
public ClosureModel(ValueModel sourceModel, Closure readClosure, Closure writeClosure)
public ClosureModel(ValueModel sourceModel, Closure readClosure, Closure writeClosure, Class type)
Method Detail |
---|
public ValueModel getSourceModel()
public Class getType()
public Object getValue()
public boolean isEditable()
public void setValue(Object value)
Copyright © 2003-2013 The Codehaus. All rights reserved.