com.swfm.mica.events
Class MiIExecuteCommand

java.lang.Object
  extended bycom.swfm.mica.events.MiEventHandler
      extended bycom.swfm.mica.events.MiIExecuteCommand
All Implemented Interfaces:
MiiCommandNames, MiiEventHandler, MiiEventTypes

public class MiIExecuteCommand
extends MiEventHandler

Version:
%I% %G%
Author:
Michael L. Davis

Field Summary
     
Constructor Summary
MiIExecuteCommand(MiEvent trigger, MiiCommandHandler handler)
           
MiIExecuteCommand(MiEvent trigger, MiiCommandHandler handler, java.lang.String arg)
           
MiIExecuteCommand(MiEvent trigger, MiiCommandHandler handler, java.lang.String arg, int returnCode)
           
 
Method Summary
 MiiEventHandler copy()
          Returns a copy of this MiEventHandler.
 java.lang.String getCommand()
          Gets the command to use.
 MiiCommandHandler getCommandHandler()
           
 void setCommand(java.lang.String arg)
          Sets the command to use.
 void setCommandHandler(MiiCommandHandler m)
           
 java.lang.String toString()
          Returns information about this MiEventHandler.
 
Methods inherited from class com.swfm.mica.events.MiEventHandler
addEventToCommandTranslation, addEventToCommandTranslation, addEventToCommandTranslation, getAlwaysConsumeTriggerEvents, getEvent, getEventToCommandTranslation, getName, getNameForType, getObject, getRequestedCommands, getRequestedEvents, getTarget, getType, isCommand, isEnabled, isPositionDependent, isSingleton, isType, processCommand, processCommand, processEvent, removeAllEventToCommandTranslations, removeEventToCommandTranslation, removeEventToCommandTranslation, removeEventToCommandTranslation, removeEventToCommandTranslation, setAlwaysConsumeTriggerEvents, setEnabled, setEventToCommandTranslation, setEventToCommandTranslation, setEventToCommandTranslation, setIsSingleton, setName, setObject, setPositionDependent, setPropertyValue, setTarget
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

MiIExecuteCommand

public MiIExecuteCommand(MiEvent trigger,
                         MiiCommandHandler handler)

MiIExecuteCommand

public MiIExecuteCommand(MiEvent trigger,
                         MiiCommandHandler handler,
                         java.lang.String arg)

MiIExecuteCommand

public MiIExecuteCommand(MiEvent trigger,
                         MiiCommandHandler handler,
                         java.lang.String arg,
                         int returnCode)
Method Detail

getCommandHandler

public MiiCommandHandler getCommandHandler()

setCommandHandler

public void setCommandHandler(MiiCommandHandler m)

getCommand

public java.lang.String getCommand()
Description copied from class: MiEventHandler
Gets the command to use.

Overrides:
getCommand in class MiEventHandler
Returns:
The command use

setCommand

public void setCommand(java.lang.String arg)
Description copied from class: MiEventHandler
Sets the command to use.

Overrides:
setCommand in class MiEventHandler
Parameters:
arg - The command use

copy

public MiiEventHandler copy()
Returns a copy of this MiEventHandler.

Specified by:
copy in interface MiiEventHandler
Overrides:
copy in class MiEventHandler
Returns:
the copy

toString

public java.lang.String toString()
Returns information about this MiEventHandler.

Overrides:
toString in class MiEventHandler
Returns:
textual information (class name + unique numerical id + [disabled])