public class ClosureModel extends java.lang.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,
java.lang.Class type) |
Modifier and Type | Method and Description |
---|---|
ValueModel |
getSourceModel() |
java.lang.Class |
getType() |
java.lang.Object |
getValue() |
boolean |
isEditable() |
void |
setValue(java.lang.Object value) |
public ClosureModel(ValueModel sourceModel, Closure readClosure)
public ClosureModel(ValueModel sourceModel, Closure readClosure, Closure writeClosure)
public ClosureModel(ValueModel sourceModel, Closure readClosure, Closure writeClosure, java.lang.Class type)
public ValueModel getSourceModel()
getSourceModel
in interface NestedValueModel
public java.lang.Object getValue()
getValue
in interface ValueModel
public void setValue(java.lang.Object value)
setValue
in interface ValueModel
public java.lang.Class getType()
getType
in interface ValueModel
public boolean isEditable()
isEditable
in interface ValueModel