org.vizzini.ui
Class RealizedThread

java.lang.Object
  extended by java.lang.Thread
      extended by org.vizzini.ui.RealizedThread
All Implemented Interfaces:
Runnable

public abstract class RealizedThread
extends Thread

Provides a thread that waits until a component is realized, then performs a specified action. The action is specified by a subclass overriding the method realized().

Since:
v0.1
Version:
v0.1
Author:
Jeffrey M. Thompson

Nested Class Summary
 
Nested classes/interfaces inherited from class java.lang.Thread
Thread.State, Thread.UncaughtExceptionHandler
 
Field Summary
protected  Component _component
          The component we're waiting on.
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
RealizedThread(Component component)
          This method gets called when the component is realized.
RealizedThread(Component component, int sleepTimeMillis)
          This method gets called when the component is realized.
 
Method Summary
abstract  void realized()
          Action to perform when the component is realized.
 void run()
          Wait for the component to be realized, the call realized().
 
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
 

Field Detail

_component

protected Component _component
The component we're waiting on.

Constructor Detail

RealizedThread

public RealizedThread(Component component)
This method gets called when the component is realized.

Since:
v0.1

RealizedThread

public RealizedThread(Component component,
                      int sleepTimeMillis)
This method gets called when the component is realized.

Since:
v0.1
Method Detail

realized

public abstract void realized()
Action to perform when the component is realized. Subclasses need to override this method.

Since:
v0.1

run

public void run()
Wait for the component to be realized, the call realized().

Specified by:
run in interface Runnable
Overrides:
run in class Thread
Since:
v0.1


Copyright © 2007 Vizzini.org. All Rights Reserved. 2007.12.25.03.00.02