public class OpenBrowserAction extends AbstractAction
URI
in a browser. The URI may be null
and if so this
action does nothing.Modifier and Type | Field and Description |
---|---|
private static Logger |
log |
private URI |
uri |
changeSupport, enabled
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 and Description |
---|
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.
|
Modifier and Type | Method and Description |
---|---|
void |
actionPerformed(ActionEvent e) |
URI |
getURI()
Gets the current URI.
|
void |
setURI(URI uri)
Sets the current URI.
|
addPropertyChangeListener, clone, firePropertyChange, getKeys, getPropertyChangeListeners, getValue, isEnabled, putValue, removePropertyChangeListener, setEnabled
public OpenBrowserAction()
public OpenBrowserAction(String uri)
uri
- the URINullPointerException
- if uri
is null
IllegalArgumentException
- if the given string violates RFC 2396public OpenBrowserAction(URL url) throws URISyntaxException
url
- the URLURISyntaxException
- if the URL cannot be converted to a valid URIpublic OpenBrowserAction(URI uri)
uri
- the URIpublic void actionPerformed(ActionEvent e)
WebARTS Library Licensed Under the GNU - General Public License. Other Libraries licensed under their respective Open Source Licenses