org.ocd.cmdmgr.applet
Class AppletCmdAction

java.lang.Object
  |
  +--javax.swing.AbstractAction
        |
        +--org.ocd.cmdmgr.DefaultCmdAction
              |
              +--org.ocd.cmdmgr.applet.AppletCmdAction
All Implemented Interfaces:
javax.swing.Action, java.awt.event.ActionListener, java.lang.Cloneable, java.util.EventListener, ICmdAction, IXMLPersistable, java.beans.PropertyChangeListener, java.io.Serializable

public class AppletCmdAction
extends DefaultCmdAction
implements java.io.Serializable

Version:
 
Author:
drichan
See Also:
Serialized Form

Fields inherited from class org.ocd.cmdmgr.DefaultCmdAction
extensionHREF, extensionName, extensionVersion, isStarted_flag, xmlChanged_flag, xmlProps
 
Fields inherited from class javax.swing.AbstractAction
changeSupport, enabled
 
Fields inherited from interface org.ocd.cmdmgr.ICmdAction
LARGE_ICON
 
Fields inherited from interface javax.swing.Action
ACCELERATOR_KEY, ACTION_COMMAND_KEY, DEFAULT, LONG_DESCRIPTION, MNEMONIC_KEY, NAME, SHORT_DESCRIPTION, SMALL_ICON
 
Fields inherited from interface org.ocd.blx.IXMLPersistable
BLX_CLASS_NAME_ATTR, BLX_COMP_HEIGHT_ATTR, BLX_COMP_ID, BLX_COMP_NODE_NAME, BLX_COMP_WIDTH_ATTR, BLX_COMP_X_ATTR, BLX_COMP_Y_ATTR, BLX_DOCUMENT_NAME, BLX_EXT_HREF_ATTR, BLX_EXT_VERSION_ATTR, BLX_EXTENSION_ATTR, BLX_FACTORY_NODE_NAME, BLX_FACTORY_TYPE_ATTR, BLX_HREF_ATTR, BLX_NS, BLX_OBJ_NODE_NAME, COMP_TYPE, COMPONENT_FACTORY_TYPE, COMPONENT_FACTORY_TYPE_STR, FACTORY_TYPE, FILE_EXT, OBJECT_FACTORY_TYPE, OBJECT_FACTORY_TYPE_STR, OBJECT_TYPE
 
Constructor Summary
AppletCmdAction()
          Create the Action
 
Method Summary
 void destroy()
          Destroy the Cmd.
 java.lang.String getAddress()
          Get the URL of the Applet
 ICmdFactory getFactory()
          Get the Factory that created this Command
 void setAddress(java.lang.String urlString)
          Set the URL of this Applet
protected  void setAppletInfo(AppletInfo info)
          set the AppletInfo Object
protected  void setupJNLPFile()
          Setup the ClassPath for this Applet
 ICmdAction start()
          Start the Applet
 void stop()
          Stop This Task
 
Methods inherited from class org.ocd.cmdmgr.DefaultCmdAction
actionPerformed, getBLXElement, getDescription, getName, getXMLElement, isStarted, propertyChange, setBLXElement, setDescription, setName, setXMLHasChanged, xmlHasChanged
 
Methods inherited from class javax.swing.AbstractAction
addPropertyChangeListener, clone, firePropertyChange, getKeys, getValue, isEnabled, putValue, removePropertyChangeListener, setEnabled
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface javax.swing.Action
addPropertyChangeListener, getValue, isEnabled, putValue, removePropertyChangeListener, setEnabled
 

Constructor Detail

AppletCmdAction

public AppletCmdAction()
Create the Action
Method Detail

getFactory

public ICmdFactory getFactory()
Get the Factory that created this Command
Overrides:
getFactory in class DefaultCmdAction

setAppletInfo

protected void setAppletInfo(AppletInfo info)
set the AppletInfo Object

setAddress

public void setAddress(java.lang.String urlString)
Set the URL of this Applet
Parameters:
urlString - url of Applet

getAddress

public java.lang.String getAddress()
Get the URL of the Applet
Returns:
URL String

setupJNLPFile

protected void setupJNLPFile()
                      throws InvalidAppletException
Setup the ClassPath for this Applet

start

public ICmdAction start()
                 throws ActionStartException
Start the Applet
Returns:
Task Generated

stop

public void stop()
          throws ActionStopException
Stop This Task

destroy

public void destroy()
Destroy the Cmd. Clean up any resources