Class UniversalDecorator<T>

  • Type Parameters:
    T - the type of data being edited
    All Implemented Interfaces:
    com.google.gwt.editor.client.Editor<T>, com.google.gwt.editor.client.HasEditorErrors<T>, com.google.gwt.editor.client.IsEditor<com.google.gwt.editor.ui.client.adapters.ValueBoxEditor<T>>, com.google.gwt.event.dom.client.HasKeyPressHandlers, com.google.gwt.event.dom.client.HasKeyUpHandlers, com.google.gwt.event.logical.shared.HasAttachHandlers, com.google.gwt.event.logical.shared.HasValueChangeHandlers<T>, com.google.gwt.event.shared.HasHandlers, com.google.gwt.user.client.EventListener, com.google.gwt.user.client.TakesValue<T>, com.google.gwt.user.client.ui.Focusable, com.google.gwt.user.client.ui.HasEnabled, com.google.gwt.user.client.ui.HasValue<T>, com.google.gwt.user.client.ui.HasVisibility, com.google.gwt.user.client.ui.IsRenderable, com.google.gwt.user.client.ui.IsWidget

    public class UniversalDecorator<T>
    extends AbstractDecorator<T>
    This is a Decorator which in changes style sheets and shows error messages when validation fails.

    Use in UiBinder Templates

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

    For example:

     @UiField
     UniversalDecorator<String> name;
     
     <e:UniversalDecorator ui:field='name'>
     <e:widget>
     <g:TextBox />
     </e:widget>
     </e:UniversalDecorator>
     
    • Nested Class Summary

      • Nested classes/interfaces inherited from class com.google.gwt.user.client.ui.UIObject

        com.google.gwt.user.client.ui.UIObject.DebugIdImpl, com.google.gwt.user.client.ui.UIObject.DebugIdImplEnabled
      • Nested classes/interfaces inherited from interface com.google.gwt.editor.client.Editor

        com.google.gwt.editor.client.Editor.Ignore, com.google.gwt.editor.client.Editor.Path
    • Constructor Detail

      • UniversalDecorator

        @UiConstructor
        public UniversalDecorator​(PanelLocationEnum errorLocation)
        Constructs a ValueBoxEditorDecorator.
        Parameters:
        errorLocation - location of the error text