Class GuiLaunchHandler
- java.lang.Object
-
- net.sourceforge.jnlp.AbstractLaunchHandler
-
- net.adoptopenjdk.icedteaweb.client.GuiLaunchHandler
-
- All Implemented Interfaces:
LaunchHandler
public class GuiLaunchHandler extends AbstractLaunchHandler
ALaunchHandlerthat gives feedback to the user using GUI elements including splash screens and exception dialogs.
-
-
Field Summary
Fields Modifier and Type Field Description private static LoggerLOGprivate java.lang.Objectmutexprivate JNLPSplashScreensplashScreen-
Fields inherited from class net.sourceforge.jnlp.AbstractLaunchHandler
logger
-
-
Constructor Summary
Constructors Constructor Description GuiLaunchHandler(OutputController outputStream)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description private voidcloseSplashScreen()voidhandleLaunchError(LaunchException exception)Called when the application could not be launched due to a fatal error, such as the inability to find the main class or non-parseable XML.voidhandleLaunchWarning(LaunchException warning)Called when launching the application can not be launched due to an error that is not fatal.voidlaunchCompleted(ApplicationInstance application)Called when an application, applet, or installer has been launched successfully (the main method or applet start method returned normally).voidlaunchInitialized(JNLPFile file)Called when an application, applet or installer has been determined.voidlaunchStarting(ApplicationInstance application)Called when an application, applet or installer is ready to start.voidvalidationError(LaunchException error)Called when a security validation error occurs while launching the application.-
Methods inherited from class net.sourceforge.jnlp.AbstractLaunchHandler
printMessage
-
-
-
-
Field Detail
-
LOG
private static final Logger LOG
-
splashScreen
private volatile JNLPSplashScreen splashScreen
-
mutex
private final java.lang.Object mutex
-
-
Constructor Detail
-
GuiLaunchHandler
public GuiLaunchHandler(OutputController outputStream)
-
-
Method Detail
-
launchCompleted
public void launchCompleted(ApplicationInstance application)
Description copied from interface:LaunchHandlerCalled when an application, applet, or installer has been launched successfully (the main method or applet start method returned normally).- Parameters:
application- the launched application instance
-
handleLaunchError
public void handleLaunchError(LaunchException exception)
Description copied from interface:LaunchHandlerCalled when the application could not be launched due to a fatal error, such as the inability to find the main class or non-parseable XML.- Parameters:
exception- to be re-thrown as launch error
-
closeSplashScreen
private void closeSplashScreen()
-
launchStarting
public void launchStarting(ApplicationInstance application)
Description copied from interface:LaunchHandlerCalled when an application, applet or installer is ready to start. Good point to hide the splash screen.- Parameters:
application- the application instance that is ready
-
launchInitialized
public void launchInitialized(JNLPFile file)
Description copied from interface:LaunchHandlerCalled when an application, applet or installer has been determined. We have some very basic information about the application at this point, but do not have everything required. This is a nice point to show the splash screen.- Parameters:
file- the JNLP file of the instance that is starting
-
handleLaunchWarning
public void handleLaunchWarning(LaunchException warning)
Description copied from interface:LaunchHandlerCalled when launching the application can not be launched due to an error that is not fatal. For example a JNLP file that is not strictly correct yet does not necessarily prohibit the system from attempting to launch the application.- Parameters:
warning- exception to be consumed as warning
-
validationError
public void validationError(LaunchException error)
Description copied from interface:LaunchHandlerCalled when a security validation error occurs while launching the application.- Parameters:
error- to be rethrown as launch error
-
-