Package org.opencms.gwt.client.ui.input
Class CmsMultiSelectCell
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.CmsMultiSelectCell
- 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
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.- Since:
- 8.5.0
-
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
ConstructorsConstructorDescriptionCmsMultiSelectCell
(Map<String, org.opencms.util.CmsPair<String, Boolean>> optins) Creates a CmsMultiSelectCell. -
Method Summary
Modifier and TypeMethodDescriptionget
(int i) Returns the selected CmsCheckBox.Returns all CmsSelectBoxes.Returns the opener text.Returns the set of values of the selected checkboxes.getValue()
Returns the value of the select option as a string.void
setOpenerText
(String openerText) Sets the opener text.Methods inherited from class org.opencms.gwt.client.ui.input.A_CmsSelectCell
getRequiredWidth, 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
-
Constructor Details
-
CmsMultiSelectCell
Creates a CmsMultiSelectCell.- Parameters:
optins
- the values witch should be shown
-
-
Method Details
-
get
Returns the selected CmsCheckBox.- Parameters:
i
- the value of the selected CmsCheckBox- Returns:
- CmsCheckBox Returns the selected CmsCheckBox
-
getCheckbox
Returns all CmsSelectBoxes.- Returns:
- a list of CmsCheckBox
-
getOpenerText
Returns the opener text.- Returns:
- the opener text
-
getSelected
Returns the set of values of the selected checkboxes.- Returns:
- a set of strings
-
getValue
Description copied from class:A_CmsSelectCell
Returns the value of the select option as a string.- Specified by:
getValue
in classA_CmsSelectCell
- Returns:
- the value of the select option
- See Also:
-
setOpenerText
Sets the opener text.- Parameters:
openerText
- the new opener text
-