Class JWebAssemblyEmulator
java.lang.Object
de.inetsoftware.jwebassembly.emulator.JWebAssemblyEmulator
The main class start point for the emulator.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classThe implementation of the javafx Application. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) static voidhide()Hide the emulator windowprivate static voidStart the emulator.static voidlaunchContent(String content, Runnable main) Start the emulator from a URL, load the html page and call the given main method.static voidlaunchResource(String htmlPage, Runnable main) Start the emulator from a resource file, load the html page and call the given main method.static voidStart the emulator from a URL, load the html page and call the given main method.(package private) static <E extends Throwable>
voidThrows any (checked) exception without in signature
-
Constructor Details
-
JWebAssemblyEmulator
public JWebAssemblyEmulator()
-
-
Method Details
-
launchResource
Start the emulator from a resource file, load the html page and call the given main method.- Parameters:
htmlPage- The resource of the html page that the WebAssembly contains.main- the executable with the main function
-
launchURL
Start the emulator from a URL, load the html page and call the given main method.- Parameters:
htmlPageURL- The URL of the html page that the WebAssembly contains.main- the executable with the main function
-
launchContent
Start the emulator from a URL, load the html page and call the given main method.- Parameters:
content- The content of the html page that the WebAssembly contains.main- the executable with the main function
-
launch
Start the emulator.- Parameters:
htmlPageURL- The URL of the html page that the WebAssembly contains.content- The content of the html page that the WebAssembly contains.main- the executable with the main function
-
hide
static void hide()Hide the emulator window -
throwAny
Throws any (checked) exception without in signature- Type Parameters:
E- any Throwable- Parameters:
e- the exception- Throws:
E- any Throwable
-