nextapp.echoservlet
Class FCRenderThread

java.lang.Object
  extended by java.lang.Thread
      extended by nextapp.echoservlet.FCRenderThread
All Implemented Interfaces:
java.lang.Runnable

public class FCRenderThread
extends java.lang.Thread

Thread that is capable of rendering a fast component.


Nested Class Summary
 
Nested classes/interfaces inherited from class java.lang.Thread
java.lang.Thread.State, java.lang.Thread.UncaughtExceptionHandler
 
Field Summary
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
FCRenderThread()
           Creates a thread for rendering a specific fast component.
 
Method Summary
 FCDocument getDocument()
           Gets the html document this thread is rendering to.
 ComponentPeer getPeer()
           Gets the peer this thread is rendering.
 boolean isException()
           After the thread finishes, you can check wether the rendering of this fast component threw any exceptions
 boolean isThreadSensitive()
           After the thread finishes, you can check wether the rendeing of this fast component is thread sesitive.
 void reset()
           
 void run()
           
 void setDocument(FCDocument document)
           
 void setPeer(ComponentPeer peer)
           
 
Methods inherited from class java.lang.Thread
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, toString, yield
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

FCRenderThread

public FCRenderThread()

Creates a thread for rendering a specific fast component.

Method Detail

run

public void run()
Specified by:
run in interface java.lang.Runnable
Overrides:
run in class java.lang.Thread

isException

public boolean isException()

After the thread finishes, you can check wether the rendering of this fast component threw any exceptions


isThreadSensitive

public boolean isThreadSensitive()

After the thread finishes, you can check wether the rendeing of this fast component is thread sesitive. (You should retry on the main thread if this is so.)


getDocument

public FCDocument getDocument()

Gets the html document this thread is rendering to.


getPeer

public ComponentPeer getPeer()

Gets the peer this thread is rendering.


setDocument

public void setDocument(FCDocument document)

setPeer

public void setPeer(ComponentPeer peer)

reset

public void reset()