Class CmsLabelSelectCell

java.lang.Object
com.google.gwt.user.client.ui.UIObject
com.google.gwt.user.client.ui.Widget
com.google.gwt.user.client.ui.Composite
org.opencms.gwt.client.ui.input.A_CmsSelectCell
org.opencms.gwt.client.ui.input.CmsLabelSelectCell
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, I_CmsTruncable

public class CmsLabelSelectCell extends A_CmsSelectCell implements I_CmsTruncable
This class represents a single select option in the selector of the select box.
  • 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
    Modifier and Type
    Field
    Description
    protected String
    The value of the select option.

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

    DEBUG_ID_PREFIX
  • Constructor Summary

    Constructors
    Constructor
    Description
    Creates a new select cell.
    CmsLabelSelectCell(String value, String text, String title)
    Creates a new select cell.
  • Method Summary

    Modifier and Type
    Method
    Description
    Gets the opener text.
    int
    Measures the required width for this cell.
    Returns the text as which the select option should be displayed to the user.
    Returns the value of the select option as a string.
    void
    setOpenerText(String openerText)
    Sets the opener text.
    void
    Sets the text of the label.
    void
    truncate(String textMetricsKey, int labelWidth)
    Truncates long text and sets the original text to the title attribute.

    Methods inherited from class org.opencms.gwt.client.ui.input.A_CmsSelectCell

    registerDomHandler

    Methods inherited from class com.google.gwt.user.client.ui.Composite

    claimElement, getWidget, initializeClaimedElement, initWidget, isAttached, onAttach, onBrowserEvent, onDetach, render, render, resolvePotentialElement, setWidget

    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, isOrWasAttached, 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, 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
  • Field Details

    • m_value

      protected String m_value
      The value of the select option.
  • Constructor Details

    • CmsLabelSelectCell

      public CmsLabelSelectCell(String value, String text)
      Creates a new select cell.

      Parameters:
      value - the value of the select option
      text - the text to display for the select option
    • CmsLabelSelectCell

      public CmsLabelSelectCell(String value, String text, String title)
      Creates a new select cell.

      Parameters:
      value - the value of the select option
      text - the text to display for the select option
      title - the title to display on mouseover
  • Method Details