public class

ValueBoxEditorDecorator

extends Composite
implements HasEditorErrors<T> IsEditor<E extends Editor<?>>
java.lang.Object
   ↳ com.google.gwt.user.client.ui.UIObject
     ↳ com.google.gwt.user.client.ui.Widget
       ↳ com.google.gwt.user.client.ui.Composite
         ↳ com.google.gwt.editor.ui.client.ValueBoxEditorDecorator<T>

Class Overview

A simple decorator to display leaf widgets with an error message.

Use in UiBinder Templates

The decorator may have exactly one ValueBoxBase added though an <e:valuebox> child tag.

For example:

 @UiField
 ValueBoxEditorDecorator<String> name;
 
 <e:ValueBoxEditorDecorator ui:field='name'>
   <e:valuebox>
     <g:TextBox />
   </e:valuebox>
 </e:ValueBoxEditorDecorator>
 

Summary

[Expand]
Inherited Constants
From class com.google.gwt.user.client.ui.UIObject
Public Constructors
ValueBoxEditorDecorator()
Constructs a ValueBoxEditorDecorator.
ValueBoxEditorDecorator(ValueBoxBase<T> widget, ValueBoxEditor<T> editor)
Constructs a ValueBoxEditorDecorator using a ValueBoxBase widget and a ValueBoxEditor editor.
Public Methods
ValueBoxEditor<T> asEditor()
Returns the associated ValueBoxEditor.
void setEditor(ValueBoxEditor<T> editor)
Sets the associated ValueBoxEditor.
void setValueBox(ValueBoxBase<T> widget)
Set the widget that the EditorPanel will display.
void showErrors(List<EditorError> errors)
The default implementation will display, but not consume, received errors whose getEditor() method returns the Editor passed into setEditor(ValueBoxEditor).
[Expand]
Inherited Methods
From class com.google.gwt.user.client.ui.Composite
From class com.google.gwt.user.client.ui.Widget
From class com.google.gwt.user.client.ui.UIObject
From class java.lang.Object
From interface com.google.gwt.editor.client.HasEditorErrors
From interface com.google.gwt.editor.client.IsEditor
From interface com.google.gwt.event.logical.shared.HasAttachHandlers
From interface com.google.gwt.event.shared.HasHandlers
From interface com.google.gwt.user.client.EventListener
From interface com.google.gwt.user.client.ui.IsWidget

Public Constructors

public ValueBoxEditorDecorator ()

Constructs a ValueBoxEditorDecorator.

public ValueBoxEditorDecorator (ValueBoxBase<T> widget, ValueBoxEditor<T> editor)

Constructs a ValueBoxEditorDecorator using a ValueBoxBase widget and a ValueBoxEditor editor.

Parameters
widget the widget
editor the editor

Public Methods

public ValueBoxEditor<T> asEditor ()

Returns the associated ValueBoxEditor.

Returns

public void setEditor (ValueBoxEditor<T> editor)

Sets the associated ValueBoxEditor.

Parameters
editor a ValueBoxEditor instance
See Also

public void setValueBox (ValueBoxBase<T> widget)

Set the widget that the EditorPanel will display. This method will automatically call setEditor(ValueBoxEditor).

Parameters
widget a ValueBoxBase widget

public void showErrors (List<EditorError> errors)

The default implementation will display, but not consume, received errors whose getEditor() method returns the Editor passed into setEditor(ValueBoxEditor).

Parameters
errors a List of EditorError instances