org.fest.swing.driver
Class WaitForComponentToShowCondition

java.lang.Object
  extended by org.fest.swing.timing.Condition
      extended by 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

Field Summary
 
Fields inherited from class org.fest.swing.timing.Condition
EMPTY_TEXT
 
Method Summary
protected  void done()
          $Notification that this condition has been evaluated.
 boolean test()
          Indicates whether the Component in this condition is showing on the screen or not.
static WaitForComponentToShowCondition untilIsShowing(Component c)
          Creates a new WaitForComponentToShowCondition.
 
Methods inherited from class org.fest.swing.timing.Condition
descriptionAddendum, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

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.