|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.awt.event.ComponentAdapter
org.fest.swing.driver.ComponentShownWaiter
public final class ComponentShownWaiter
Understands waiting for a to be shown.
Component
| Method Summary | |
|---|---|
void |
componentShown(ComponentEvent e)
Notification that the component to wait for is finally shown on the screen. |
static void |
waitTillShown(Component toWaitFor)
Waits until the given component is shown on the screen, using a timeout of 5 seconds. |
static void |
waitTillShown(Component toWaitFor,
long timeout)
Waits until the given component is shown on the screen. |
| Methods inherited from class java.awt.event.ComponentAdapter |
|---|
componentHidden, componentMoved, componentResized |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static void waitTillShown(Component toWaitFor)
toWaitFor - the component to wait for.
WaitTimedOutError - if the component is not shown before the default timeout of 5 seconds.
public static void waitTillShown(Component toWaitFor,
long timeout)
toWaitFor - the component to wait for.timeout - the amount to time (in milliseconds) to wait for the component to be shown.
WaitTimedOutError - if the component is not shown before the given timeout expires.@RunsInEDT public void componentShown(ComponentEvent e)
componentShown in interface ComponentListenercomponentShown in class ComponentAdaptere - the event raised when the component has been made visible.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||