public class ComponentFocusedCondition
extends org.assertj.swing.timing.Condition
| Constructor and Description |
|---|
ComponentFocusedCondition(org.assertj.swing.core.ComponentFinder finder,
org.assertj.swing.core.ComponentMatcher matcher)
Creates a new
|
ComponentFocusedCondition(String name)
Creates a new
|
ComponentFocusedCondition(String name,
Class<? extends Component> type)
Creates a new
|
ComponentFocusedCondition(String description,
org.assertj.swing.core.ComponentFinder finder,
org.assertj.swing.core.ComponentMatcher matcher)
Creates a new
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
test()
Returns
true if a component that matches the search criteria in this
condition's can be found. |
public ComponentFocusedCondition(String name)
ComponentVisibleConditionname - The name of the component to find in the GUI.public ComponentFocusedCondition(String name, Class<? extends Component> type)
ComponentVisibleConditionname - The name of the component to find in the GUI.type - The type of the component to find.public ComponentFocusedCondition(org.assertj.swing.core.ComponentFinder finder,
org.assertj.swing.core.ComponentMatcher matcher)
ComponentVisibleConditionfinder - performs the component search.matcher - specifies the condition that the component we are looking for needs to
match.public ComponentFocusedCondition(String description, org.assertj.swing.core.ComponentFinder finder, org.assertj.swing.core.ComponentMatcher matcher)
ComponentVisibleConditiondescription - the description of this condition.finder - performs the component search.matcher - specifies the condition that the component we are looking for needs to
match.public boolean test()
true if a component that matches the search criteria in this
condition's ComponentMatcher can be found.
Otherwise, this method returns false.test in class org.assertj.swing.timing.Conditiontrue if a matching component can be found, false otherwise.Copyright © 2014–2020 AssertJ. All rights reserved.