public class OpenBrowserAction extends AbstractAction
URI in a browser. The URI may be null and if so this
action does nothing.changeSupport, enabledACCELERATOR_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, setEnabledpublic OpenBrowserAction()
public OpenBrowserAction(String uri)
uri - the URINullPointerException - if uri is nullIllegalArgumentException - 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 URI getURI()
public void setURI(URI uri)
uri - the new URIpublic void actionPerformed(ActionEvent e)
Copyright © 2017. All Rights Reserved.