public class

SimpleEditor

extends Object
implements LeafValueEditor<T>
java.lang.Object
   ↳ com.google.gwt.editor.client.adapters.SimpleEditor<T>

Class Overview

A trivial implementation of LeafValueEditor than can be used for "hidden" properties when composing UI-based Editors.

Summary

Protected Constructors
SimpleEditor(T value)
Constructs a new SimpleEditor that holds the given value.
Public Methods
T getValue()
Returns the current value.
static <T> SimpleEditor<T> of()
Returns a new ValueEditor that holds a null value.
static <T> SimpleEditor<T> of(T value)
Returns a new ValueEditor that holds the given value.
void setValue(T value)
[Expand]
Inherited Methods
From class java.lang.Object
From interface com.google.gwt.user.client.TakesValue

Protected Constructors

protected SimpleEditor (T value)

Constructs a new SimpleEditor that holds the given value.

Parameters
value a data object of type T

Public Methods

public T getValue ()

Returns the current value.

Returns
  • the value as an object of type V

public static SimpleEditor<T> of ()

Returns a new ValueEditor that holds a null value.

Returns
  • a SimpleEditor instance holding a null value

public static SimpleEditor<T> of (T value)

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

public void setValue (T value)