|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.gudy.azureus2.ui.console.commands.CommandCollection
public class CommandCollection
this class represents a collection of commands. it can be used by command objects to house their subcommands. when execute() method is called, the appropriate subcommand is looked up and executed
Constructor Summary | |
---|---|
CommandCollection()
|
Method Summary | |
---|---|
void |
add(IConsoleCommand command)
adds the specified console command as a subcommand to this object. |
void |
execute(String commandName,
ConsoleInput ci,
List args)
determines the appropriate subcommand to execute and then executes it, passing in the arguments that we received |
IConsoleCommand |
get(String commandName)
returns the sub command with the specified command name |
String |
getCommandDescriptions()
constructs a string with the descriptions of all of the subcommands, each separated by a newline |
Iterator |
iterator()
gets the set of IConsoleCommand objects that are all of the subcommands that this object owns |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public CommandCollection()
Method Detail |
---|
public void execute(String commandName, ConsoleInput ci, List args)
commandName
- ci
- args
- public String getCommandDescriptions()
public IConsoleCommand get(String commandName)
commandName
-
public void add(IConsoleCommand command)
command
- public Iterator iterator()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |