javax.swing.text
Class LayoutQueue

java.lang.Object
  extended by javax.swing.text.LayoutQueue

public class LayoutQueue
extends Object

This is a queue which holds Runnable objects. It is intended for deferring layout operations.


Constructor Summary
LayoutQueue()
          Create a new layout queue.
 
Method Summary
 void addTask(Runnable task)
          Add a layout task to the queue.
static LayoutQueue getDefaultQueue()
          Return the default layout queue.
static void setDefaultQueue(LayoutQueue q)
          Set the default layout queue.
protected  Runnable waitForWork()
          Called by a worker thread to retrieve the next layout task.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LayoutQueue

public LayoutQueue()
Create a new layout queue.

Method Detail

addTask

public void addTask(Runnable task)
Add a layout task to the queue.


waitForWork

protected Runnable waitForWork()
Called by a worker thread to retrieve the next layout task. This will block until a new task is available. This method will return null if the thread is interrupted while waiting.


getDefaultQueue

public static LayoutQueue getDefaultQueue()
Return the default layout queue.


setDefaultQueue

public static void setDefaultQueue(LayoutQueue q)
Set the default layout queue.