|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.eclipse.swtbot.swt.finder.waits.Conditions
public abstract class Conditions
This is a factory class to create some conditions provided with SWTBot.
Constructor Summary | |
---|---|
Conditions()
|
Method Summary | ||
---|---|---|
static ICondition |
shellCloses(SWTBotShell shell)
Gets the condition for checking if shells have closed. |
|
static ICondition |
shellIsActive(String shellText)
Gets the condition for checking if an awaited shell is visible and has focus |
|
static ICondition |
tableHasRows(SWTBotTable table,
int rowCount)
Gets the condition for checking tables have the proper number of rows. |
|
static ICondition |
treeHasRows(SWTBotTree tree,
int rowCount)
Gets the condition for checking trees have the proper number of rows. |
|
static WaitForObjectCondition<MenuItem> |
waitForMenu(SWTBotShell shell,
Matcher<MenuItem> matcher)
|
|
static WaitForObjectCondition<Shell> |
waitForShell(Matcher<Shell> matcher)
|
|
static WaitForObjectCondition<Shell> |
waitForShell(Matcher<Shell> matcher,
Shell parent)
|
|
static
|
waitForWidget(Matcher<T> matcher)
|
|
static
|
waitForWidget(Matcher<T> matcher,
Widget parent)
|
|
static ICondition |
widgetIsEnabled(AbstractSWTBot<? extends Widget> widget)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Conditions()
Method Detail |
---|
public static ICondition tableHasRows(SWTBotTable table, int rowCount)
table
- the tablerowCount
- the number of rows that the table must have, in order for ICondition.test()
to evaluate
to true
.
true
if the table has the number of rows specified. Otherwise false
.
IllegalArgumentException
- Thrown if the row count is less then 1.public static ICondition treeHasRows(SWTBotTree tree, int rowCount)
tree
- the treerowCount
- the number of rows that the tree must have, in order for ICondition.test()
to evaluate to
true
.
true
if the tree has the number of rows specified. Otherwise false
.
IllegalArgumentException
- Thrown if the row count is less then 1.public static ICondition shellCloses(SWTBotShell shell)
shell
- the shell to monitor.
public static ICondition shellIsActive(String shellText)
shellText
- the text of the shell.
public static <T extends Widget> WaitForObjectCondition<T> waitForWidget(Matcher<T> matcher)
matcher
- a matcher.
public static <T extends Widget> WaitForObjectCondition<T> waitForWidget(Matcher<T> matcher, Widget parent)
matcher
- a matcher.parent
- the parent under which a widget will be found.
public static WaitForObjectCondition<Shell> waitForShell(Matcher<Shell> matcher)
matcher
- the matcher.
public static WaitForObjectCondition<Shell> waitForShell(Matcher<Shell> matcher, Shell parent)
matcher
- the matcher.parent
- the parent under which a shell will be found or null
to search all shells.
public static WaitForObjectCondition<MenuItem> waitForMenu(SWTBotShell shell, Matcher<MenuItem> matcher)
shell
- the shell to search for the menu.matcher
- the matcher.
public static ICondition widgetIsEnabled(AbstractSWTBot<? extends Widget> widget)
widget
- the widget
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |