org.eclipse.actf.model.ui.editor.browser
Class WaitForBrowserReadyHandler
java.lang.Object
   org.eclipse.actf.model.ui.editor.browser.WaitForBrowserReadyHandler
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- IWebBrowserACTF
- timeout- timeout value
- waitActive- if true, wait- Shellbecomes active
- runnable- target- Runnableto invoke
 
getInterval
public double getInterval()
- Description copied from interface: WaitExecSyncEventHandler
- Get scheduling interval in second
 
- 
- Specified by:
- getIntervalin 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:
- canRunin interface- WaitExecSyncEventHandler
 
- 
- Parameters:
- elapsed- elapsed time
- Returns:
- true if run method can be executed
 
run
public void run()
- 
- Specified by:
- runin interface- Runnable
 
-