Class AnnotatedWidgetWrapper

  • All Implemented Interfaces:
    com.google.gwt.event.logical.shared.HasAttachHandlers, com.google.gwt.event.shared.HasHandlers, com.google.gwt.user.client.EventListener, com.google.gwt.user.client.ui.HasVisibility, com.google.gwt.user.client.ui.HasWidgets, com.google.gwt.user.client.ui.HasWidgets.ForIsWidget, com.google.gwt.user.client.ui.IsRenderable, com.google.gwt.user.client.ui.IsWidget, Iterable<com.google.gwt.user.client.ui.Widget>

    public class AnnotatedWidgetWrapper
    extends com.google.gwt.user.client.ui.Composite
    implements com.google.gwt.user.client.ui.HasWidgets.ForIsWidget

    UI wrapper for widgets that need an annotation marker with popup explanation.

    Provides help display (using FieldHelpView).

    Example use in UIBinder template:

     <ems:AnnotatedWidgetWrapper ui:field="exampleButtonAnnotated">
       <g:Button ui:field="exampleButton"/>
     </ems:AnnotatedWidgetWrapper>
     

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      static interface  AnnotatedWidgetWrapper.AnnotatedWidgetWrapperConstants  
      static interface  AnnotatedWidgetWrapper.Resources  
      static interface  AnnotatedWidgetWrapper.Style  
      • 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.user.client.ui.HasWidgets

        com.google.gwt.user.client.ui.HasWidgets.ForIsWidget
    • Field Summary

      • Fields inherited from class com.google.gwt.user.client.ui.UIObject

        DEBUG_ID_PREFIX
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void add​(com.google.gwt.user.client.ui.IsWidget w)  
      void add​(com.google.gwt.user.client.ui.Widget w)  
      void clear()  
      Iterator<com.google.gwt.user.client.ui.Widget> iterator()  
      boolean remove​(com.google.gwt.user.client.ui.IsWidget w)  
      boolean remove​(com.google.gwt.user.client.ui.Widget w)  
      void setHelp​(com.google.gwt.safehtml.shared.SafeHtml helpContent)  
      void setHelpView​(FieldHelpView fieldHelpView)  
      • Methods inherited from class com.google.gwt.user.client.ui.Composite

        claimElement, initializeClaimedElement, isAttached, onBrowserEvent, render, render
      • Methods inherited from class com.google.gwt.user.client.ui.Widget

        addAttachHandler, addBitlessDomHandler, addDomHandler, addHandler, asWidget, asWidgetOrNull, fireEvent, getLayoutData, getParent, removeFromParent, setLayoutData, sinkEvents, unsinkEvents
      • Methods inherited from class com.google.gwt.user.client.ui.UIObject

        addStyleDependentName, addStyleName, ensureDebugId, ensureDebugId, getAbsoluteLeft, getAbsoluteTop, getElement, getOffsetHeight, getOffsetWidth, getStyleName, getStylePrimaryName, getTitle, isVisible, isVisible, removeStyleDependentName, removeStyleName, setHeight, setPixelSize, setSize, setStyleDependentName, setStyleName, setStyleName, setStylePrimaryName, setTitle, setVisible, setVisible, setWidth, sinkBitlessEvent, toString
    • Constructor Detail

      • AnnotatedWidgetWrapper

        public AnnotatedWidgetWrapper()
    • Method Detail

      • setHelpView

        public void setHelpView​(FieldHelpView fieldHelpView)
      • setHelp

        public void setHelp​(com.google.gwt.safehtml.shared.SafeHtml helpContent)
      • add

        public void add​(com.google.gwt.user.client.ui.Widget w)
        Specified by:
        add in interface com.google.gwt.user.client.ui.HasWidgets
      • add

        public void add​(com.google.gwt.user.client.ui.IsWidget w)
        Specified by:
        add in interface com.google.gwt.user.client.ui.HasWidgets.ForIsWidget
      • clear

        public void clear()
        Specified by:
        clear in interface com.google.gwt.user.client.ui.HasWidgets
      • iterator

        public Iterator<com.google.gwt.user.client.ui.Widget> iterator()
        Specified by:
        iterator in interface com.google.gwt.user.client.ui.HasWidgets
        Specified by:
        iterator in interface Iterable<com.google.gwt.user.client.ui.Widget>
      • remove

        public boolean remove​(com.google.gwt.user.client.ui.Widget w)
        Specified by:
        remove in interface com.google.gwt.user.client.ui.HasWidgets
      • remove

        public boolean remove​(com.google.gwt.user.client.ui.IsWidget w)
        Specified by:
        remove in interface com.google.gwt.user.client.ui.HasWidgets.ForIsWidget