public abstract class MicroUI
extends java.lang.Object
MicroUI
class offers basic services in the MicroUI implementation.start()
. MicroUI may also be stopped with stop()
.
Uncaught user errors may be handled defining an UncaughtExceptionHandler
.
Modifier and Type | Method and Description |
---|---|
static boolean |
isStarted()
Checks if MicroUI has been started.
|
static void |
setUncaughtExceptionHandler(UncaughtExceptionHandler exceptionHandler)
Sets the exception handler called when an exception occurred in the library.
|
static void |
start()
Starts MicroUI.
It implies starting event serialization as well as rendering mechanisms. This method does nothing if MicroUI is already started. |
static void |
stop()
Stops MicroUI.
It implies stopping any potential event serialization as well as rendering mechanisms. This method does nothing if MicroUI is already stopped. |
public static void start() throws java.lang.SecurityException
java.lang.SecurityException
- if a security manager exists and does not allow the caller to start MicroUI.public static void stop() throws java.lang.SecurityException
java.lang.SecurityException
- if a security manager exists and does not allow the caller to stop MicroUI.public static boolean isStarted()
public static final void setUncaughtExceptionHandler(UncaughtExceptionHandler exceptionHandler)
When no handler is defined, the exception stack trace is printed on standard error stream.
exceptionHandler
- the handler to use when an exception occurred in the library.System.err