Class BrowserControl

java.lang.Object
eu.bandm.tools.graficUtils.BrowserControl

public class BrowserControl extends Object
Auxiliary class to open a particular URI in a window of the user's standard browser.
  • Field Details

    • MK_uriSyntax

      public static final String MK_uriSyntax
      Error text for uri syntax error.
      See Also:
    • MK_browserRemoteFail

      public static final String MK_browserRemoteFail
      Error text when browser remote control fails.
      See Also:
    • MK_browserRemoteUnsupported

      public static final String MK_browserRemoteUnsupported
      Error text when browser remote control is not supported.
      See Also:
    • MK_browserManually

      public static final String MK_browserManually
      Hint to open the page manually.
      See Also:
  • Constructor Details

    • BrowserControl

      public BrowserControl()
  • Method Details

    • showURI

      public static boolean showURI(String uriString)
      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

      public static boolean showURI(String uriString, MessageReceiver<SimpleMessage<?>> msg)
      Open an URI in system standard browser. If a malfunction is detected, a warning or error message is sent to the MessageReceiver.
      Returns:
      true if no exception has been caught (probably successful remote control)