public class GUIClientCommand extends Object implements Command, OSGiContext
Constructor and Description |
---|
GUIClientCommand(Main clientMain) |
Modifier and Type | Method and Description |
---|---|
void |
disable()
Called when the command is being removed from the system.
|
Collection<ArgumentSpec> |
getAcceptedArguments()
Returns a collection of arguments that the command is prepared to handle.
|
String |
getDescription()
A short description for the command indicating what it does.
|
String |
getName()
Returns a name for this command.
|
String |
getUsage()
How the user should invoke this command
|
boolean |
isStorageRequired() |
void |
run(CommandContext ctx)
Execute the command
|
void |
setBundleContext(org.osgi.framework.BundleContext context) |
public GUIClientCommand(Main clientMain)
public void setBundleContext(org.osgi.framework.BundleContext context)
setBundleContext
in interface OSGiContext
public void run(CommandContext ctx) throws CommandException
Command
run
in interface Command
CommandException
public void disable()
Command
public String getName()
Command
public String getDescription()
Command
getDescription
in interface Command
public String getUsage()
Command
public Collection<ArgumentSpec> getAcceptedArguments()
Command
getAcceptedArguments
in interface Command
public boolean isStorageRequired()
isStorageRequired
in interface Command
Copyright © 2012. All Rights Reserved.