public class JavaFxWebEngine extends Object implements IWebEngine
| Modifier and Type | Field and Description |
|---|---|
protected javafx.scene.web.WebEngine |
webEngine |
| Constructor and Description |
|---|
JavaFxWebEngine(javafx.scene.web.WebEngine engine)
Builds a new engine utilizing the specified JavaFX WebEngine
|
| Modifier and Type | Method and Description |
|---|---|
Object |
executeScript(String command)
Executes the specified JavaScript Command
|
javafx.concurrent.Worker<Void> |
getLoadWorker()
Gets a worked which will be notified when a web page has finished loading.
|
void |
load(String url)
Loads the specified URL
|
void |
loadContent(String content)
Loads the given HTML content directly.
|
void |
setOnAlert(javafx.event.EventHandler<javafx.scene.web.WebEvent<String>> eventHandler) |
void |
setOnError(javafx.event.EventHandler<javafx.scene.web.WebErrorEvent> eventHandler) |
public JavaFxWebEngine(javafx.scene.web.WebEngine engine)
engine - The JavaFX WebEngine to use.public Object executeScript(String command)
executeScript in interface IWebEnginecommand - The command to executepublic javafx.concurrent.Worker<Void> getLoadWorker()
getLoadWorker in interface IWebEnginepublic void load(String url)
load in interface IWebEngineurl - The URL to load in the engine.public void loadContent(String content)
loadContent in interface IWebEnginecontent - The HTML text to load in the engine.public void setOnAlert(javafx.event.EventHandler<javafx.scene.web.WebEvent<String>> eventHandler)
public void setOnError(javafx.event.EventHandler<javafx.scene.web.WebErrorEvent> eventHandler)
Copyright © 2017. All rights reserved.