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<T>
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 TypeMethodDescriptionprotected 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()resolve(SpecificCondition condition) Resolves the passedSpecificConditioninto aSpecificCheckthat describes how it must be checked for the current handler.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
-
resolve
Description copied from interface:SpecificConditionHandlerResolves the passedSpecificConditioninto aSpecificCheckthat describes how it must be checked for the current handler. The actual verdict is computed centrally bySpecificCondition.check(com.codeborne.selenide.Driver, org.openqa.selenium.WebElement).- Specified by:
resolvein interfaceSpecificConditionHandler- Overrides:
resolvein classAbstractField<T extends AbstractMultiSelectComboBox<T>>- Parameters:
condition- condition to resolve- Returns:
- a
SpecificCheckdescribing how to check the passed condition
-
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
-