Top Description Fields Constructors Methods
com.dlsc.gmapsfx.javascript

public Class JavaFxWebEngine

extends Object
implements IWebEngine
Class Inheritance
All Implemented Interfaces
com.dlsc.gmapsfx.javascript.IWebEngine
Imports
javafx.concurrent.Worker, javafx.event.EventHandler, javafx.scene.web.WebEngine, .WebErrorEvent, .WebEvent

This class provides an implementation of the IWebEngine interface utilizing a javafx.scene.web.WebEngine as the underlying engine.
Author
Rob Terpilowski

Field Summary

Modifier and TypeField and Description
protected WebEngine

Constructor Summary

AccessConstructor and Description
public
JavaFxWebEngine(WebEngine
The JavaFX WebEngine to use.
engine
)

Builds a new engine utilizing the specified JavaFX WebEngine

Method Summary

Modifier and TypeMethod and Description
public Object

Returns:

The object returned by the script (if any).
executeScript
(String
The command to execute
command
)

Implements com.dlsc.gmapsfx.javascript.IWebEngine.executeScript.

Executes the specified JavaScript Command

public Worker<Void>

Returns:

The worker
getLoadWorker
()

Implements com.dlsc.gmapsfx.javascript.IWebEngine.getLoadWorker.

Gets a worked which will be notified when a web page has finished loading.

public void
load(String
The URL to load in the engine.
url
)

Implements com.dlsc.gmapsfx.javascript.IWebEngine.load.

Loads the specified URL

public void
loadContent(String
The HTML text to load in the engine.
content
)

Implements com.dlsc.gmapsfx.javascript.IWebEngine.loadContent.

Loads the given HTML content directly.

public void
public void
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

webEngineback to summary
protected WebEngine webEngine

Constructor Detail

JavaFxWebEngineback to summary
public JavaFxWebEngine(WebEngine engine)

Builds a new engine utilizing the specified JavaFX WebEngine

Parameters
engine:WebEngine

The JavaFX WebEngine to use.

Method Detail

executeScriptback to summary
public Object executeScript(String command)

Implements com.dlsc.gmapsfx.javascript.IWebEngine.executeScript.

Executes the specified JavaScript Command

Parameters
command:String

The command to execute

Returns:Object

The object returned by the script (if any).

Annotations
@Override
getLoadWorkerback to summary
public Worker<Void> getLoadWorker()

Implements com.dlsc.gmapsfx.javascript.IWebEngine.getLoadWorker.

Gets a worked which will be notified when a web page has finished loading.

Returns:Worker<Void>

The worker

Annotations
@Override
loadback to summary
public void load(String url)

Implements com.dlsc.gmapsfx.javascript.IWebEngine.load.

Loads the specified URL

Parameters
url:String

The URL to load in the engine.

Annotations
@Override
loadContentback to summary
public void loadContent(String content)

Implements com.dlsc.gmapsfx.javascript.IWebEngine.loadContent.

Loads the given HTML content directly.

Parameters
content:String

The HTML text to load in the engine.

Annotations
@Override
setOnAlertback to summary
public void setOnAlert(EventHandler<WebEvent<String>> eventHandler)
setOnErrorback to summary
public void setOnError(EventHandler<WebErrorEvent> eventHandler)