groovy.model
Class ClosureModel
java.lang.Object
groovy.model.ClosureModel
- All Implemented Interfaces:
- NestedValueModel, ValueModel
- public class ClosureModel
- extends java.lang.Object
- implements ValueModel, NestedValueModel
Represents a value model using a closure to extract
the value from some source model and an optional write closure
for updating the value.
- Version:
- $Revision: 1.1 $
- Author:
- James Strachan
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
sourceModel
private ValueModel sourceModel
readClosure
private Closure readClosure
writeClosure
private Closure writeClosure
type
private java.lang.Class type
ClosureModel
public ClosureModel(ValueModel sourceModel,
Closure readClosure)
ClosureModel
public ClosureModel(ValueModel sourceModel,
Closure readClosure,
Closure writeClosure)
ClosureModel
public ClosureModel(ValueModel sourceModel,
Closure readClosure,
Closure writeClosure,
java.lang.Class type)
getSourceModel
public ValueModel getSourceModel()
- Specified by:
getSourceModel
in interface NestedValueModel
getValue
public java.lang.Object getValue()
- Specified by:
getValue
in interface ValueModel
setValue
public void setValue(java.lang.Object value)
- Specified by:
setValue
in interface ValueModel
getType
public java.lang.Class getType()
- Specified by:
getType
in interface ValueModel
isEditable
public boolean isEditable()
- Specified by:
isEditable
in interface ValueModel
Copyright © 2003-2005 The Codehaus. All Rights Reserved.