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
Adapts the
TakesValue
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
ModifierConstructorDescriptionprotected
TakesValueEditor
(TakesValue<T> peer) Returns a new ValueEditor that modifies the givenTakesValue
peer instance. -
Method Summary
Modifier and TypeMethodDescriptiongetValue()
Returns the current value.static <T> TakesValueEditor
<T> of
(TakesValue<T> peer) Returns a new ValueEditor that modifies the givenTakesValue
peer instance.void
Sets the value.
-
Constructor Details
-
TakesValueEditor
Returns a new ValueEditor that modifies the givenTakesValue
peer instance.- Parameters:
peer
- aTakesValue
instance
-
-
Method Details
-
of
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
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:
-
setValue
Description copied from interface:TakesValue
Sets the value.- Specified by:
setValue
in interfaceTakesValue<T>
- Parameters:
value
- a value object of type V- See Also:
-