org.ocd.cmdmgr.jnlp
Class JNLPCmdFactory

java.lang.Object
  |
  +--org.ocd.cmdmgr.jnlp.JNLPCmdFactory
All Implemented Interfaces:
ICmdFactory

public class JNLPCmdFactory
extends java.lang.Object
implements ICmdFactory

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

Field Summary
static java.lang.String DEFAULT_LARGE_ICON
           
static java.lang.String DEFAULT_SMALL_ICON
           
static java.lang.String NAME
           
 
Constructor Summary
JNLPCmdFactory()
          Creates new BrowserTaskFactory
 
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
static JNLPCmdFactory getSingleton()
          Get the Singleton Instance
 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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

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
Constructor Detail

JNLPCmdFactory

public JNLPCmdFactory()
Creates new BrowserTaskFactory
Method Detail

getSingleton

public static JNLPCmdFactory getSingleton()
Get the Singleton Instance

getName

public java.lang.String getName()
Get the Name of this Factory
Specified by:
getName in interface ICmdFactory

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 pCmd)
                        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 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
Specified by:
isSupported in interface ICmdFactory
Parameters:
pCmd - to check
Returns:
true if the pCmd is supported.