|
GWT 2.7.0 | |||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectcom.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>
T - the type of data being editedpublic class ValueBoxEditorDecorator<T>
A simple decorator to display leaf widgets with an error message.
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>
| Nested Class Summary | |
|---|---|
(package private) static interface |
ValueBoxEditorDecorator.Binder
|
| Nested classes/interfaces inherited from class com.google.gwt.user.client.ui.UIObject |
|---|
UIObject.DebugIdImpl, UIObject.DebugIdImplEnabled |
| Nested classes/interfaces inherited from interface com.google.gwt.editor.client.Editor |
|---|
Editor.Ignore, Editor.Path |
| Field Summary | |
|---|---|
(package private) SimplePanel |
contents
|
(package private) DivElement |
errorLabel
|
| Fields inherited from class com.google.gwt.user.client.ui.UIObject |
|---|
DEBUG_ID_PREFIX |
| Constructor Summary | |
|---|---|
ValueBoxEditorDecorator()
Constructs a ValueBoxEditorDecorator. |
|
ValueBoxEditorDecorator(ValueBoxBase<T> widget,
ValueBoxEditor<T> editor)
Constructs a ValueBoxEditorDecorator using a ValueBoxBase
widget and a ValueBoxEditor editor. |
|
| Method Summary | |
|---|---|
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(java.util.List<EditorError> errors)
The default implementation will display, but not consume, received errors whose getEditor() method returns the Editor
passed into setEditor(com.google.gwt.editor.ui.client.adapters.ValueBoxEditor. |
| Methods inherited from class com.google.gwt.user.client.ui.Composite |
|---|
claimElement, getWidget, initializeClaimedElement, initWidget, isAttached, onAttach, onBrowserEvent, onDetach, render, render, resolvePotentialElement, setWidget |
| Methods inherited from class com.google.gwt.user.client.ui.Widget |
|---|
addAttachHandler, 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.UIObject |
|---|
addStyleDependentName, 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 |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
@UiField SimplePanel contents
@UiField DivElement errorLabel
| Constructor Detail |
|---|
@UiConstructor public ValueBoxEditorDecorator()
public ValueBoxEditorDecorator(ValueBoxBase<T> widget,
ValueBoxEditor<T> editor)
ValueBoxBase
widget and a ValueBoxEditor editor.
widget - the widgeteditor - the editor| Method Detail |
|---|
public ValueBoxEditor<T> asEditor()
ValueBoxEditor.
asEditor in interface IsEditor<ValueBoxEditor<T>>ValueBoxEditor instancesetEditor(ValueBoxEditor)public void setEditor(ValueBoxEditor<T> editor)
ValueBoxEditor.
editor - a ValueBoxEditor instanceasEditor()
@UiChild(limit=1,
tagname="valuebox")
public void setValueBox(ValueBoxBase<T> widget)
setEditor(com.google.gwt.editor.ui.client.adapters.ValueBoxEditor) .
widget - a ValueBoxBase widgetpublic void showErrors(java.util.List<EditorError> errors)
getEditor() method returns the Editor
passed into setEditor(com.google.gwt.editor.ui.client.adapters.ValueBoxEditor) .
showErrors in interface HasEditorErrors<T>errors - a List of EditorError instances
|
GWT 2.7.0 | |||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||