EDTUtil comprises the functionality of:
| Modifier and Type | Field and Description |
|---|---|
| public static final long |
| Modifier and Type | Method and Description |
|---|---|
| public long | |
| public boolean | |
| public boolean | Returns: true iftask has been executed or queued for later execution, otherwise falseAppend the final task to the EDT task queue, signals EDT to stop. |
| public boolean | |
| public boolean | isCurrentThreadEDTorNEDT()
Returns |
| public boolean | isCurrentThreadNEDT()
Returns true if the current thread is the internal NEWT event dequeue thread (NEDT). |
| public boolean | |
| public void | |
| public void | |
| public boolean | Returns: true if waited for idle, otherwise false, i.e. in case of current thread is EDT or NEDTWait until the EDT task queue is empty. |
| public boolean | Returns: true if stopped, otherwise false, i.e. in case of current thread is EDT or NEDTWait until EDT task is stopped. |
| defaultEDTPollPeriod | back to summary |
|---|---|
| public static final long defaultEDTPollPeriod | |
| getPollPeriod | back to summary |
|---|---|
public long getPollPeriod()
| |
| invoke | back to summary |
|---|---|
| public boolean invoke(boolean wait, Runnable task) Appends task to the EDT task queue if current thread is not EDT, otherwise execute task immediately.
Wait until execution is finished if
| |
| invokeStop | back to summary |
|---|---|
| public boolean invokeStop(boolean wait, Runnable finalTask) Append the final task to the EDT task queue, signals EDT to stop.
If
| |
| isCurrentThreadEDT | back to summary |
|---|---|
| public boolean isCurrentThreadEDT() Returns true if the current thread is the event dispatch thread (EDT).
The EDT is the platform specific thread dispatching toolkit-events
and executing toolkit-tasks enqueued via
Usually it is the same thread as used to dequeue informal | |
| isCurrentThreadEDTorNEDT | back to summary |
|---|---|
| public boolean isCurrentThreadEDTorNEDT() Returns | |
| isCurrentThreadNEDT | back to summary |
|---|---|
| public boolean isCurrentThreadNEDT() Returns true if the current thread is the internal NEWT event dequeue thread (NEDT).
The NEDT is the NEWT thread used to dequeue informal
Usually it is the same thread as the EDT, see | |
| isRunning | back to summary |
|---|---|
public boolean isRunning()
| |
| setPollPeriod | back to summary |
|---|---|
public void setPollPeriod(long ms)
| |
| start | back to summary |
|---|---|
| public void start() throws IllegalStateException Starts the EDT after it's creation or after
If the EDT is running, it must be
| |
| waitUntilIdle | back to summary |
|---|---|
| public boolean waitUntilIdle() Wait until the EDT task queue is empty.
| |
| waitUntilStopped | back to summary |
|---|---|
| public boolean waitUntilStopped() Wait until EDT task is stopped. If caller thread is EDT or NEDT, this call will not block.
| |