org.fest.swing.driver
Class WaitForComponentToShowCondition
java.lang.Object
org.fest.swing.timing.Condition
org.fest.swing.driver.WaitForComponentToShowCondition
public class WaitForComponentToShowCondition
- extends Condition
Understands a condition that verifies that a Component
is showing on the screen.
- Author:
- Yvonne Wang
untilIsShowing
public static WaitForComponentToShowCondition untilIsShowing(Component c)
- Creates a new
WaitForComponentToShowCondition
.
- Parameters:
c
- the Component
to verify.
- Returns:
- the created condition.
- Throws:
NullPointerException
- if the Component
is null
.
test
public boolean test()
- Indicates whether the
Component
in this condition is showing on the screen or not.
- Specified by:
test
in class Condition
- Returns:
true
if the Component
in this condition is showing on the screen,
false
otherwise
done
protected void done()
- $Notification that this condition has been evaluated. This method is invoked by
Pause.pause(Condition)
(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.
- Overrides:
done
in class Condition
Copyright © 2007-2011 FEST (Fixtures for Easy Software Testing). All Rights Reserved.