Package xdev.ui

Class XdevBrowser

All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable

public class XdevBrowser extends XdevJFXPanel
A web browser component to display HTML content.
Since:
5.0
Author:
XDEV Software
See Also:
  • Field Details

    • webView

      protected javafx.scene.web.WebView webView
  • Constructor Details

    • XdevBrowser

      public XdevBrowser()
  • Method Details

    • createScene

      protected javafx.scene.Scene createScene()
    • createWebView

      protected javafx.scene.web.WebView createWebView()
    • getWebView

      public javafx.scene.web.WebView getWebView()
      Returns the web view node which is used by this browser.
      Returns:
      the web view node which is used by this browser.
    • getWebEngine

      public javafx.scene.web.WebEngine getWebEngine()
      Returns the web engine which is used by this browser.
      Returns:
      the web engine which is used by this browser.
    • getWebHistory

      public javafx.scene.web.WebHistory getWebHistory()
      Returns the history of this browser.
      Returns:
      the history of this browser.
    • load

      public void load(String url)
      Loads a Web page into this browser. This method starts asynchronous loading and returns immediately.
      Parameters:
      url - URL of the web page to load
    • loadContent

      public void loadContent(String html)
      Loads the given HTML content directly. This method is useful when you have an HTML String composed in memory, or loaded from some system which cannot be reached via a URL (for example, the HTML text may have come from a database). As with load(String), this method is asynchronous.
      Parameters:
      html - content to load