Method Summary |
|
public static boolean | checkEmpty() Checks if system event queue is empty. |
public TestOut | getOutput() Returns print output streams or writers. |
public static EventQueue | getQueue() Returns system EventQueue. |
public Timeouts | getTimeouts() Return current timeouts. |
public static void | installQueue() Installs own Jemmy EventQueue implementation. |
public void | invoke(QueueAction action) Invokes action through EventQueue. |
public QueueAction | invoke(Runnable runnable) Invokes runnable through EventQueue. |
public QueueAction | invoke(Action action, Object param) Invokes action through EventQueue.
Does not wait for it execution.
Parameters: action - an action to be invoked. Parameters: param - action.launch(Object) method parameter. |
public Object | invokeAndWait(QueueAction action) Invokes action through EventQueue.
Waits for it execution.
Parameters: action - an action to be invoked. |
public void | invokeAndWait(Runnable runnable) Invokes runnable through EventQueue. |
public Object | invokeAndWait(Action action, Object param) Invokes action through EventQueue.
Waits for it execution.
May throw TimeoutExpiredException if action
was not executed in "QueueTool.InvocationTimeout" milliseconds.
Parameters: action - an action to be invoked. Parameters: param - action.launch(Object method parameter. |
public Object | invokeSmoothly(QueueAction action) Being executed outside of AWT dispatching thread,
invokes an action through the event queue.
Otherwise executes action.launch() method
directly.
Parameters: action - anaction to be executed. |
public void | invokeSmoothly(Runnable runnable) Being executed outside of AWT dispatching thread,
invokes a runnable through the event queue. |
public Object | invokeSmoothly(Action action, Object param) Being executed outside of AWT dispatching thread,
invokes an action through the event queue. |
public static boolean | isDispatchThread() Map to EventQueue.isDispatchThread() . |
public void | lock() Locks EventQueue. |
public void | lock(long time) Locks event queue for "time" milliseconds. |
public static void | postEvent(AWTEvent event) Simply posts events into the system event queue. |
public static void | processEvent(AWTEvent event) Shortcuts event if
((JemmyProperties.getCurrentDispatchingModel() & JemmyProperties.SHORTCUT_MODEL_MASK) != 0)
and if executed in the dispatch thread. |
public void | setOutput(TestOut out) Defines print output streams or writers. |
public void | setTimeouts(Timeouts ts) Defines current timeouts. |
public static void | shortcutEvent(AWTEvent event) Dispatches event ahead of all events staying in the event queue. |
public static void | uninstallQueue() Uninstalls own Jemmy EventQueue implementation. |
public void | unlock() Unlocks EventQueue. |
public void | waitEmpty() Waits for system event queue empty. |
public void | waitEmpty(long emptyTime) Waits for system event queue be empty for emptyTime milliseconds. |
public boolean | wasLockingExpired() Sais if last locking was expired. |