com.swfm.mica.parts
Class MiConnectMenuCommands

java.lang.Object
  extended bycom.swfm.mica.commands.MiCommandHandler
      extended bycom.swfm.mica.parts.MiConnectMenuCommands
All Implemented Interfaces:
MiiActionHandler, MiiActionTypes, MiiCommandHandler, MiiCommandNames, MiiTargetableCommandHandler

public class MiConnectMenuCommands
extends MiCommandHandler
implements MiiActionHandler, MiiCommandNames, MiiActionTypes

This class can execute commands that a standard 'connect' menu might generate. The commands apply to the target MiEditor (see setTargetOfCommand()). The commands that are handled are:

    Mi_CONNECT_COMMAND_NAME
    Mi_DISCONNECT_COMMAND_NAME
    Mi_COLLAPSE_COMMAND_NAME
    Mi_EXPAND_COMMAND_NAME
 

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

Field Summary
     
Constructor Summary
MiConnectMenuCommands(MiiCommandManager manager)
          Constructs a new MiConnectMenuCommands.
 
Method Summary
 boolean processAction(MiiAction event)
          Processes the given action.
 void processCommand(java.lang.String cmd)
          Processes the given command.
 void setTargetOfCommand(java.lang.Object target)
          Sets the target of the commands processed by this MiiCommandHandler (i.e.
 
Methods inherited from class com.swfm.mica.commands.MiCommandHandler
getTargetOfCommand
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MiConnectMenuCommands

public MiConnectMenuCommands(MiiCommandManager manager)
Constructs a new MiConnectMenuCommands.

See Also:
MiConnectMenu
Method Detail

setTargetOfCommand

public void setTargetOfCommand(java.lang.Object target)
Sets the target of the commands processed by this MiiCommandHandler (i.e. what the commands are to act upon). The target must be an MiEditor.

Specified by:
setTargetOfCommand in interface MiiTargetableCommandHandler
Overrides:
setTargetOfCommand in class MiCommandHandler
Parameters:
target - the target MiEditor
See Also:
MiCommandHandler.getTargetOfCommand(), processCommand(java.lang.String)

processCommand

public void processCommand(java.lang.String cmd)
Processes the given command.

Specified by:
processCommand in interface MiiCommandHandler

processAction

public boolean processAction(MiiAction event)
Processes the given action.

Specified by:
processAction in interface MiiActionHandler
Parameters:
event - the action to process
Returns:
true if it is OK to send action to the next action handler false if it is NOT OK to send action to the next action handler