T - the type of data being heldpublic class SimpleEditor<T> extends java.lang.Object implements LeafValueEditor<T>
Editor.Ignore, Editor.Path| Modifier | Constructor and Description | 
|---|---|
| protected  | SimpleEditor(T value)Constructs a new SimpleEditor that holds the given value. | 
| Modifier and Type | Method and Description | 
|---|---|
| T | getValue()Returns the current value. | 
| static <T> SimpleEditor<T> | of()Returns a new ValueEditor that holds a  nullvalue. | 
| static <T> SimpleEditor<T> | of(T value)Returns a new ValueEditor that holds the given value. | 
| void | setValue(T value)Sets the value. | 
protected SimpleEditor(T value)
value - a data object of type Tpublic static <T> SimpleEditor<T> of()
null value.null valuepublic static <T> SimpleEditor<T> of(T value)
value - a data object of type Tpublic T getValue()
TakesValuegetValue in interface TakesValue<T>TakesValue.setValue(V)public void setValue(T value)
TakesValuesetValue in interface TakesValue<T>value - a value object of type VTakesValue.getValue()