Class JWebAssemblyEmulator.JavaFxApplication
java.lang.Object
javafx.application.Application
de.inetsoftware.jwebassembly.emulator.JWebAssemblyEmulator.JavaFxApplication
- Enclosing class:
JWebAssemblyEmulator
public static class JWebAssemblyEmulator.JavaFxApplication
extends javafx.application.Application
The implementation of the javafx Application.
-
Nested Class Summary
Nested classes/interfaces inherited from class javafx.application.Application
javafx.application.Application.Parameters
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final Set
<ImportAnnotation> private static String
private static Throwable
private static Runnable
private static javafx.stage.Stage
private static String
private static netscape.javascript.JSObject
private static javafx.scene.web.WebEngine
Fields inherited from class javafx.application.Application
STYLESHEET_CASPIAN, STYLESHEET_MODENA
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic void
execute()
Load the page and run the start methodstatic Object
executeScript
(String moduleName, String methodName, Object... args) The bridge method for the WebAssembly import function into the JavaScript.(package private) static void
register a JavaScript function from a nation method with annotation in the wasmimportsvoid
start
(javafx.stage.Stage primaryStage) Methods inherited from class javafx.application.Application
getHostServices, getParameters, getUserAgentStylesheet, init, launch, launch, notifyPreloader, setUserAgentStylesheet, stop
-
Field Details
-
url
-
-
main
-
stage
private static javafx.stage.Stage stage -
webEngine
private static javafx.scene.web.WebEngine webEngine -
wasmImports
private static netscape.javascript.JSObject wasmImports -
error
-
ANNOTATIONS
-
-
Constructor Details
-
JavaFxApplication
public JavaFxApplication()
-
-
Method Details
-
registerScript
register a JavaScript function from a nation method with annotation in the wasmimports- Parameters:
anno
- the annotation
-
executeScript
The bridge method for the WebAssembly import function into the JavaScript.- Parameters:
moduleName
- the name of the modulemethodName
- the name of the functionargs
- the arguments- Returns:
- the return value if any
-
start
- Specified by:
start
in classjavafx.application.Application
- Throws:
Exception
-
execute
public static void execute()Load the page and run the start method
-