Package io.jmix.masquerade.component
Class AbstractMultiSelectComboBox<T extends AbstractMultiSelectComboBox<T>>
java.lang.Object
io.jmix.masquerade.component.AbstractSpecificConditionHandler<T>
io.jmix.masquerade.component.AbstractComponent<T>
io.jmix.masquerade.component.AbstractField<C>
io.jmix.masquerade.component.AbstractOverlayComponent<T,ComboBoxOverlay<T>>
io.jmix.masquerade.component.AbstractComboBox<T>
io.jmix.masquerade.component.AbstractMultiSelectComboBox<T>
- Type Parameters:
T
- inheritor class type
- All Implemented Interfaces:
SpecificConditionHandler
,ByLocator
,SelenideElementWrapper<T>
- Direct Known Subclasses:
MultiSelectComboBox
,MultiSelectComboBoxPicker
public abstract class AbstractMultiSelectComboBox<T extends AbstractMultiSelectComboBox<T>>
extends AbstractComboBox<T>
Abstract class for multi-select combobox web-element wrappers. Supports setting value,
SelectedItems
,
SelectedItemsContains
, SelectedItemsCount
and Label
condition checking.-
Field Summary
Fields inherited from class io.jmix.masquerade.component.AbstractOverlayComponent
TOGGLE_BUTTON_CSS
Fields inherited from class io.jmix.masquerade.component.AbstractComponent
by, wrappedElement
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncom.codeborne.selenide.CheckResult
check
(SpecificCondition condition) Checks whether the current handler matches the passedSpecificCondition
.protected void
protected void
protected Iterator<com.codeborne.selenide.SelenideElement>
getElementIterator
(org.openqa.selenium.By overlayBy) Creates and returns iterator for multi-select combobox overlay items.protected ComboBoxOverlay<T>
getValue()
Sets a value to multi-select combobox.Sets a value to multi-select combobox.Methods inherited from class io.jmix.masquerade.component.AbstractComboBox
selectSingleValue, type
Methods inherited from class io.jmix.masquerade.component.AbstractOverlayComponent
clickItemsOverlay, getHostCssSelector, getItemsOverlay
Methods inherited from class io.jmix.masquerade.component.AbstractField
getInputDelegate, getLabelDelegate
Methods inherited from class io.jmix.masquerade.component.AbstractComponent
getBy, getDelegate
Methods inherited from class io.jmix.masquerade.component.AbstractSpecificConditionHandler
should, should, shouldBe, shouldBe, shouldHave, shouldHave, shouldNot, shouldNot, shouldNotBe, shouldNotBe, shouldNotHave, shouldNotHave
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface io.jmix.masquerade.sys.SelenideElementWrapper
disabled, displayed, enabled, exists, shouldHaveAttribute, shouldHaveAttributeValue, shouldHaveCss, shouldHaveCssValue, shouldNotHaveAttribute, shouldNotHaveAttributeValue, shouldNotHaveCss, shouldNotHaveCssValue
-
Constructor Details
-
AbstractMultiSelectComboBox
protected AbstractMultiSelectComboBox(org.openqa.selenium.By by)
-
-
Method Details
-
getItemsOverlayElement
- Overrides:
getItemsOverlayElement
in classAbstractComboBox<T extends AbstractMultiSelectComboBox<T>>
- Returns:
- current opened
overlay wrapper
for the combobox
-
setValue
Sets a value to multi-select combobox.- Parameters:
value
- value items to set- Returns:
this
to call fluent API
-
setValue
Sets a value to multi-select combobox.- Parameters:
value
- list of value items to set- Returns:
this
to call fluent API
-
check
Description copied from interface:SpecificConditionHandler
Checks whether the current handler matches the passedSpecificCondition
.- Specified by:
check
in interfaceSpecificConditionHandler
- Overrides:
check
in classAbstractField<T extends AbstractMultiSelectComboBox<T>>
- Parameters:
condition
- condition to check- Returns:
CheckResult
that containsCheckResult.Verdict.ACCEPT
if the current handler matches the passedSpecificCondition
,CheckResult.Verdict.REJECT
otherwise
-
clearValue
protected void clearValue() -
getValue
-
closeOverlay
protected void closeOverlay() -
getElementIterator
protected Iterator<com.codeborne.selenide.SelenideElement> getElementIterator(org.openqa.selenium.By overlayBy) Creates and returns iterator for multi-select combobox overlay items.- Parameters:
overlayBy
-By
selector for multi-select combobox overlay- Returns:
- iterator for overlay items
-