|
GWT 2.7.0 | |||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.google.gwt.editor.client.adapters.TakesValueEditor<T> com.google.gwt.editor.ui.client.adapters.ValueBoxEditor<T>
T
- the type of value to be editedpublic class ValueBoxEditor<T>
Adapts the ValueBoxBase
interface to the Editor framework. This
adapter uses ValueBoxBase.getValueOrThrow()
to report parse errors 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 | |
---|---|
protected |
ValueBoxEditor(ValueBoxBase<T> peer)
Constructs a new ValueBoxEditor that adapts a ValueBoxBase peer
instance. |
Method Summary | ||
---|---|---|
EditorDelegate<T> |
getDelegate()
Returns the EditorDelegate for this instance. |
|
T |
getValue()
Calls ValueBoxBase.getValueOrThrow() . |
|
static
|
of(ValueBoxBase<T> valueBox)
Returns a new TakesValueEditor that adapts a ValueBoxBase
instance. |
|
void |
setDelegate(EditorDelegate<T> delegate)
Sets the EditorDelegate for this instance. |
|
void |
setValue(T value)
Sets the value. |
Methods inherited from class com.google.gwt.editor.client.adapters.TakesValueEditor |
---|
of |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
protected ValueBoxEditor(ValueBoxBase<T> peer)
ValueBoxBase
peer
instance.
peer
- a ValueBoxBase
instance of type TMethod Detail |
---|
public static <T> ValueBoxEditor<T> of(ValueBoxBase<T> valueBox)
ValueBoxBase
instance.
valueBox
- a ValueBoxBase
instance to adapt
ValueBoxBase
instancepublic EditorDelegate<T> getDelegate()
EditorDelegate
for this instance.
EditorDelegate
, or null
setDelegate(EditorDelegate)
public T getValue()
ValueBoxBase.getValueOrThrow()
. If a ParseException
is thrown, it will be available through
EditorError.getUserData()
.
getValue
in interface TakesValue<T>
getValue
in class TakesValueEditor<T>
setValue(Object)
public void setDelegate(EditorDelegate<T> delegate)
EditorDelegate
for this instance. This method is only
called by the driver.
setDelegate
in interface HasEditorDelegate<T>
delegate
- an EditorDelegate
, or null
getDelegate()
public void setValue(T value)
TakesValue
setValue
in interface TakesValue<T>
setValue
in class TakesValueEditor<T>
value
- a value object of type VTakesValue.getValue()
|
GWT 2.7.0 | |||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |