org.ocd.cmdmgr.jnlp
Class JNLPCmdAction

java.lang.Object
  |
  +--javax.swing.AbstractAction
        |
        +--org.ocd.cmdmgr.DefaultCmdAction
              |
              +--org.ocd.cmdmgr.jnlp.JNLPCmdAction
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 JNLPCmdAction
extends DefaultCmdAction
implements java.io.Serializable

Version:
 
Author:
drichan
See Also:
Serialized Form

Field Summary
protected  JNLPClassLoader classLoader
           
 
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
JNLPCmdAction()
          Create a JNLPCmdAction
JNLPCmdAction(java.lang.String pJNLPText)
          Create a JNLP Cmd Action Based on a JNLP XML as String
JNLPCmdAction(java.net.URL pUrl)
          Create a JNLP Task Based on a JNLP URL as String
 
Method Summary
 void destroy()
          Destroy the Cmd.
 ICmdFactory getFactory()
          Get the Factory that created this Command
 java.lang.String getURL()
          Get the URL for this Web Site
 void setURL(java.lang.String urlString)
          Set the URL for this Web Site
 void setUseSeparateVM(boolean sepVM)
          Use Seperate VM.
 ICmdAction start()
          Start the Task
 void stop()
          Stop the Cmd
 boolean useSeparateVM()
          Use Seperate VM if true then the Application will launch in a new VM Process
 
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
 

Field Detail

classLoader

protected transient JNLPClassLoader classLoader
Constructor Detail

JNLPCmdAction

public JNLPCmdAction()
Create a JNLPCmdAction

JNLPCmdAction

public JNLPCmdAction(java.lang.String pJNLPText)
Create a JNLP Cmd Action Based on a JNLP XML as String
Parameters:
pJNLPText -  

JNLPCmdAction

public JNLPCmdAction(java.net.URL pUrl)
Create a JNLP Task Based on a JNLP URL as String
Parameters:
pJNLPText -  
Method Detail

getFactory

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

setURL

public void setURL(java.lang.String urlString)
Set the URL for this Web Site
Parameters:
URLString -  

getURL

public java.lang.String getURL()
Get the URL for this Web Site
Returns:
URLString

useSeparateVM

public boolean useSeparateVM()
Use Seperate VM if true then the Application will launch in a new VM Process

setUseSeparateVM

public void setUseSeparateVM(boolean sepVM)
Use Seperate VM. Set to true if the application should be launched in a new VM Process
Parameters:
sepVM -  

start

public ICmdAction start()
                 throws ActionStartException
Start the Task

stop

public void stop()
          throws ActionStopException
Stop the Cmd

destroy

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