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_CSSFields inherited from class io.jmix.masquerade.component.AbstractComponent
by, wrappedElement -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncom.codeborne.selenide.CheckResultcheck(SpecificCondition condition) Checks whether the current handler matches the passedSpecificCondition.protected voidprotected voidprotected 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, typeMethods inherited from class io.jmix.masquerade.component.AbstractOverlayComponent
clickItemsOverlay, getHostCssSelector, getItemsOverlayMethods inherited from class io.jmix.masquerade.component.AbstractField
getInputDelegate, getLabelDelegateMethods inherited from class io.jmix.masquerade.component.AbstractComponent
getBy, getDelegateMethods inherited from class io.jmix.masquerade.component.AbstractSpecificConditionHandler
should, should, shouldBe, shouldBe, shouldHave, shouldHave, shouldNot, shouldNot, shouldNotBe, shouldNotBe, shouldNotHave, shouldNotHaveMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods 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:
getItemsOverlayElementin classAbstractComboBox<T extends AbstractMultiSelectComboBox<T>>- Returns:
- current opened
overlay wrapperfor the combobox
-
setValue
Sets a value to multi-select combobox.- Parameters:
value- value items to set- Returns:
thisto call fluent API
-
setValue
Sets a value to multi-select combobox.- Parameters:
value- list of value items to set- Returns:
thisto call fluent API
-
check
Description copied from interface:SpecificConditionHandlerChecks whether the current handler matches the passedSpecificCondition.- Specified by:
checkin interfaceSpecificConditionHandler- Overrides:
checkin classAbstractField<T extends AbstractMultiSelectComboBox<T>>- Parameters:
condition- condition to check- Returns:
CheckResultthat containsCheckResult.Verdict.ACCEPTif the current handler matches the passedSpecificCondition,CheckResult.Verdict.REJECTotherwise
-
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-Byselector for multi-select combobox overlay- Returns:
- iterator for overlay items
-