org.eclipse.actf.model.ui.editor.browser
Class WaitForBrowserReadyHandler
java.lang.Object
org.eclipse.actf.model.ui.editor.browser.WaitForBrowserReadyHandler
- All Implemented Interfaces:
- Runnable, WaitExecSyncEventHandler
public class WaitForBrowserReadyHandler
- extends Object
- implements WaitExecSyncEventHandler
Utility class to register Runnable to IWebBrowserACTF. The
Runnable will be invoked when the IWebBrowserACTF becomes
ready.
- See Also:
WaitExecSyncEventListener
|
Method Summary |
boolean |
canRun(double elapsed)
Check if action can be executed right now |
double |
getInterval()
Get scheduling interval in second |
void |
run()
|
INTERVAL
public static double INTERVAL
WaitForBrowserReadyHandler
public WaitForBrowserReadyHandler(IWebBrowserACTF browser,
double timeout,
boolean waitActive,
Runnable runnable)
- Constructor of the class
- Parameters:
browser - target IWebBrowserACTFtimeout - timeout valuewaitActive - if true, wait Shell becomes activerunnable - target Runnable to invoke
getInterval
public double getInterval()
- Description copied from interface:
WaitExecSyncEventHandler
- Get scheduling interval in second
- Specified by:
getInterval in interface WaitExecSyncEventHandler
- Returns:
- scheduling interval in second
canRun
public boolean canRun(double elapsed)
- Description copied from interface:
WaitExecSyncEventHandler
- Check if action can be executed right now
- Specified by:
canRun in interface WaitExecSyncEventHandler
- Parameters:
elapsed - elapsed time
- Returns:
- true if run method can be executed
run
public void run()
- Specified by:
run in interface Runnable