Package io.jmix.masquerade.sys
Class DialogWindow<T extends DialogWindow<T>>
java.lang.Object
io.jmix.masquerade.component.AbstractSpecificConditionHandler<T>
io.jmix.masquerade.sys.Composite<T>
io.jmix.masquerade.sys.DialogWindow<T>
- Type Parameters:
T- type of dialog class
- All Implemented Interfaces:
SpecificConditionHandler,ByLocator,SelenideElementWrapper<T>
Abstract class for dialog windows.
-
Field Summary
Fields inherited from class io.jmix.masquerade.sys.Composite
by, wrappedElement -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncom.codeborne.selenide.CheckResultcheck(SpecificCondition condition) Checks whether the current handler matches the passedSpecificCondition.voidclose()Closes this dialog by clicking the close button.protected com.codeborne.selenide.SelenideElementprotected com.codeborne.selenide.SelenideElementMethods inherited from class io.jmix.masquerade.sys.Composite
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
-
DialogWindow
public DialogWindow()
-
-
Method Details
-
check
Description copied from interface:SpecificConditionHandlerChecks whether the current handler matches the passedSpecificCondition.- Specified by:
checkin interfaceSpecificConditionHandler- Overrides:
checkin classAbstractSpecificConditionHandler<T extends DialogWindow<T>>- Parameters:
condition- condition to check- Returns:
CheckResultthat containsCheckResult.Verdict.ACCEPTif the current handler matches the passedSpecificCondition,CheckResult.Verdict.REJECTotherwise
-
close
public void close()Closes this dialog by clicking the close button. -
getHeaderElement
protected com.codeborne.selenide.SelenideElement getHeaderElement()- Returns:
SelenideElementof the dialog header element
-
getCloseButtonElement
protected com.codeborne.selenide.SelenideElement getCloseButtonElement()- Returns:
SelenideElementof the close dialog button
-