- All Known Implementing Classes:
FxBrowserService
public interface BrowserService
Interface that abstracts JavaFX HostServices.showDocument()}
Use this interface to controllers/services that wish to tell a browser
to open a window. The interface allows you to not reference JavaFX
in your controller and to use mocks/stubs for unit test, etc.
-
Method Summary
Modifier and TypeMethodDescriptionvoid
showDocument
(String uri) Opens the specified URI in a new browser window or tab.default void
showDocument
(URI uri) Convenience method that takes URI
-
Method Details
-
showDocument
Opens the specified URI in a new browser window or tab.- Parameters:
uri
- the URI of the web page that will be opened in a browser.
-
showDocument
Convenience method that takes URI- Parameters:
uri
- the URI of the web page that will be opened in a browser
-