Class A_CmsSelectCell

  • All Implemented Interfaces:,,,,,
    Direct Known Subclasses:
    CmsLabelSelectCell, CmsMultiSelectCell

    public abstract class A_CmsSelectCell
    An abstract class for widgets which represent options for select boxes.

    • Nested Class Summary

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

      • Fields inherited from class

    • Constructor Summary

      Constructor Description
    • Method Summary

      All Methods Instance Methods Abstract Methods Concrete Methods 
      Modifier and Type Method Description
      int getRequiredWidth()
      Measures the required width for this cell.
      abstract java.lang.String getValue()
      Returns the value of the select option as a string.
      <H extends>
      registerDomHandler​(H handler,<H> type)
      Adds a new event handler to the widget.
      • Methods inherited from class

        claimElement, getWidget, initializeClaimedElement, initWidget, isAttached, onAttach, onBrowserEvent, onDetach, render, render, resolvePotentialElement, setWidget
      • Methods inherited from class

        addAttachHandler, addBitlessDomHandler, addDomHandler, addHandler, asWidget, asWidgetOrNull, createHandlerManager, delegateEvent, doAttachChildren, doDetachChildren, fireEvent, getHandlerCount, getLayoutData, getParent, isOrWasAttached, 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, 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
    • Method Detail

      • getRequiredWidth

        public int getRequiredWidth()
        Measures the required width for this cell.

        the required width
      • getValue

        public abstract java.lang.String getValue()
        Returns the value of the select option as a string.

        the value of the select option
      • registerDomHandler

        public <H extends> registerDomHandler​(H handler,
                                                                                                                             <H> type)
        Adds a new event handler to the widget.

        This method is used because we want the select box to register some event handlers on this widget, but we can't use Widget.addDomHandler(H,<H>) directly, since it's both protected and final.

        Type Parameters:
        H - the event type
        handler - the new event handler
        type - the event type object
        the HandlerRegistration for removing the event handler