|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.xith3d.utility.cmdline.CommandDispatcher
public class CommandDispatcher
user to register a series of listeners for commands. Calls to processCommand will find the correct command and call its corresponding listener.
| Constructor Summary | |
|---|---|
CommandDispatcher()
|
|
| Method Summary | |
|---|---|
void |
addCommandListener(CommandPatternInterface pattern,
CommandListener listener)
adds a listener for a user command. |
boolean |
processCommand(java.lang.String line)
Called from the Xith Engine to process a command line entered by the user. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public CommandDispatcher()
| Method Detail |
|---|
public boolean processCommand(java.lang.String line)
line -
public void addCommandListener(CommandPatternInterface pattern,
CommandListener listener)
pattern - listener -
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||