Class UniversalDecoratorWithIcons<T>

  • Type Parameters:
    T - the type of data being edited
    All Implemented Interfaces:
    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, org.gwtproject.editor.client.Editor<T>, org.gwtproject.editor.client.HasEditorErrors<T>, org.gwtproject.editor.client.IsEditor<ValueBoxEditor<T>>

    public class UniversalDecoratorWithIcons<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
     UniversalDecoratorWithIcons<String> name;
     
     <e:UniversalDecoratorWithIcons ui:field='name'>
     <e:widget>
     <g:TextBox />
     </e:widget>
     </e:UniversalDecoratorWithIcons>
     
    • Constructor Detail

      • UniversalDecoratorWithIcons

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

      • getExtendedResources

        protected static AbstractDecorator.Resources getExtendedResources()
        get default resource, if not set, create one.
        Returns:
        default resource.