|
|||||||||
| 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 |
defaultEDTPollPeriod
|
| Method Summary | |
|---|---|
long |
getPollPeriod()
|
void |
invoke(boolean wait,
Runnable task)
Append task to the EDT task queue. |
void |
invokeStop(Runnable finalTask)
Append the final task to the EDT task queue, signals EDT to stop and wait until stopped. |
boolean |
isCurrentThreadEDT()
|
boolean |
isRunning()
|
void |
reset()
Create a new EDT. |
void |
setPollPeriod(long ms)
|
void |
start()
Start the EDT |
void |
waitUntilIdle()
Wait until the EDT task queue is empty. |
void |
waitUntilStopped()
Wait until EDT task is stopped. |
| Field Detail |
|---|
static final long defaultEDTPollPeriod
| Method Detail |
|---|
long getPollPeriod()
void setPollPeriod(long ms)
ms - poll period in millisecondsvoid 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 | ||||||||