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 theTakesValueinterface 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 protectedTakesValueEditor(TakesValue<T> peer)Returns a new ValueEditor that modifies the givenTakesValuepeer instance.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description TgetValue()Returns the current value.static <T> TakesValueEditor<T>of(TakesValue<T> peer)Returns a new ValueEditor that modifies the givenTakesValuepeer instance.voidsetValue(T value)Sets the value.
-
-
-
Constructor Detail
-
TakesValueEditor
protected TakesValueEditor(TakesValue<T> peer)
Returns a new ValueEditor that modifies the givenTakesValuepeer instance.- Parameters:
peer- aTakesValueinstance
-
-
Method Detail
-
of
public static <T> TakesValueEditor<T> of(TakesValue<T> peer)
Returns a new ValueEditor that modifies the givenTakesValuepeer instance.- Parameters:
peer- aTakesValueinstance- Returns:
- a TakesValueEditor instance of the same type as its peer
-
getValue
public T 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:
TakesValue.setValue(V)
-
setValue
public void setValue(T value)
Description copied from interface:TakesValueSets the value.- Specified by:
setValuein interfaceTakesValue<T>- Parameters:
value- a value object of type V- See Also:
TakesValue.getValue()
-
-