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

    Fields
    Modifier and Type
    Field
    Description
    private 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
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static void
    Load the page and run the start method
    static 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 wasmimports
    void
    start(javafx.stage.Stage primaryStage)

    Methods inherited from class javafx.application.Application

    getHostServices, getParameters, getUserAgentStylesheet, init, launch, launch, notifyPreloader, setUserAgentStylesheet, stop

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • url

      private static String url
    • content

      private static String content
    • main

      private static Runnable main
    • stage

      private static javafx.stage.Stage stage
    • webEngine

      private static javafx.scene.web.WebEngine webEngine
    • wasmImports

      private static netscape.javascript.JSObject wasmImports
    • error

      private static Throwable error
    • ANNOTATIONS

      private static final Set<ImportAnnotation> ANNOTATIONS
  • Constructor Details

    • JavaFxApplication

      public JavaFxApplication()
  • Method Details

    • registerScript

      static void registerScript(@Nonnull ImportAnnotation anno)
      register a JavaScript function from a nation method with annotation in the wasmimports
      Parameters:
      anno - the annotation
    • executeScript

      public static Object executeScript(String moduleName, String methodName, Object... args)
      The bridge method for the WebAssembly import function into the JavaScript.
      Parameters:
      moduleName - the name of the module
      methodName - the name of the function
      args - the arguments
      Returns:
      the return value if any
    • start

      public void start(javafx.stage.Stage primaryStage) throws Exception
      Specified by:
      start in class javafx.application.Application
      Throws:
      Exception
    • execute

      public static void execute()
      Load the page and run the start method