org.ocd.cmdmgr
Interface ICmdManager

All Known Implementing Classes:
CmdManager

public interface ICmdManager

_taskMgr

Since:
$Date: 2002/06/12 03:58:03 $
Version:
$Revision: 1.2 $
Author:
$Author: drichan $, ocd_dino - ocd_dino@users.sourceforge.net (initial author)

Method Summary
 void addCmdFactory(ICmdFactory pFactory)
          Add a Cmd Factory
 ICmdAction getCmdAction(java.lang.Object pCmd)
          Get an Action for the Command.
 ICmdAction[] getCmdActions(java.lang.Object pCmd)
          Get an array of Actions for the Command.
 ICmdFactory getCmdFactory(java.lang.String pName)
          Get the Cmd Factory of the specified name
 java.util.List getFactories()
          Get a List of all Cmd Factories
 void removeCmdFactory(ICmdFactory pFactory)
          Remove a Cmd Factory
 

Method Detail

getCmdAction

public ICmdAction getCmdAction(java.lang.Object pCmd)
Get an Action for the Command. The first CmdFactory that supports this Cmd Objectwill ask each CmdFactory to will create an Action for the Command Object
Parameters:
pCmd - Object the Action should be based on
Returns:
ICmdAction from the First Factory that supports the specified cmd

getCmdActions

public ICmdAction[] getCmdActions(java.lang.Object pCmd)
Get an array of Actions for the Command. This will ask each CmdFactory to create an Action for the Command Object
Parameters:
pCmd - Object the Action should be based on
Returns:
array of ICmdAction from each factory that supports the command

getCmdFactory

public ICmdFactory getCmdFactory(java.lang.String pName)
Get the Cmd Factory of the specified name
Parameters:
pName - of the Cmd Factory
Returns:
ICmdFactory with the specified name

addCmdFactory

public void addCmdFactory(ICmdFactory pFactory)
Add a Cmd Factory
Parameters:
pFactory - to Add

removeCmdFactory

public void removeCmdFactory(ICmdFactory pFactory)
Remove a Cmd Factory
Parameters:
pFactory - to Remove

getFactories

public java.util.List getFactories()
Get a List of all Cmd Factories
Returns:
List