Class FieldHelpPanel

  • 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.IsRenderable, com.google.gwt.user.client.ui.IsWidget, com.google.gwt.user.client.ui.RequiresResize, FieldHelpView

    public class FieldHelpPanel
    extends com.google.gwt.user.client.ui.Composite
    implements com.google.gwt.user.client.ui.RequiresResize, FieldHelpView

    Default implementation of FieldHelpView that displays help contents in a small popup bubble to the right of the associated widget or UI element.

    It should be bound as a singleton and attached directly to the root layout panel or some other top-level layout panel. Whichever panel it is attached to must be set using the setContainerPanel(LayoutPanel) method.

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      static interface  FieldHelpPanel.FieldHelpConstants  
      static interface  FieldHelpPanel.Resources  
      static interface  FieldHelpPanel.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
    • Field Summary

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

        DEBUG_ID_PREFIX
    • Constructor Summary

      Constructors 
      Constructor Description
      FieldHelpPanel()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void adjustPosition()  
      void displayHelp​(com.google.gwt.dom.client.Element target, com.google.gwt.safehtml.shared.SafeHtml helpContent, com.google.gwt.dom.client.Element... autoHidePartners)  
      void displayHelp​(com.google.gwt.user.client.ui.Widget target, com.google.gwt.safehtml.shared.SafeHtml helpContent, com.google.gwt.dom.client.Element... autoHidePartners)  
      void hideHelp()  
      void onResize()  
      void setContainerPanel​(com.google.gwt.user.client.ui.LayoutPanel containerPanel)  
      • 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
      • Methods inherited from interface com.google.gwt.user.client.ui.IsWidget

        asWidget
    • Constructor Detail

      • FieldHelpPanel

        public FieldHelpPanel()
    • Method Detail

      • onResize

        public void onResize()
        Specified by:
        onResize in interface com.google.gwt.user.client.ui.RequiresResize
      • setContainerPanel

        public void setContainerPanel​(com.google.gwt.user.client.ui.LayoutPanel containerPanel)
      • displayHelp

        public void displayHelp​(com.google.gwt.user.client.ui.Widget target,
                                com.google.gwt.safehtml.shared.SafeHtml helpContent,
                                com.google.gwt.dom.client.Element... autoHidePartners)
        Specified by:
        displayHelp in interface FieldHelpView
      • displayHelp

        public void displayHelp​(com.google.gwt.dom.client.Element target,
                                com.google.gwt.safehtml.shared.SafeHtml helpContent,
                                com.google.gwt.dom.client.Element... autoHidePartners)
        Specified by:
        displayHelp in interface FieldHelpView