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 protected
HasTextEditor(HasText peer)
Constructs a new HasTextEditor that that modifies the givenHasText
peer instance.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getValue()
Returns the current value.static HasTextEditor
of(HasText peer)
Returns a new ValueEditor that that modifies the givenHasText
peer instance.void
setValue(java.lang.String value)
Sets the value.
-
-
-
Method Detail
-
of
public static HasTextEditor of(HasText peer)
Returns a new ValueEditor that that modifies the givenHasText
peer instance.- Parameters:
peer
- aHasText
instance- Returns:
- a HasTextEditor instance
-
getValue
public java.lang.String getValue()
Description copied from interface:TakesValue
Returns the current value.- Specified by:
getValue
in 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:TakesValue
Sets the value.- Specified by:
setValue
in interfaceTakesValue<java.lang.String>
- Parameters:
value
- a value object of type V- See Also:
TakesValue.getValue()
-
-