|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectgistoolkit.server.mapclient.command.BasicCommand
A basic command to be sub classed for specific commands.
Constructor Summary | |
BasicCommand(java.lang.String inName)
Creates new BasicCommand |
|
BasicCommand(java.lang.String inName,
Client inClient)
Creates new BasicCommand |
Method Summary | |
void |
doDrawExecute(Drawer InDrawer)
execute the drawe command. |
void |
drawexecute(Drawer inDrawer)
Called when the drawer completes |
abstract void |
execute()
Called when the command is executed. |
Client |
getClient()
Retrieve a reference to the client so it can be manipulated |
java.lang.String |
getCommandName()
Used to retrieve the name of this command. |
void |
run()
Run the draw execute command |
void |
setClient(Client inClient)
Called before the execute command. |
void |
setCommandName(java.lang.String inCommandName)
Used to set the name of the command. |
void |
showError(java.lang.String inString)
Show the error to the user. |
void |
showException(java.lang.Exception inException)
Show the exception to the user. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public BasicCommand(java.lang.String inName)
public BasicCommand(java.lang.String inName, Client inClient)
Method Detail |
public java.lang.String getCommandName()
getCommandName
in interface Command
public void setCommandName(java.lang.String inCommandName)
public void setClient(Client inClient)
setClient
in interface Command
public Client getClient()
public void showException(java.lang.Exception inException)
public void showError(java.lang.String inString)
public abstract void execute()
execute
in interface Command
public void drawexecute(Drawer inDrawer)
drawexecute
in interface Command
public void run()
run
in interface java.lang.Runnable
public void doDrawExecute(Drawer InDrawer)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |