|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectcom.sdm.quasar.client.swing.common.event.SwingEventDispatchThreadService
An implementation of EventDispatchThreadService for Swing.
| Constructor Summary | |
SwingEventDispatchThreadService()
Creates a new SwingEventDispatchThreadService. |
|
| Method Summary | |
boolean |
isEventDispatchThread()
Returns true if the current thread is an AWT event
dispatching thread. |
java.lang.Object |
runInEventDispatchThread(ExceptionRunnable runnable)
Runs the given ExceptionRunnable in the event dispatch
thread. |
void |
runInEventDispatchThread(java.lang.Runnable runnable)
Runs the given Runnable in the event dispatch thread. |
void |
runLaterInEventDispatchThread(java.lang.Runnable runnable)
Causes runnable to have its run() method called in the event dispatch thread. |
void |
runLaterNotInEventDispatchThread(java.lang.Runnable runnable)
Causes runnable to have its run() method called outside the event dispatch thread. |
java.lang.Object |
runNotInEventDispatchThread(ExceptionRunnable runnable)
Runs the given ExceptionRunnable not in the event dispatch
thread. |
void |
runNotInEventDispatchThread(java.lang.Runnable runnable)
Runs the given Runnable not in the event dispatch thread. |
void |
runOrRunLaterInEventDispatchThread(java.lang.Runnable runnable)
Causes runnable to have its run() method called in the dispatch thread of the EventQueue. |
void |
waitForCondition(Condition condition)
Waits for the condition given without blocking event processing. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public SwingEventDispatchThreadService()
SwingEventDispatchThreadService.
| Method Detail |
public boolean isEventDispatchThread()
EventDispatchThreadServicetrue if the current thread is an AWT event
dispatching thread.
isEventDispatchThread in interface EventDispatchThreadServiceEventDispatchThreadService.isEventDispatchThread()
public java.lang.Object runInEventDispatchThread(ExceptionRunnable runnable)
throws java.lang.Exception
EventDispatchThreadServiceExceptionRunnable in the event dispatch
thread.
runInEventDispatchThread in interface EventDispatchThreadServicerunnable - the ExceptionRunnable to run
ExceptionRunnable.run()
java.lang.Exception - any exception thrown by the ExceptionRunnableEventDispatchThreadService.runInEventDispatchThread(com.sdm.quasar.client.core.common.event.ExceptionRunnable)public void runInEventDispatchThread(java.lang.Runnable runnable)
EventDispatchThreadServiceRunnable in the event dispatch thread.
runInEventDispatchThread in interface EventDispatchThreadServicerunnable - the Runnable to runEventDispatchThreadService.runInEventDispatchThread(java.lang.Runnable)public void runLaterInEventDispatchThread(java.lang.Runnable runnable)
EventDispatchThreadService
runLaterInEventDispatchThread in interface EventDispatchThreadServicerunnable - the Runnable whose run() method should be executedEventDispatchThreadService.runLaterInEventDispatchThread(java.lang.Runnable)public void runLaterNotInEventDispatchThread(java.lang.Runnable runnable)
EventDispatchThreadService
runLaterNotInEventDispatchThread in interface EventDispatchThreadServicerunnable - the Runnable whose run() method should be executedEventDispatchThreadService.runLaterNotInEventDispatchThread(java.lang.Runnable)
public java.lang.Object runNotInEventDispatchThread(ExceptionRunnable runnable)
throws java.lang.Exception
EventDispatchThreadServiceExceptionRunnable not in the event dispatch
thread.
runNotInEventDispatchThread in interface EventDispatchThreadServicerunnable - the ExceptionRunnable to run
ExceptionRunnable.run()
java.lang.Exception - any exception thrown by the ExceptionRunnableEventDispatchThreadService.runNotInEventDispatchThread(com.sdm.quasar.client.core.common.event.ExceptionRunnable)public void runNotInEventDispatchThread(java.lang.Runnable runnable)
EventDispatchThreadServiceRunnable not in the event dispatch thread.
runNotInEventDispatchThread in interface EventDispatchThreadServicerunnable - the Runnable to runEventDispatchThreadService.runNotInEventDispatchThread(java.lang.Runnable)public void runOrRunLaterInEventDispatchThread(java.lang.Runnable runnable)
EventDispatchThreadServiceNote: This method may or may not return before the runnable gets
executed within the EDT. In opposite to EventDispatchThreadService.runLaterInEventDispatchThread(Runnable) it
calls the runnable faster (immediately), if called within the EDT.
runOrRunLaterInEventDispatchThread in interface EventDispatchThreadServicerunnable - the Runnable whose run() method should be executed
synchronously on the EventQueueEventDispatchThreadService.runOrRunLaterInEventDispatchThread(java.lang.Runnable)
public void waitForCondition(Condition condition)
throws java.lang.InterruptedException
EventDispatchThreadServiceNote: Implementation might wait on the object given.
waitForCondition in interface EventDispatchThreadServicecondition - the Condition to wait for (until Condition.isFulfilled()
returns true)
java.lang.InterruptedException - if waiting was interruptedEventDispatchThreadService.waitForCondition(com.sdm.quasar.client.core.common.event.Condition)
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||