Package eu.bandm.tools.graficUtils
Class BrowserControl
java.lang.Object
eu.bandm.tools.graficUtils.BrowserControl
Auxiliary class to open a particular URI in a window of the user's
standard browser.
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic boolean
Open an URI in system standard browser.static boolean
showURI
(String uriString, MessageReceiver<SimpleMessage<?>> msg) Open an URI in system standard browser.
-
Field Details
-
MK_uriSyntax
Error text for uri syntax error.- See Also:
-
MK_browserRemoteFail
Error text when browser remote control fails.- See Also:
-
MK_browserRemoteUnsupported
Error text when browser remote control is not supported.- See Also:
-
MK_browserManually
Hint to open the page manually.- See Also:
-
-
Constructor Details
-
BrowserControl
public BrowserControl()
-
-
Method Details
-
showURI
Open an URI in system standard browser.- Returns:
- whether the opening of the page happened without any exception.
- Throws:
Illegal
- Argument Exception when the URI has syntax error.
-
showURI
Open an URI in system standard browser. If a malfunction is detected, a warning or error message is sent to theMessageReceiver
.- Returns:
- true if no exception has been caught (probably successful remote control)
-