Top Description Classes
module javafx.web

Package javafx.scene.web


This package provides means for loading and displaying Web content. Its functionality is implemented by two core classes:

javafx.scene.web.WebEngine is a non-visual component capable of loading Web pages, creating DOM objects for them, and running scripts inside pages.

javafx.scene.web.WebView is a javafx.scene.Node that presents a Web page managed by a WebEngine. Each WebView has a WebEngine associated with it. This association is established at the time WebView is instantiated, and cannot be changed later.

Both WebEngine and WebView should be created and manipulated on FX User thread.

The code snippet below shows a typical usage scenario:

WebView webView = new WebView();
    WebEngine webEngine = webView.getEngine();
    webEngine.load("http://javafx.com");
    // add webView to the scene

Class Summary

Modifier and TypeClass and Description
pack-priv class
public class
HTMLEditor

A control that allows for users to edit text, and apply styling to this text.

public class
HTMLEditorSkin

HTML editor skin.

public class
PopupFeatures

This class describes features of a Web popup window as specified by JavaScript window.open function.

public class
PromptData

This class encapsulates data passed into JavaScript prompt() function: a message and a default value.

public class
WebEngine

WebEngine is a non-visual object capable of managing one Web page at a time.

public class
WebErrorEvent

An event indicating a WebEngine error.

public class
WebEvent<
the type of the web event
T
>

WebEvent instances are passed into EventHandlers registered with a WebEngine by JavaScript running on a Web page.

public class
WebHistory

The WebHistory class represents a session history associated with a WebEngine instance.

public class
WebView

WebView is a javafx.scene.Node that manages a WebEngine and displays its content.