|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--java.lang.Thread | +--org.moyoman.client.reference.util.RealizedThread
Provides a thread that waits until a component is realized, then performs a
specified action. In this case, realized means when the component has
non-zero dimensions. The action is specified by a subclass overriding the
method realized()
.
Field Summary | |
protected Component |
_component
The component on which we're waiting. |
private int |
_sleepTimeMillis
The sleep time between checks in milliseconds. |
Fields inherited from class java.lang.Thread |
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY |
Constructor Summary | |
RealizedThread(Component component)
Construct this object with the given parameter. |
|
RealizedThread(Component component,
int sleepTimeMillis)
Construct this object with the given parameter. |
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, getContextClassLoader, getName, getPriority, getThreadGroup, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setName, setPriority, 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 |
protected Component _component
private int _sleepTimeMillis
Constructor Detail |
public RealizedThread(Component component)
component
- The component on which we're waiting.public RealizedThread(Component component, int sleepTimeMillis)
component
- The component on which we're waiting.sleepTimeMillis
- The sleep time between checks in milliseconds.Method Detail |
public abstract void realized()
public void run()
realized()
.
run
in interface Runnable
run
in class Thread
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |