org.tigris.gef.base
Class CmdShowURL
java.lang.Object
javax.swing.AbstractAction
org.tigris.gef.base.Cmd
org.tigris.gef.base.CmdShowURL
- All Implemented Interfaces:
- javax.swing.Action, java.awt.event.ActionListener, java.lang.Cloneable, java.util.EventListener, java.io.Serializable
- public class CmdShowURL
- extends Cmd
Cmd to display the contents of the given URL in the browser.
Needs-More-Work: This Cmd can only be used from an applet.
- See Also:
- Serialized Form
Field Summary |
protected java.net.URL |
_url
|
Fields inherited from class javax.swing.AbstractAction |
changeSupport, enabled |
Fields inherited from interface javax.swing.Action |
ACCELERATOR_KEY, ACTION_COMMAND_KEY, DEFAULT, LONG_DESCRIPTION, MNEMONIC_KEY, NAME, SHORT_DESCRIPTION, SMALL_ICON |
Method Summary |
void |
doIt()
Translate all selected Fig's in the current editor. |
void |
undoIt()
Undo the Cmd using information stored during its
execution. |
java.net.URL |
url()
|
void |
url(java.lang.String u)
|
void |
url(java.net.URL u)
|
Methods inherited from class org.tigris.gef.base.Cmd |
about, actionPerformed, cmdAtIndex, containsArg, getArg, getArg, getName, getResource, register, registeredCmds, setArg, setName, setResource, shouldBeEnabled, updateEnabled |
Methods inherited from class javax.swing.AbstractAction |
addPropertyChangeListener, clone, firePropertyChange, getKeys, getPropertyChangeListeners, getValue, isEnabled, putValue, removePropertyChangeListener, setEnabled |
Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
_url
protected java.net.URL _url
CmdShowURL
public CmdShowURL(java.net.URL url)
CmdShowURL
public CmdShowURL(java.lang.String s)
throws java.net.MalformedURLException
CmdShowURL
public CmdShowURL()
url
public void url(java.net.URL u)
url
public void url(java.lang.String u)
throws java.net.MalformedURLException
- Throws:
java.net.MalformedURLException
url
public java.net.URL url()
doIt
public void doIt()
- Translate all selected Fig's in the current editor.
- Specified by:
doIt
in class Cmd
undoIt
public void undoIt()
- Description copied from class:
Cmd
- Undo the Cmd using information stored during its
execution.
TODO Abandon this. We need the memento pattern for undo
- Specified by:
undoIt
in class Cmd