T
- the type of value to be editedpublic class TakesValueEditor<T> extends java.lang.Object implements LeafValueEditor<T>
TakesValue
interface to the Editor framework.Editor.Ignore, Editor.Path
Modifier | Constructor and Description |
---|---|
protected |
TakesValueEditor(TakesValue<T> peer)
Returns a new ValueEditor that modifies the given
TakesValue peer
instance. |
Modifier and Type | Method and Description |
---|---|
T |
getValue()
Returns the current value.
|
static <T> TakesValueEditor<T> |
of(TakesValue<T> peer)
Returns a new ValueEditor that modifies the given
TakesValue peer
instance. |
void |
setValue(T value)
Sets the value.
|
protected TakesValueEditor(TakesValue<T> peer)
TakesValue
peer
instance.peer
- a TakesValue
instancepublic static <T> TakesValueEditor<T> of(TakesValue<T> peer)
TakesValue
peer
instance.peer
- a TakesValue
instancepublic 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()