org.ocd.cmdmgr
Interface ICmdFactory

All Known Implementing Classes:
DefaultCmdFactory, AppletCmdFactory, JNLPCmdFactory, NativeAppCmdFactory, WebCmdFactory

public interface ICmdFactory

Since:
$Date: 2002/08/09 02:41:37 $
Version:
$Revision: 1.2 $
Author:
$Author: drichan $, ocd_dino - ocd_dino@users.sourceforge.net (initial author)

Method Summary
 ICmdAction getCmdAction(java.lang.Object pCmd)
          Get an Action from this Factory
 javax.swing.Icon getLargeIcon()
          Get the Large Icon for this Factory
 java.lang.String getName()
          Get the Name of this Factory
 javax.swing.Icon getSmallIcon()
          Get the Small Icon for this Factory
 boolean isSupported(java.lang.Object pCmd)
          Return true if this Factory can create an for the given Command
 

Method Detail

getName

public java.lang.String getName()
Get the Name of this Factory

getLargeIcon

public javax.swing.Icon getLargeIcon()
Get the Large Icon for this Factory

getSmallIcon

public javax.swing.Icon getSmallIcon()
Get the Small Icon for this Factory

getCmdAction

public ICmdAction getCmdAction(java.lang.Object pCmd)
                        throws InvalidCmdException,
                               ActionCreationException
Get an Action from this Factory
Parameters:
pCmd - to get Action for
Returns:
ICmdAction
Throws:
InvalidCmdException - if the pCmd Object is not supported
ActionCreationException - if there was an error creating the Action

isSupported

public boolean isSupported(java.lang.Object pCmd)
Return true if this Factory can create an for the given Command
Parameters:
pCmd - to check
Returns:
true if the pCmd is supported.