Spec-Zone.ru › OpenJavaFX 8

Package javafx.scene.web

This package provides means for loading and displaying Web content.

See: Description

Class Summary
Class Description
HTMLEditor
A control that allows for users to edit text, and apply styling to this text.
PopupFeatures
This class describes features of a Web popup window as specified by JavaScript window.open function.
PromptData
This class encapsulates data passed into JavaScript prompt() function: a message and a default value.
WebEngine
WebEngine is a non-visual object capable of managing one Web page at a time.
WebErrorEvent
An event indicating a WebEngine error.
WebEvent<T>
WebEvent instances are passed into EventHandlers registered with a WebEngine by JavaScript running on a Web page.
WebHistory
The WebHistory class represents a session history associated with a WebEngine instance.
WebView
WebView is a Node that manages a WebEngine and displays its content.

Package javafx.scene.web Description

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

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

WebView is a 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

© 2008, 2025, Oracle and/or its affiliates. All rights reserved.
Documentation extracted from JavaFX API Documentation.
Licensed under the GNU General Public License, version 2, with the Classpath Exception.
Java, JavaFX and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.

Spec-Zone.ru

Настройки Оффлайн Что нового Помощь О нас
Spec-Zone .ru
спецификации, руководства, описания, API