Class JWebAssemblyEmulator
- java.lang.Object
-
- de.inetsoftware.jwebassembly.emulator.JWebAssemblyEmulator
-
public class JWebAssemblyEmulator extends java.lang.ObjectThe main class start point for the emulator.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classJWebAssemblyEmulator.JavaFxApplicationThe implementation of the javafx Application.
-
Constructor Summary
Constructors Constructor Description JWebAssemblyEmulator()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description (package private) static voidhide()Hide the emulator windowprivate static voidlaunch(java.lang.String htmlPageURL, java.lang.String content, java.lang.Runnable main)Start the emulator.static voidlaunchContent(java.lang.String content, java.lang.Runnable main)Start the emulator from a URL, load the html page and call the given main method.static voidlaunchResource(java.lang.String htmlPage, java.lang.Runnable main)Start the emulator from a resource file, load the html page and call the given main method.static voidlaunchURL(java.net.URL htmlPageURL, java.lang.Runnable main)Start the emulator from a URL, load the html page and call the given main method.(package private) static <E extends java.lang.Throwable>
voidthrowAny(java.lang.Throwable e)Throws any (checked) exception without in signature
-
-
-
Method Detail
-
launchResource
public static void launchResource(@Nonnull java.lang.String htmlPage, @Nonnull java.lang.Runnable main)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
public static void launchURL(@Nonnull java.net.URL htmlPageURL, @Nonnull java.lang.Runnable main)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
public static void launchContent(@Nonnull java.lang.String content, @Nonnull java.lang.Runnable main)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
private static void launch(java.lang.String htmlPageURL, java.lang.String content, @Nonnull java.lang.Runnable main)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
static <E extends java.lang.Throwable> void throwAny(java.lang.Throwable e) throws E extends java.lang.ThrowableThrows any (checked) exception without in signature- Type Parameters:
E- any Throwable- Parameters:
e- the exception- Throws:
E- any ThrowableE extends java.lang.Throwable
-
-