| Modifier and Type | Class and Description |
|---|---|
| pack-priv class |
| Modifier and Type | Field and Description |
|---|---|
| public static final boolean | |
| private final Runnable | |
| private final Object | |
| private final String | |
| private SWTEDTUtil. | |
| private static long | |
| private int | |
| private final Display | |
| private final ThreadGroup |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public final Display | |
| public long | |
| public final boolean | invoke(final boolean wait, final Runnable task)
Implements com. |
| private final boolean | |
| public final boolean | invokeStop(final boolean wait, final Runnable task)
Implements com. |
| public boolean | isCurrentThreadEDT()
Implements com. |
| public final boolean | isCurrentThreadEDTorNEDT()
Implements com. true if either isCurrentThreadEDT() or isCurrentThreadNEDT() is true,
otherwise false.
|
| public final boolean | isCurrentThreadNEDT()
Implements com. |
| public boolean | |
| public void | setPollPeriod(final long
poll period in milliseconds ms)Implements com. |
| public final void | start()
Implements com. stopping.
|
| private final void | |
| public final boolean | waitUntilIdle()
Implements com. |
| public final boolean | waitUntilStopped()
Implements com. |
| DEBUG | back to summary |
|---|---|
| public static final boolean DEBUG | |
| dispatchMessages | back to summary |
|---|---|
| private final Runnable dispatchMessages | |
| edtLock | back to summary |
|---|---|
| private final Object edtLock | |
| name | back to summary |
|---|---|
| private final String name | |
| nedt | back to summary |
|---|---|
| private SWTEDTUtil. | |
| pollPeriod | back to summary |
|---|---|
| private static long pollPeriod | |
| start_iter | back to summary |
|---|---|
| private int start_iter | |
| swtDisplay | back to summary |
|---|---|
| private final Display swtDisplay | |
| threadGroup | back to summary |
|---|---|
| private final ThreadGroup threadGroup | |
| SWTEDTUtil | back to summary |
|---|---|
| public SWTEDTUtil(final Display newtDisplay, final Display swtDisplay) | |
| getDisplay | back to summary |
|---|---|
| public final Display getDisplay() | |
| getPollPeriod | back to summary |
|---|---|
| public long getPollPeriod() Implements com.
| |
| invoke | back to summary |
|---|---|
| public final boolean invoke(final boolean wait, final Runnable task) Implements com. Doc from com. Appends task to the EDT task queue if current thread is not EDT, otherwise execute task immediately.
Wait until execution is finished if
| |
| invokeImpl | back to summary |
|---|---|
| private final boolean invokeImpl(boolean wait, final Runnable task, boolean stop) | |
| invokeStop | back to summary |
|---|---|
| public final boolean invokeStop(final boolean wait, final Runnable task) Implements com. Doc from com. Append the final task to the EDT task queue, signals EDT to stop.
If
| |
| isCurrentThreadEDT | back to summary |
|---|---|
| public boolean isCurrentThreadEDT() Implements com. Doc from com. 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 final boolean isCurrentThreadEDTorNEDT() Implements com. Doc from com. Returns
| |
| isCurrentThreadNEDT | back to summary |
|---|---|
| public final boolean isCurrentThreadNEDT() Implements com. Doc from com. 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() Implements com.
| |
| setPollPeriod | back to summary |
|---|---|
| public void setPollPeriod(final long ms) Implements com.
| |
| start | back to summary |
|---|---|
| public final void start() throws IllegalStateException Implements com. Doc from com. Starts the EDT after it's creation or after
If the EDT is running, it must be
| |
| startImpl | back to summary |
|---|---|
| private final void startImpl() | |
| waitUntilIdle | back to summary |
|---|---|
| public final boolean waitUntilIdle() Implements com. Doc from com. Wait until the EDT task queue is empty.
| |
| waitUntilStopped | back to summary |
|---|---|
| public final boolean waitUntilStopped() Implements com. Doc from com. Wait until EDT task is stopped. If caller thread is EDT or NEDT, this call will not block.
| |
| Modifier and Type | Field and Description |
|---|---|
| pack-priv volatile boolean | |
| pack-priv volatile boolean | |
| pack-priv Object |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public final boolean | |
| public final void | run()
Overrides java. Implements java. |
| public final void |
| isRunning | back to summary |
|---|---|
| pack-priv volatile boolean isRunning | |
| shouldStop | back to summary |
|---|---|
| pack-priv volatile boolean shouldStop | |
| sync | back to summary |
|---|---|
| pack-priv Object sync | |
| NEDT | back to summary |
|---|---|
| public NEDT(final ThreadGroup tg, final String name) | |
| isRunning | back to summary |
|---|---|
| public final boolean isRunning() | |
| run | back to summary |
|---|---|
| public final void run() Overrides java. Implements java. Utilizing locking only on tasks and its execution, not for event dispatching.
| |
| start | back to summary |
|---|---|
| public final void start() throws IllegalThreadStateException Overrides java. Doc from java. Schedules this thread to begin execution. The thread will execute independently of the current thread. A thread can be started at most once. In particular, a thread can not be restarted after it has terminated.
| |