public final class ComponentShownWaiter extends ComponentAdapter
Component to be shown.| Modifier and Type | Method and Description |
|---|---|
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.
|
componentHidden, componentMoved, componentResizedpublic 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.Copyright © 2007-2012 FEST (Fixtures for Easy Software Testing). All Rights Reserved.