Package nz.ac.waikato.cms.core
Class BrowserHelper
java.lang.Object
nz.ac.waikato.cms.core.BrowserHelper
A little helper class for browser related stuff.
The
The
openURL method was originally based on
Bare Bones Browser Launch,
which has been placed in the public domain.- Version:
- $Revision: 10824 $
- Author:
- fracpete (fracpete at waikato dot ac dot nz)
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
LINUX_BROWSERS
-
-
Constructor Details
-
BrowserHelper
public BrowserHelper()
-
-
Method Details
-
openURL
Opens the URL in the system's default browser.- Parameters:
url- the URL to open- Returns:
- null if executed OK, otherwise error message
-
openURL
Opens the URL in the system's default browser.- Parameters:
parent- the parent componenturl- the URL to open- Returns:
- null if executed OK, otherwise error message
-
openURL
Opens the URL in the system's default browser.- Parameters:
parent- the parent componenturl- the URL to openshowDialog- whether to display a dialog in case of an error or just print the error to the console- Returns:
- null if executed OK, otherwise error message
-
openURL
Opens the URL in a custom browser.- Parameters:
parent- the parent componentcmd- the browser command-lineurl- the URL to openshowDialog- whether to display a dialog in case of an error or just print the error to the console- Returns:
- null if executed OK, otherwise error message
-