Home » openjdk-7 » java » awt » [javadoc | source]
java.awt
class: WaitDispatchSupport [javadoc | source]
java.lang.Object
   java.awt.WaitDispatchSupport

All Implemented Interfaces:
    SecondaryLoop

This utility class is used to suspend execution on a thread while still allowing {@code EventDispatchThread} to dispatch events. The API methods of the class are thread-safe.
Constructor:
 public WaitDispatchSupport(EventDispatchThread dispatchThread) 
    Creates a {@code WaitDispatchSupport} instance to serve the given event dispatch thread.
    Parameters:
    dispatchThread - An event dispatch thread that should not stop dispatching events while waiting
    since: 1.7 -
 public WaitDispatchSupport(EventDispatchThread dispatchThread,
    Conditional extCond) 
    Creates a {@code WaitDispatchSupport} instance to serve the given event dispatch thread.
    Parameters:
    dispatchThread - An event dispatch thread that should not stop dispatching events while waiting
    extCondition - A conditional object used to determine if the loop should be terminated
    since: 1.7 -
 public WaitDispatchSupport(EventDispatchThread dispatchThread,
    Conditional extCondition,
    EventFilter filter,
    long interval) 
    Creates a {@code WaitDispatchSupport} instance to serve the given event dispatch thread.

    The EventFilter is set on the {@code dispatchThread} while waiting. The filter is removed on completion of the waiting process.

    Parameters:
    dispatchThread - An event dispatch thread that should not stop dispatching events while waiting
    filter - {@code EventFilter} to be set
    interval - A 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
    since: 1.7 -
Method from java.awt.WaitDispatchSupport Summary:
enter,   exit
Methods from java.lang.Object:
clone,   equals,   finalize,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from java.awt.WaitDispatchSupport Detail:
 public boolean enter() 
 public boolean exit()