Class CmsMultiSelectCell

  • All Implemented Interfaces:,,,,,

    public class CmsMultiSelectCell
    extends A_CmsSelectCell
    Implements a select cell that can contain multiple entries. And its value is a list of all selected entry values. The getValue() returns the parsed String representation of the selected values, using a pipe '|' as separator.

    • Nested Class Summary

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

      • Fields inherited from class

    • Constructor Summary

      Constructor Description
      CmsMultiSelectCell​(java.util.Map<java.lang.String,​org.opencms.util.CmsPair<java.lang.String,​java.lang.Boolean>> optins)
      Creates a CmsMultiSelectCell.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      CmsCheckBox get​(int i)
      Returns the selected CmsCheckBox.
      java.util.List<CmsCheckBox> getCheckbox()
      Returns all CmsSelectBoxes.
      java.lang.String getOpenerText()
      Returns the opener text.
      java.util.Set<java.lang.String> getSelected()
      Returns the set of values of the selected checkboxes.
      java.lang.String getValue()
      Returns the value of the select option as a string.
      void setOpenerText​(java.lang.String openerText)
      Sets the opener text.
      • 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
    • Constructor Detail

      • CmsMultiSelectCell

        public CmsMultiSelectCell​(java.util.Map<java.lang.String,​org.opencms.util.CmsPair<java.lang.String,​java.lang.Boolean>> optins)
        Creates a CmsMultiSelectCell.

        optins - the values witch should be shown
    • Method Detail

      • get

        public CmsCheckBox get​(int i)
        Returns the selected CmsCheckBox.

        i - the value of the selected CmsCheckBox
        CmsCheckBox Returns the selected CmsCheckBox
      • getCheckbox

        public java.util.List<CmsCheckBoxgetCheckbox()
        Returns all CmsSelectBoxes.

        a list of CmsCheckBox
      • getOpenerText

        public java.lang.String getOpenerText()
        Returns the opener text.

        the opener text
      • getSelected

        public java.util.Set<java.lang.String> getSelected()
        Returns the set of values of the selected checkboxes.

        a set of strings
      • setOpenerText

        public void setOpenerText​(java.lang.String openerText)
        Sets the opener text.

        openerText - the new opener text