|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.princeton.toy.TStdinPane.Runner
protected class TStdinPane.Runner
The Runner of a TStdin blinks the inputField when the Virtual machine needs input. This class is completely thread-safe in that the user need not worry about the current status of the Runner when he calls start() or stop().
Constructor Summary | |
---|---|
protected |
TStdinPane.Runner()
Creates a new Runner. |
Method Summary | |
---|---|
void |
run()
Implement runnable to blink the inputField. |
protected void |
start()
Starts the blink thread if it hasn't started, or tells it to keep on going if it has. |
protected void |
stop()
Stops the blink thread at the next available opportunity, does nothing if the thread hasn't started. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
protected TStdinPane.Runner()
Method Detail |
---|
protected void start()
protected void stop()
public void run()
run
in interface Runnable
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |