public class FocusInContainerCondition
extends org.assertj.swing.timing.Condition
| Constructor and Description |
|---|
FocusInContainerCondition(org.assertj.swing.core.ComponentFinder finder,
org.assertj.swing.core.ComponentMatcher matcher)
Creates a new
|
FocusInContainerCondition(String name)
Creates a new
|
FocusInContainerCondition(String name,
Class<? extends Component> type)
Creates a new
|
FocusInContainerCondition(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 the focus is in either the container that we are
matching on, or one of its children contained inside it. |
public FocusInContainerCondition(String name, Class<? extends Component> type)
FocusInContainerConditionname - The name of the component to find.type - The type of the component to find.public FocusInContainerCondition(String name)
FocusInContainerConditionname - The name of the component to find.public FocusInContainerCondition(org.assertj.swing.core.ComponentFinder finder,
org.assertj.swing.core.ComponentMatcher matcher)
FocusInContainerConditionfinder - performs the component search.matcher - specifies the condition that the component we are looking for needs to
match.public FocusInContainerCondition(String description, org.assertj.swing.core.ComponentFinder finder, org.assertj.swing.core.ComponentMatcher matcher)
FocusInContainerConditiondescription - 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 the focus is in either the container that we are
matching on, or one of its children contained inside it.test in class org.assertj.swing.timing.Conditiontrue if the focus is in the component or contained within it, false otherwise.Copyright © 2014–2020 AssertJ. All rights reserved.