public class BootstrapSwing extends java.lang.Object implements LauncherParent, LaunchParent
LaunchParent.LaunchFlavorARG_GATEWAY_ADDR, ARG_HOOK, ARG_INITIAL_HEAP_SIZE, ARG_JAVA_VM_ARGS, ARG_MAX_HEAP_SIZE, ARG_PLATFORM_EDITION, ARG_PROJECT, ARG_PROJECT_VERSION, ARG_RETARGET_TOKEN, ARG_SCOPE, ARG_SCREEN, ARG_TIMESTAMP| Modifier | Constructor and Description |
|---|---|
protected |
BootstrapSwing() |
| Modifier and Type | Method and Description |
|---|---|
static void |
brandFrame(javax.swing.JFrame frame)
Applies the icon image(s) to a JFrame in a way that is Java 5 safe, but uses reflection to take advantage of the
multi-resolution icon capabilities of Java 6
|
static void |
centerComponent(java.awt.Component source) |
LaunchParent.LaunchFlavor |
getLaunchFlavor() |
java.lang.String |
getLaunchProperty(java.lang.String propertyName) |
javax.swing.RootPaneContainer |
getRootPaneContainer() |
void |
handleError(java.lang.String message)
Should show the error message with an option to retry or abort.
|
boolean |
isContainer() |
boolean |
isFullScreen() |
static void |
main(java.lang.String[] args) |
void |
restart(java.util.List<GatewayAddress> addresses,
java.lang.String projectName,
java.lang.String scope,
byte[] userObj)
Deprecated.
|
void |
restart(java.util.List<GatewayAddress> addresses,
java.lang.String projectName,
java.lang.String projectVersion,
java.lang.String scope,
byte[] userObj)
Restarts the launcher with the settings specified.
|
void |
setContent(LaunchContext context,
LaunchableApp newApp) |
void |
setFrameState(LaunchContext context)
Puts some attributes into the launch context to recall the frame's state for as seamless of a restart as
possible.
|
void |
showSplash(SplashPanel splash) |
public static void main(java.lang.String[] args)
@Deprecated public void restart(java.util.List<GatewayAddress> addresses, java.lang.String projectName, java.lang.String scope, byte[] userObj)
LaunchParentrestart in interface LaunchParentpublic void restart(java.util.List<GatewayAddress> addresses, java.lang.String projectName, java.lang.String projectVersion, java.lang.String scope, byte[] userObj)
LaunchParentrestart in interface LaunchParentpublic void setFrameState(LaunchContext context)
FRAMESTATE_ARG=frame.getExtendedState() FRAMEBOUNDS_ARG=frame.getBounds()
public void setContent(LaunchContext context, LaunchableApp newApp)
setContent in interface LaunchParentpublic void handleError(java.lang.String message)
LauncherParenthandleError in interface LauncherParentpublic boolean isContainer()
public javax.swing.RootPaneContainer getRootPaneContainer()
getRootPaneContainer in interface LaunchParentpublic void showSplash(SplashPanel splash)
showSplash in interface LauncherParentpublic static void centerComponent(java.awt.Component source)
public java.lang.String getLaunchProperty(java.lang.String propertyName)
getLaunchProperty in interface LauncherParentpublic boolean isFullScreen()
isFullScreen in interface LaunchParentpublic LaunchParent.LaunchFlavor getLaunchFlavor()
getLaunchFlavor in interface LaunchParentpublic static void brandFrame(javax.swing.JFrame frame)