public class GuiLaunchHandler extends AbstractLaunchHandler
LaunchHandler
that gives feedback to the user using GUI elements
including splash screens and exception dialogs.logger
Constructor and Description |
---|
GuiLaunchHandler(net.sourceforge.jnlp.util.logging.OutputController outputStream) |
Modifier and Type | Method and Description |
---|---|
void |
launchCompleted(ApplicationInstance application)
Called when an application, applet, or installer has been
launched successfully (the main method or applet start method
returned normally).
|
void |
launchError(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.
|
void |
launchInitialized(JNLPFile file)
Called when an application, applet or installer has been determined.
|
void |
launchStarting(ApplicationInstance application)
Called when an application, applet or installer is ready to start.
|
boolean |
launchWarning(LaunchException warning)
Called when launching the application can not be launched due
to an error that is not fatal.
|
boolean |
validationError(LaunchException error)
Called when a security validation error occurs while
launching the application.
|
printMessage
public GuiLaunchHandler(net.sourceforge.jnlp.util.logging.OutputController outputStream)
public void launchCompleted(ApplicationInstance application)
LaunchHandler
application
- the launched application instancepublic void launchError(LaunchException exception)
LaunchHandler
exception
- to be re-thrown as launch errorpublic void launchStarting(ApplicationInstance application)
LaunchHandler
application
- the application instance that is readypublic void launchInitialized(JNLPFile file)
LaunchHandler
file
- the JNLP file of the instance that is startingpublic boolean launchWarning(LaunchException warning)
LaunchHandler
warning
- exception to be consummed as warningpublic boolean validationError(LaunchException error)
LaunchHandler
error
- to be rethrown as launch error