public class

TakesValueEditor

extends Object
implements LeafValueEditor<T>
java.lang.Object
   ↳ com.google.gwt.editor.client.adapters.TakesValueEditor<T>
Known Direct Subclasses

Class Overview

Adapts the TakesValue interface to the Editor framework.

Summary

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

Protected Constructors

protected TakesValueEditor (TakesValue<T> peer)

Returns a new ValueEditor that modifies the given TakesValue peer instance.

Parameters
peer a TakesValue instance

Public Methods

public T getValue ()

Returns the current value.

Returns
  • the value as an object of type V

public static TakesValueEditor<T> of (TakesValue<T> peer)

Returns a new ValueEditor that modifies the given TakesValue peer instance.

Parameters
peer a TakesValue instance
Returns
  • a TakesValueEditor instance of the same type as its peer

public void setValue (T value)