Class WidgetWrapper

  • All Implemented Interfaces:,,<java.lang.String>,,,<java.lang.String>,<java.lang.String>,,, I_CmsEditWidget, I_CmsFormEditWidget

    public final class WidgetWrapper
    implements I_CmsFormEditWidget
    Wrapper for a native widget.

    • Nested Class Summary

      • Nested classes/interfaces inherited from class,
    • Field Summary

      • Fields inherited from class

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description addFocusHandler​( handler) addValueChangeHandler​(<java.lang.String> handler)  
      protected void fireChangeEvent()
      Fires the value change event.
      protected void fireFocusEvent()
      Fires the focus event.
      java.lang.String getValue()  
      boolean isActive()
      Returns if the widget is active.
      protected void onAttach()  
      void onAttachWidget()
      This method is called when a widget is attached to the browser's document.
      boolean owns​( element)
      Returns true if the element should be logically counted as part of the widget for the purpose of determining whether a mouse click is "outside".
      void setActive​(boolean active)
      Sets the widget active/inactive.
      void setName​(java.lang.String name)
      Sets the name of input fields.
      void setValue​(java.lang.String value)  
      void setValue​(java.lang.String value, boolean fireEvents)  
      void setWidgetInfo​(java.lang.String label, java.lang.String help)
      Sets the widget label and help text.
      • Methods inherited from class

        addAttachHandler, addBitlessDomHandler, addDomHandler, addHandler, asWidget, asWidgetOrNull, createHandlerManager, delegateEvent, doAttachChildren, doDetachChildren, fireEvent, getHandlerCount, getLayoutData, getParent, isAttached, isOrWasAttached, onBrowserEvent, onDetach, onLoad, onUnload, removeFromParent, setLayoutData, sinkEvents, unsinkEvents
      • Methods inherited from class

        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
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
      • Methods inherited from interface

      • Methods inherited from interface

    • Method Detail

      • addFocusHandler

        public addFocusHandler​( handler)
        Specified by:
        addFocusHandler in interface
        See Also:
      • addValueChangeHandler

        public addValueChangeHandler​(<java.lang.String> handler)
        Specified by:
        addValueChangeHandler in interface<java.lang.String>
        Specified by:
        addValueChangeHandler in interface I_CmsEditWidget
        See Also:
      • getValue

        public java.lang.String getValue()
        Specified by:
        getValue in interface<java.lang.String>
        Specified by:
        getValue in interface<java.lang.String>
        See Also:
      • owns

        public boolean owns​( element)
        Description copied from interface: I_CmsEditWidget
        Returns true if the element should be logically counted as part of the widget for the purpose of determining whether a mouse click is "outside". For example, this is needed if the widget uses a popup.
        Specified by:
        owns in interface I_CmsEditWidget
        element - the element to check
        true if the element counts as part of the widget
        See Also:
      • setValue

        public void setValue​(java.lang.String value)
        Specified by:
        setValue in interface<java.lang.String>
        Specified by:
        setValue in interface<java.lang.String>
        See Also:
      • fireChangeEvent

        protected void fireChangeEvent()
        Fires the value change event.

      • fireFocusEvent

        protected void fireFocusEvent()
        Fires the focus event.

      • onAttach

        protected void onAttach()
        onAttach in class
        See Also: