|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectjava.lang.Thread
TINIDrinkMachine.ButtonLoop
A class to independantly handle the callbacks for the buttons.
| Field Summary | |
private Vector |
dbls
|
| Fields inherited from class java.lang.Thread |
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY |
| Constructor Summary | |
TINIDrinkMachine.ButtonLoop(Vector _dbls)
Construct the class by saving the variables. |
|
| Method Summary | |
void |
run()
Set up the button states and loop forever polling the butttons |
private void |
sleep(int s)
Wrapper function to handle sleeping. |
| 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 |
private Vector dbls
| Constructor Detail |
public TINIDrinkMachine.ButtonLoop(Vector _dbls)
_dbls - A Vector of the DrinkButtonListeners| Method Detail |
private void sleep(int s)
s - The number of milliseconds to sleep for.public void run()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||