EventDispatchThread to dispatch events.
The API methods of the class are thread-safe.
| Modifier and Type | Field and Description |
|---|---|
| private AtomicBoolean | |
| private volatile Conditional | |
| private EventDispatchThread | |
| private volatile Conditional | |
| private EventFilter | |
| private long | |
| private AtomicBoolean | |
| private AtomicBoolean | |
| private static final PlatformLogger | |
| private static Timer | |
| private TimerTask | |
| private final Runnable |
| Access | Constructor and Description |
|---|---|
| public | WaitDispatchSupport(EventDispatchThread
An event dispatch thread that
should not stop dispatching events while waiting dispatchThread)Creates a |
| public | WaitDispatchSupport(EventDispatchThread
An event dispatch thread that
should not stop dispatching events while waiting dispatchThread, Conditional A conditional object used to determine
if the loop should be terminated extCond)Creates a |
| public | WaitDispatchSupport(EventDispatchThread
An event dispatch thread that
should not stop dispatching events while waiting dispatchThread, Conditional extCondition, EventFilter EventFilter to be setA time interval to wait for. Note that
when the waiting process takes place on EDT
there is no guarantee to stop it in the given time interval)Creates a |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | enter()
Implements java. Blocks the execution of the current thread and enters a new secondary event loop on the event dispatch thread. |
| public boolean | exit()
Implements java. Unblocks the execution of the thread blocked by the |
| private static final Object | |
| private static synchronized void | |
| private void |
| afterExit | back to summary |
|---|---|
| private AtomicBoolean afterExit | |
| condition | back to summary |
|---|---|
| private volatile Conditional condition | |
| dispatchThread | back to summary |
|---|---|
| private EventDispatchThread dispatchThread | |
| extCondition | back to summary |
|---|---|
| private volatile Conditional extCondition | |
| filter | back to summary |
|---|---|
| private EventFilter filter | |
| interval | back to summary |
|---|---|
| private long interval | |
| keepBlockingCT | back to summary |
|---|---|
| private AtomicBoolean keepBlockingCT | |
| keepBlockingEDT | back to summary |
|---|---|
| private AtomicBoolean keepBlockingEDT | |
| log | back to summary |
|---|---|
| private static final PlatformLogger log | |
| timer | back to summary |
|---|---|
| private static Timer timer | |
| timerTask | back to summary |
|---|---|
| private TimerTask timerTask | |
| wakingRunnable | back to summary |
|---|---|
| private final Runnable wakingRunnable | |
| WaitDispatchSupport | back to summary |
|---|---|
| public WaitDispatchSupport(EventDispatchThread dispatchThread) Creates a
| |
| WaitDispatchSupport | back to summary |
|---|---|
| public WaitDispatchSupport(EventDispatchThread dispatchThread, Conditional extCond) Creates a
| |
| WaitDispatchSupport | back to summary |
|---|---|
| public WaitDispatchSupport(EventDispatchThread dispatchThread, Conditional extCondition, EventFilter filter, long interval) Creates a
The
| |
| enter | back to summary |
|---|---|
| public boolean enter() Implements java. Doc from java. Blocks the execution of the current thread and enters a new secondary event loop on the event dispatch thread.
This method can be called by any thread including the event
dispatch thread. This thread will be blocked until the
This method can only start one new event loop at a time per
object. If a secondary event loop has already been started
by this object and is currently still running, this method
returns
| |
| exit | back to summary |
|---|---|
| public boolean exit() Implements java. Doc from java. Unblocks the execution of the thread blocked by the
This method resumes the thread that called the Note that if any other secondary loop is started while this loop is running, the blocked thread will not resume execution until the nested loop is terminated.
If this secondary loop has not been started with the | |
| getTreeLock | back to summary |
|---|---|
| private static final Object getTreeLock() | |
| initializeTimer | back to summary |
|---|---|
| private static synchronized void initializeTimer() | |
| wakeupEDT | back to summary |
|---|---|
| private void wakeupEDT() | |