|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.swing.AbstractAction
org.jdesktop.swingx.action.OpenBrowserAction
public class OpenBrowserAction
An action for opening a URI
in a browser. The URI may be null
and if so this
action does nothing.
Field Summary |
---|
Fields inherited from class javax.swing.AbstractAction |
---|
changeSupport, enabled |
Fields inherited from interface javax.swing.Action |
---|
ACCELERATOR_KEY, ACTION_COMMAND_KEY, DEFAULT, DISPLAYED_MNEMONIC_INDEX_KEY, LARGE_ICON_KEY, LONG_DESCRIPTION, MNEMONIC_KEY, NAME, SELECTED_KEY, SHORT_DESCRIPTION, SMALL_ICON |
Constructor Summary | |
---|---|
OpenBrowserAction()
Creates a new instance of OpenBrowserAction |
|
OpenBrowserAction(String uri)
Creates a new action for the specified URI. |
|
OpenBrowserAction(URI uri)
Creates a new action for the specified URI. |
|
OpenBrowserAction(URL url)
Creates a new action for the specified URL. |
Method Summary | |
---|---|
void |
actionPerformed(ActionEvent e)
|
URI |
getURI()
Gets the current URI. |
void |
setURI(URI uri)
Sets the current URI. |
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 |
Constructor Detail |
---|
public OpenBrowserAction()
public OpenBrowserAction(String uri)
uri
- the URI
NullPointerException
- if uri
is null
IllegalArgumentException
- if the given string violates RFC 2396public OpenBrowserAction(URL url) throws URISyntaxException
url
- the URL
URISyntaxException
- if the URL cannot be converted to a valid URIpublic OpenBrowserAction(URI uri)
uri
- the URIMethod Detail |
---|
public URI getURI()
public void setURI(URI uri)
uri
- the new URIpublic void actionPerformed(ActionEvent e)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |