public class ClosureModel extends Object implements ValueModel, NestedValueModel
Constructor and Description |
---|
ClosureModel(ValueModel sourceModel,
Closure readClosure) |
ClosureModel(ValueModel sourceModel,
Closure readClosure,
Closure writeClosure) |
ClosureModel(ValueModel sourceModel,
Closure readClosure,
Closure writeClosure,
Class type) |
Modifier and Type | Method and Description |
---|---|
ValueModel |
getSourceModel() |
Class |
getType() |
Object |
getValue() |
boolean |
isEditable() |
void |
setValue(Object value) |
public ClosureModel(ValueModel sourceModel, Closure readClosure)
public ClosureModel(ValueModel sourceModel, Closure readClosure, Closure writeClosure)
public ClosureModel(ValueModel sourceModel, Closure readClosure, Closure writeClosure, Class type)
public ValueModel getSourceModel()
getSourceModel
in interface NestedValueModel
public Object getValue()
getValue
in interface ValueModel
public void setValue(Object value)
setValue
in interface ValueModel
public Class getType()
getType
in interface ValueModel
public boolean isEditable()
isEditable
in interface ValueModel