|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface EDTUtil
EDT stands for Event Dispatch Thread.
EDTUtil comprises the functionality of:
Field Summary | |
---|---|
static long |
defaultEDTPollGranularity
|
Method Summary | |
---|---|
void |
invoke(boolean wait,
Runnable task)
Append task to the EDT task queue. Wait until execution is finished if wait == true .Shall start the thread if not running. Can be issued from within EDT, ie from within an enqueued task. |
void |
invokeStop(Runnable finalTask)
Append the final task to the EDT task queue, signals EDT to stop and wait until stopped. Due to the nature of this method: All previous queued tasks will be finished. No new tasks are allowed, an Exception is thrown. Can be issued from within EDT, ie from within an enqueued task. reset() may follow immediately, ie creating a new EDT
|
boolean |
isCurrentThreadEDT()
|
boolean |
isRunning()
|
void |
reset()
Create a new EDT. |
void |
start()
Start the EDT |
void |
waitUntilIdle()
Wait until the EDT task queue is empty. The last task may still be in execution when this method returns. |
void |
waitUntilStopped()
Wait until EDT task is stopped. No stop action is performed, invokeStop(java.lang.Runnable) should be used before. |
Field Detail |
---|
static final long defaultEDTPollGranularity
Method Detail |
---|
void reset()
reset()
invokeStop(..)
in case another start()
or invoke(..)
is expected.
start()
,
invoke(boolean, java.lang.Runnable)
,
invokeStop(java.lang.Runnable)
void start()
boolean isCurrentThreadEDT()
boolean isRunning()
void invokeStop(Runnable finalTask)
reset()
may follow immediately, ie creating a new EDT
void invoke(boolean wait, Runnable task)
wait == true
.
RuntimeException
- in case EDT is stopped and not reset()
void waitUntilIdle()
void waitUntilStopped()
stop
action is performed, invokeStop(java.lang.Runnable)
should be used before.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |