Class InputLabel

  • All Implemented Interfaces:
    com.google.gwt.event.logical.shared.HasAttachHandlers, com.google.gwt.event.shared.HasHandlers, com.google.gwt.i18n.shared.HasDirectionEstimator, com.google.gwt.user.client.EventListener, com.google.gwt.user.client.ui.HasDirectionalText, com.google.gwt.user.client.ui.HasText, com.google.gwt.user.client.ui.HasVisibility, com.google.gwt.user.client.ui.IsWidget

    public class InputLabel
    extends com.google.gwt.user.client.ui.Widget
    implements com.google.gwt.user.client.ui.HasDirectionalText, com.google.gwt.i18n.shared.HasDirectionEstimator
    label for input field, based on http://stackoverflow.com/questions/1533899/gwt-is-there-a-label-widget.
    Author:
    Manfred Tremmel
    • 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
    • Field Summary

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

        DEBUG_ID_PREFIX
    • Constructor Summary

      Constructors 
      Constructor Description
      InputLabel()  
      InputLabel​(com.google.gwt.dom.client.Element element)
      constructor.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      com.google.gwt.i18n.shared.DirectionEstimator getDirectionEstimator()  
      String getText()  
      com.google.gwt.i18n.client.HasDirection.Direction getTextDirection()  
      void setDirectionEstimator​(boolean enabled)  
      void setDirectionEstimator​(com.google.gwt.i18n.shared.DirectionEstimator directionEstimator)  
      void setFor​(com.google.gwt.user.client.ui.IsWidget target)
      set widget to reference to.
      void setForm​(String form)  
      void setHtml​(com.google.gwt.safehtml.shared.SafeHtml text)  
      void setText​(String text)  
      void setText​(String text, com.google.gwt.i18n.client.HasDirection.Direction dir)  
      • 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, isAttached, isOrWasAttached, onAttach, onBrowserEvent, onDetach, 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, resolvePotentialElement, setElement, setElement, setHeight, setPixelSize, setSize, setStyleDependentName, setStyleName, setStyleName, setStyleName, setStyleName, setStylePrimaryName, setStylePrimaryName, setTitle, setVisible, setVisible, setWidth, sinkBitlessEvent, toString
    • Constructor Detail

      • InputLabel

        public InputLabel()
      • InputLabel

        public InputLabel​(com.google.gwt.dom.client.Element element)
        constructor.
        Parameters:
        element - to use
    • Method Detail

      • getDirectionEstimator

        public com.google.gwt.i18n.shared.DirectionEstimator getDirectionEstimator()
        Specified by:
        getDirectionEstimator in interface com.google.gwt.i18n.shared.HasDirectionEstimator
      • setDirectionEstimator

        public void setDirectionEstimator​(com.google.gwt.i18n.shared.DirectionEstimator directionEstimator)
        Specified by:
        setDirectionEstimator in interface com.google.gwt.i18n.shared.HasDirectionEstimator
      • setDirectionEstimator

        public void setDirectionEstimator​(boolean enabled)
        Specified by:
        setDirectionEstimator in interface com.google.gwt.i18n.shared.HasDirectionEstimator
      • setFor

        public void setFor​(com.google.gwt.user.client.ui.IsWidget target)
        set widget to reference to.
        Parameters:
        target - reference field
      • setForm

        public void setForm​(String form)
      • getText

        public String getText()
        Specified by:
        getText in interface com.google.gwt.user.client.ui.HasText
      • setText

        public void setText​(String text)
        Specified by:
        setText in interface com.google.gwt.user.client.ui.HasText
      • setText

        public void setText​(String text,
                            com.google.gwt.i18n.client.HasDirection.Direction dir)
        Specified by:
        setText in interface com.google.gwt.user.client.ui.HasDirectionalText
      • setHtml

        public void setHtml​(com.google.gwt.safehtml.shared.SafeHtml text)
      • getTextDirection

        public com.google.gwt.i18n.client.HasDirection.Direction getTextDirection()
        Specified by:
        getTextDirection in interface com.google.gwt.user.client.ui.HasDirectionalText