Class WebViewBrowser

java.lang.Object
net.jalbum.browser.WebViewBrowser
All Implemented Interfaces:
WebBrowser

public class WebViewBrowser extends Object implements WebBrowser
  • Property Details

  • Field Details

    • webEngine

      public static javafx.scene.web.WebEngine webEngine
  • Constructor Details

    • WebViewBrowser

      public WebViewBrowser()
  • Method Details

    • getView

      public JComponent getView()
      Specified by:
      getView in interface WebBrowser
    • ensureReady

      public void ensureReady()
    • load

      public void load(String url)
      Specified by:
      load in interface WebBrowser
    • loadContent

      public void loadContent(String content)
      Specified by:
      loadContent in interface WebBrowser
    • reload

      public void reload()
      Specified by:
      reload in interface WebBrowser
    • reloadIgnoringCache

      public void reloadIgnoringCache()
      Specified by:
      reloadIgnoringCache in interface WebBrowser
    • waitUntilLoaded

      public void waitUntilLoaded() throws InterruptedException
      Specified by:
      waitUntilLoaded in interface WebBrowser
      Throws:
      InterruptedException
    • getLocation

      public String getLocation()
      Gets the value of the location property.
      Specified by:
      getLocation in interface WebBrowser
      Property description:
      Returns:
      the value of the location property
      See Also:
    • locationProperty

      public javafx.beans.property.ReadOnlyStringProperty locationProperty()
      Specified by:
      locationProperty in interface WebBrowser
      Returns:
      the location property
      See Also:
    • stop

      public void stop()
      Specified by:
      stop in interface WebBrowser
    • stateProperty

      public javafx.beans.property.ReadOnlyObjectProperty<javafx.concurrent.Worker.State> stateProperty()
      Description copied from interface: WebBrowser
      Gets the ReadOnlyObjectProperty representing the current state.
      Specified by:
      stateProperty in interface WebBrowser
      Returns:
      the state property
    • goBack

      public void goBack()
      Specified by:
      goBack in interface WebBrowser
    • goForward

      public void goForward()
      Specified by:
      goForward in interface WebBrowser
    • canGoBackProperty

      public javafx.beans.property.ReadOnlyBooleanProperty canGoBackProperty()
      Specified by:
      canGoBackProperty in interface WebBrowser
      Returns:
      the canGoBack property
    • canGoForwardProperty

      public javafx.beans.property.ReadOnlyBooleanProperty canGoForwardProperty()
      Specified by:
      canGoForwardProperty in interface WebBrowser
      Returns:
      the canGoForward property
    • getTitle

      public String getTitle()
      Gets the value of the title property.
      Specified by:
      getTitle in interface WebBrowser
      Property description:
      Returns:
      the value of the title property
      See Also:
    • titleProperty

      public javafx.beans.property.ReadOnlyStringProperty titleProperty()
      Specified by:
      titleProperty in interface WebBrowser
      Returns:
      the title property
      See Also:
    • onPageLoaded

      public void onPageLoaded(Runnable r)
      Description copied from interface: WebBrowser
      Convenience to using stateProperty to execute code when page is loaded
      Specified by:
      onPageLoaded in interface WebBrowser
      Parameters:
      r -
    • onError

      public void onError(Runnable r)
      Parameters:
      r -
      Since:
      17.2
    • dispose

      public void dispose()
      Specified by:
      dispose in interface WebBrowser
    • getEngine

      public javafx.scene.web.WebEngine getEngine()
    • getWebView

      public javafx.scene.web.WebView getWebView()
      Returns:
      Since:
      17.2
    • getDocument

      public Document getDocument()
      Specified by:
      getDocument in interface WebBrowser