org.ocd.cmdmgr.applet
Class AppletCmdFactory
java.lang.Object
|
+--org.ocd.cmdmgr.applet.AppletCmdFactory
- All Implemented Interfaces:
- ICmdFactory
- public class AppletCmdFactory
- extends java.lang.Object
- implements ICmdFactory
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
NAME
public static final java.lang.String NAME
DEFAULT_LARGE_ICON
public static final java.lang.String DEFAULT_LARGE_ICON
DEFAULT_SMALL_ICON
public static final java.lang.String DEFAULT_SMALL_ICON
AppletCmdFactory
public AppletCmdFactory()
- Create Applet Cmd Factory
getSingleton
public static AppletCmdFactory getSingleton()
- Get the Singleton Instance
getParser
public AppletParser getParser()
- Get the AppletParser
isSupported
public boolean isSupported(java.lang.Object pURL)
- Return true if this Factory can create an for the given Command
- Specified by:
isSupported
in interface ICmdFactory
- Parameters:
pCmd
- to check- Returns:
- true if the pCmd is supported.
getName
public java.lang.String getName()
- Get the Name of the Factory
- Specified by:
getName
in interface ICmdFactory
- Returns:
- name
getLargeIcon
public javax.swing.Icon getLargeIcon()
- Get the Large Icon for this Factory
- Specified by:
getLargeIcon
in interface ICmdFactory
getSmallIcon
public javax.swing.Icon getSmallIcon()
- Get the Small Icon for this Factory
- Specified by:
getSmallIcon
in interface ICmdFactory
getCmdAction
public ICmdAction getCmdAction(java.lang.Object pURL)
throws InvalidCmdException,
ActionCreationException
- Get an Action from this Factory
- Specified by:
getCmdAction
in interface ICmdFactory
- Parameters:
pCmd
- to get Action for- Returns:
- ICmdAction
- Throws:
InvalidCmdException
- if the pCmd Object is not supportedActionCreationException
- if there was an error creating the Action