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
ConstructorsModifierConstructorDescriptionprotectedTakesValueEditor(TakesValue<T> peer) Returns a new ValueEditor that modifies the givenTakesValuepeer 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 givenTakesValuepeer instance.voidSets the value.
-
Constructor Details
-
TakesValueEditor
Returns a new ValueEditor that modifies the givenTakesValuepeer instance.- Parameters:
peer- aTakesValueinstance
-
-
Method Details
-
of
Returns a new ValueEditor that modifies the givenTakesValuepeer instance.- Parameters:
peer- aTakesValueinstance- Returns:
- a TakesValueEditor instance of the same type as its peer
-
getValue
Description copied from interface:TakesValueReturns the current value.- Specified by:
getValuein interfaceTakesValue<T>- Returns:
- the value as an object of type V
- See Also:
-
setValue
Description copied from interface:TakesValueSets the value.- Specified by:
setValuein interfaceTakesValue<T>- Parameters:
value- a value object of type V- See Also:
-