T
- the type of data being heldpublic class SimpleEditor<T> extends 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
null value. |
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()
TakesValue
getValue
in interface TakesValue<T>
TakesValue.setValue(V)
public void setValue(T value)
TakesValue
setValue
in interface TakesValue<T>
value
- a value object of type VTakesValue.getValue()
Copyright © 2018. All rights reserved.