Class TakesValueEditor<T>
- java.lang.Object
-
- de.knightsoftnet.validators.client.editor.TakesValueEditor<T>
-
- Type Parameters:
T- the type of value to be edited
- All Implemented Interfaces:
org.gwtproject.editor.client.Editor<T>,org.gwtproject.editor.client.LeafValueEditor<T>
- Direct Known Subclasses:
ValueBoxEditor
public class TakesValueEditor<T> extends Object implements org.gwtproject.editor.client.LeafValueEditor<T>
Adapts theTakesValueinterface to the Editor framework.
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedTakesValueEditor(org.gwtproject.editor.client.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()static <T> TakesValueEditor<T>of(org.gwtproject.editor.client.TakesValue<T> peer)Returns a new ValueEditor that modifies the givenTakesValuepeer instance.voidsetValue(T value)
-
-
-
Constructor Detail
-
TakesValueEditor
protected TakesValueEditor(org.gwtproject.editor.client.TakesValue<T> peer)
Returns a new ValueEditor that modifies the givenTakesValuepeer instance.- Parameters:
peer- aTakesValueinstance
-
-
Method Detail
-
of
public static <T> TakesValueEditor<T> of(org.gwtproject.editor.client.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()
- Specified by:
getValuein interfaceorg.gwtproject.editor.client.LeafValueEditor<T>
-
-