Class TakesValueEditor<T>
- java.lang.Object
-
- com.google.gwt.editor.client.adapters.TakesValueEditor<T>
-
- Type Parameters:
T
- the type of value to be edited
- All Implemented Interfaces:
Editor<T>
,LeafValueEditor<T>
,TakesValue<T>
- Direct Known Subclasses:
ValueBoxEditor
public class TakesValueEditor<T> extends java.lang.Object implements LeafValueEditor<T>
Adapts theTakesValue
interface to the Editor framework.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface com.google.gwt.editor.client.Editor
Editor.Ignore, Editor.Path
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
TakesValueEditor(TakesValue<T> peer)
Returns a new ValueEditor that modifies the givenTakesValue
peer instance.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description T
getValue()
Returns the current value.static <T> TakesValueEditor<T>
of(TakesValue<T> peer)
Returns a new ValueEditor that modifies the givenTakesValue
peer instance.void
setValue(T value)
Sets the value.
-
-
-
Constructor Detail
-
TakesValueEditor
protected TakesValueEditor(TakesValue<T> peer)
Returns a new ValueEditor that modifies the givenTakesValue
peer instance.- Parameters:
peer
- aTakesValue
instance
-
-
Method Detail
-
of
public static <T> TakesValueEditor<T> of(TakesValue<T> peer)
Returns a new ValueEditor that modifies the givenTakesValue
peer instance.- Parameters:
peer
- aTakesValue
instance- Returns:
- a TakesValueEditor instance of the same type as its peer
-
getValue
public T getValue()
Description copied from interface:TakesValue
Returns the current value.- Specified by:
getValue
in interfaceTakesValue<T>
- Returns:
- the value as an object of type V
- See Also:
TakesValue.setValue(V)
-
setValue
public void setValue(T value)
Description copied from interface:TakesValue
Sets the value.- Specified by:
setValue
in interfaceTakesValue<T>
- Parameters:
value
- a value object of type V- See Also:
TakesValue.getValue()
-
-