|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectceleboss.data.CommandEngine
Create a thread class to acts as a Runnable that executes commands in the backgound. It just takes the next elements off the Queue and invokes the refresh action.
| Constructor Summary | |
CommandEngine(java.lang.String name)
Creates an updater for the Refreshable entities. |
|
| Method Summary | |
void |
addItem(Command item,
java.lang.Object param,
int when)
Adds an items to the refresh queue. |
javax.swing.table.TableModel |
getQueueModel()
Get a table modle of the queued items |
void |
removeItem(Command command,
java.lang.Object param)
Remote a queued item. |
void |
run()
Execution of the thread. |
void |
shutdown()
Stop the update thread |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public CommandEngine(java.lang.String name)
name - Name of engine.| Method Detail |
public void addItem(Command item,
java.lang.Object param,
int when)
item - Item to refresh.param - Parameter to pass when the command is invoked.when - How many seconds befor ethis command shoudl be invoked.public javax.swing.table.TableModel getQueueModel()
public void removeItem(Command command,
java.lang.Object param)
command - Command to removeparam - Optional parameter of the item to removepublic void run()
run in interface java.lang.Runnablepublic void shutdown()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||