Class HasTextEditor
- java.lang.Object
-
- com.google.gwt.editor.ui.client.adapters.HasTextEditor
-
- All Implemented Interfaces:
Editor<java.lang.String>,LeafValueEditor<java.lang.String>,TakesValue<java.lang.String>
public class HasTextEditor extends java.lang.Object implements LeafValueEditor<java.lang.String>
Adapts the HasText 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 protectedHasTextEditor(HasText peer)Constructs a new HasTextEditor that that modifies the givenHasTextpeer instance.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetValue()Returns the current value.static HasTextEditorof(HasText peer)Returns a new ValueEditor that that modifies the givenHasTextpeer instance.voidsetValue(java.lang.String value)Sets the value.
-
-
-
Method Detail
-
of
public static HasTextEditor of(HasText peer)
Returns a new ValueEditor that that modifies the givenHasTextpeer instance.- Parameters:
peer- aHasTextinstance- Returns:
- a HasTextEditor instance
-
getValue
public java.lang.String getValue()
Description copied from interface:TakesValueReturns the current value.- Specified by:
getValuein interfaceTakesValue<java.lang.String>- Returns:
- the value as an object of type V
- See Also:
TakesValue.setValue(V)
-
setValue
public void setValue(java.lang.String value)
Description copied from interface:TakesValueSets the value.- Specified by:
setValuein interfaceTakesValue<java.lang.String>- Parameters:
value- a value object of type V- See Also:
TakesValue.getValue()
-
-