Package com.google.gwt.editor.ui.client
Class ValueBoxEditorDecorator<T>
- 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>
 
 
 
 
- 
- Type Parameters:
- T- the type of data being edited
 - All Implemented Interfaces:
- Editor<T>,- HasEditorErrors<T>,- IsEditor<ValueBoxEditor<T>>,- HasAttachHandlers,- HasHandlers,- EventListener,- HasVisibility,- IsRenderable,- IsWidget
 
 public class ValueBoxEditorDecorator<T> extends Composite implements HasEditorErrors<T>, IsEditor<ValueBoxEditor<T>> A simple decorator to display leaf widgets with an error message.Use in UiBinder TemplatesThe 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>
- 
- 
Nested Class SummaryNested Classes Modifier and Type Class Description (package private) static interfaceValueBoxEditorDecorator.Binder- 
Nested classes/interfaces inherited from class com.google.gwt.user.client.ui.UIObjectUIObject.DebugIdImpl, UIObject.DebugIdImplEnabled
 - 
Nested classes/interfaces inherited from interface com.google.gwt.editor.client.EditorEditor.Ignore, Editor.Path
 
- 
 - 
Field SummaryFields Modifier and Type Field Description (package private) SimplePanelcontents(package private) DivElementerrorLabel- 
Fields inherited from class com.google.gwt.user.client.ui.UIObjectDEBUG_ID_PREFIX
 
- 
 - 
Constructor SummaryConstructors Constructor Description ValueBoxEditorDecorator()Constructs a ValueBoxEditorDecorator.ValueBoxEditorDecorator(ValueBoxBase<T> widget, ValueBoxEditor<T> editor)Constructs a ValueBoxEditorDecorator using aValueBoxBasewidget and aValueBoxEditoreditor.
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description ValueBoxEditor<T>asEditor()Returns the associatedValueBoxEditor.voidsetEditor(ValueBoxEditor<T> editor)Sets the associatedValueBoxEditor.voidsetValueBox(ValueBoxBase<T> widget)Set the widget that the EditorPanel will display.voidshowErrors(java.util.List<EditorError> errors)The default implementation will display, but not consume, received errors whosegetEditor()method returns the Editor passed intosetEditor(com.google.gwt.editor.ui.client.adapters.ValueBoxEditor<T>).- 
Methods inherited from class com.google.gwt.user.client.ui.CompositeclaimElement, getWidget, initializeClaimedElement, initWidget, isAttached, onAttach, onBrowserEvent, onDetach, render, render, resolvePotentialElement, setWidget
 - 
Methods inherited from class com.google.gwt.user.client.ui.WidgetaddAttachHandler, addBitlessDomHandler, addDomHandler, addHandler, asWidget, asWidgetOrNull, createHandlerManager, delegateEvent, doAttachChildren, doDetachChildren, fireEvent, getHandlerCount, getLayoutData, getParent, isOrWasAttached, onLoad, onUnload, removeFromParent, setLayoutData, sinkEvents, unsinkEvents
 - 
Methods inherited from class com.google.gwt.user.client.ui.UIObjectaddStyleDependentName, addStyleName, ensureDebugId, ensureDebugId, ensureDebugId, getAbsoluteLeft, getAbsoluteTop, getElement, getOffsetHeight, getOffsetWidth, getStyleElement, getStyleName, getStyleName, getStylePrimaryName, getStylePrimaryName, getTitle, isVisible, isVisible, onEnsureDebugId, removeStyleDependentName, removeStyleName, setElement, setElement, setHeight, setPixelSize, setSize, setStyleDependentName, setStyleName, setStyleName, setStyleName, setStyleName, setStylePrimaryName, setStylePrimaryName, setTitle, setVisible, setVisible, setWidth, sinkBitlessEvent, toString
 
- 
 
- 
- 
- 
Field Detail- 
contents@UiField SimplePanel contents 
 - 
errorLabel@UiField DivElement errorLabel 
 
- 
 - 
Constructor Detail- 
ValueBoxEditorDecorator@UiConstructor public ValueBoxEditorDecorator() Constructs a ValueBoxEditorDecorator.
 - 
ValueBoxEditorDecoratorpublic ValueBoxEditorDecorator(ValueBoxBase<T> widget, ValueBoxEditor<T> editor) Constructs a ValueBoxEditorDecorator using aValueBoxBasewidget and aValueBoxEditoreditor.- Parameters:
- widget- the widget
- editor- the editor
 
 
- 
 - 
Method Detail- 
asEditorpublic ValueBoxEditor<T> asEditor() Returns the associatedValueBoxEditor.- Specified by:
- asEditorin interface- IsEditor<T>
- Returns:
- a ValueBoxEditorinstance
- See Also:
- setEditor(ValueBoxEditor)
 
 - 
setEditorpublic void setEditor(ValueBoxEditor<T> editor) Sets the associatedValueBoxEditor.- Parameters:
- editor- a- ValueBoxEditorinstance
- See Also:
- asEditor()
 
 - 
setValueBox@UiChild(limit=1, tagname="valuebox") public void setValueBox(ValueBoxBase<T> widget) Set the widget that the EditorPanel will display. This method will automatically callsetEditor(com.google.gwt.editor.ui.client.adapters.ValueBoxEditor<T>).- Parameters:
- widget- a- ValueBoxBasewidget
 
 - 
showErrorspublic void showErrors(java.util.List<EditorError> errors) The default implementation will display, but not consume, received errors whosegetEditor()method returns the Editor passed intosetEditor(com.google.gwt.editor.ui.client.adapters.ValueBoxEditor<T>).- Specified by:
- showErrorsin interface- HasEditorErrors<T>
- Parameters:
- errors- a List of- EditorErrorinstances
 
 
- 
 
-