Class SimpleEditor<T>
java.lang.Object
com.google.gwt.editor.client.adapters.SimpleEditor<T>
- Type Parameters:
T- the type of data being held
- All Implemented Interfaces:
Editor<T>,LeafValueEditor<T>,TakesValue<T>
A trivial implementation of LeafValueEditor than can be used for "hidden"
properties when composing UI-based Editors.
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.google.gwt.editor.client.Editor
Editor.Ignore, Editor.Path -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedSimpleEditor(T value) Constructs a new SimpleEditor that holds the given value. -
Method Summary
Modifier and TypeMethodDescriptiongetValue()Returns the current value.static <T> SimpleEditor<T>of()Returns a new ValueEditor that holds anullvalue.static <T> SimpleEditor<T>of(T value) Returns a new ValueEditor that holds the given value.voidSets the value.
-
Constructor Details
-
SimpleEditor
Constructs a new SimpleEditor that holds the given value.- Parameters:
value- a data object of type T
-
-
Method Details
-
of
Returns a new ValueEditor that holds anullvalue.- Returns:
- a SimpleEditor instance holding a
nullvalue
-
of
Returns a new ValueEditor that holds the given value.- Parameters:
value- a data object of type T- Returns:
- a SimpleEditor instance holding the given value
-
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:
-