Top Description Methods
com.dlsc.gmapsfx.javascript

public Interface IWebEngine

Known Direct Implementers
com.dlsc.gmapsfx.javascript.JavaFxWebEngine
Imports
javafx.concurrent.Worker

Provides an abstraction to the web engine, so that a mock engine can be utilized in unit tests, or a different web engine could be utilized in future versions of this framework.
Author
Rob Terpilowski

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
)

Executes the specified JavaScript Command

public Worker<Void>

Returns:

The worker
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
)

Loads the specified URL

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

Loads the given HTML content directly.

Method Detail

executeScriptback to summary
public Object executeScript(String command)

Executes the specified JavaScript Command

Parameters
command:String

The command to execute

Returns:Object

The object returned by the script (if any).

getLoadWorkerback to summary
public Worker<Void> getLoadWorker()

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

Returns:Worker<Void>

The worker

loadback to summary
public void load(String url)

Loads the specified URL

Parameters
url:String

The URL to load in the engine.

loadContentback to summary
public void loadContent(String content)

Loads the given HTML content directly.

Parameters
content:String

The HTML text to load in the engine.