Package org.fest.swing.driver
Class WaitForComponentToShowCondition
java.lang.Object
org.fest.swing.timing.Condition
org.fest.swing.driver.WaitForComponentToShowCondition
Understands a condition that verifies that a
Component
is showing on the screen.-
Field Summary
FieldsFields inherited from class org.fest.swing.timing.Condition
EMPTY_TEXT
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected void
done()
$Notification that this condition has been evaluated.boolean
test()
Indicates whether the
in this condition is showing on the screen or not.Component
Creates a newWaitForComponentToShowCondition
.Methods inherited from class org.fest.swing.timing.Condition
descriptionAddendum, toString
-
Field Details
-
c
-
-
Constructor Details
-
WaitForComponentToShowCondition
-
-
Method Details
-
untilIsShowing
Creates a newWaitForComponentToShowCondition
.- Parameters:
c
- theComponent
to verify.- Returns:
- the created condition.
- Throws:
NullPointerException
- if theComponent
isnull
.
-
test
public boolean test()Indicates whether the
in this condition is showing on the screen or not.Component
-
done
protected void done()$Notification that this condition has been evaluated. This method is invoked by
(and all overloaded methods) when this condition is evaluated (either it was satisfied or it timed-out.) This is a good place to do any necessary resource cleanup.Pause.pause(Condition)
-