org.ocd.cmdmgr.web
Class WebCmdAction

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

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
WebCmdAction()
          Create Web Browser Task
WebCmdAction(java.net.URL pURL)
          Create Web Browser Task
 
Method Summary
 void destroy()
          Closes the Web Browser that maintains the URL
 java.lang.String getAddress()
          Get the URL assocaited with this Task
 ICmdFactory getFactory()
          Get the Factory that created this Command
 void setAddress(java.lang.String urlString)
          Set the URL this task will point to
 ICmdAction start()
          Opens the WebSite in a Browser
 void stop()
          Stop has no effect for BrowserTask
 
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

WebCmdAction

public WebCmdAction()
Create Web Browser Task

WebCmdAction

public WebCmdAction(java.net.URL pURL)
Create Web Browser Task
Method Detail

setAddress

public void setAddress(java.lang.String urlString)
Set the URL this task will point to

getAddress

public java.lang.String getAddress()
Get the URL assocaited with this Task
Returns:
urlString

start

public ICmdAction start()
                 throws ActionStartException
Opens the WebSite in a Browser

stop

public void stop()
Stop has no effect for BrowserTask

destroy

public void destroy()
Closes the Web Browser that maintains the URL

getFactory

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