Class FxBrowserService

java.lang.Object
app.supernaut.fx.services.FxBrowserService
All Implemented Interfaces:
BrowserService

public class FxBrowserService extends Object implements BrowserService
Implementation of BrowserService using JavaFX HostServices.
  • Constructor Details

    • FxBrowserService

      public FxBrowserService(javafx.application.HostServices hostServices)
      Constructor
      Parameters:
      hostServices - HostServices object to wrap
  • Method Details

    • showDocument

      public void showDocument(String uri)
      Implementation of showDocument using HostServices
      Specified by:
      showDocument in interface BrowserService
      Parameters:
      uri - the URI of the web page that will be opened in a browser.