Class BootstrapSwing
- java.lang.Object
-
- com.inductiveautomation.ignition.client.launch.BootstrapSwing
-
- All Implemented Interfaces:
LauncherParent
,LaunchParent
public class BootstrapSwing extends java.lang.Object implements LauncherParent, LaunchParent
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface com.inductiveautomation.ignition.client.launch.LaunchParent
LaunchParent.LaunchFlavor
-
-
Field Summary
-
Fields inherited from interface com.inductiveautomation.ignition.client.launch.LauncherParent
ARG_GATEWAY_ADDR, ARG_HOOK, ARG_INITIAL_HEAP_SIZE, ARG_JAVA_VM_ARGS, ARG_MAX_HEAP_SIZE, ARG_PLATFORM_EDITION, ARG_PLATFORM_PLUGINS, ARG_PROJECT, ARG_RETARGET_TOKEN, ARG_SCOPE, ARG_SCREEN, ARG_TIMESTAMP
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
BootstrapSwing()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method 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 6static void
centerComponent(java.awt.Component source)
static java.util.List<java.awt.Image>
getBrandIcons()
Returns all icon images needed to display the Ignition logo in a window frame.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)
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)
-
-
-
Method Detail
-
main
public static void main(java.lang.String[] args)
-
getBrandIcons
public static java.util.List<java.awt.Image> getBrandIcons()
Returns all icon images needed to display the Ignition logo in a window frame. Takes into account the designer/client scope, and whether this is an Ignition Edge system.
-
brandFrame
public 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
-
setFrameState
public 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.FRAMESTATE_ARG=frame.getExtendedState() FRAMEBOUNDS_ARG=frame.getBounds()
-
setContent
public void setContent(LaunchContext context, LaunchableApp newApp)
- Specified by:
setContent
in interfaceLaunchParent
-
restart
public void restart(java.util.List<GatewayAddress> addresses, java.lang.String projectName, java.lang.String scope, byte[] userObj)
Description copied from interface:LaunchParent
Restarts the launcher with the settings specified. Used for re-targeting.- Specified by:
restart
in interfaceLaunchParent
-
handleError
public void handleError(java.lang.String message)
Description copied from interface:LauncherParent
Should show the error message with an option to retry or abort.- Specified by:
handleError
in interfaceLauncherParent
-
isContainer
public boolean isContainer()
-
getRootPaneContainer
public javax.swing.RootPaneContainer getRootPaneContainer()
- Specified by:
getRootPaneContainer
in interfaceLaunchParent
-
centerComponent
public static void centerComponent(java.awt.Component source)
-
getLaunchProperty
public java.lang.String getLaunchProperty(java.lang.String propertyName)
- Specified by:
getLaunchProperty
in interfaceLauncherParent
-
isFullScreen
public boolean isFullScreen()
- Specified by:
isFullScreen
in interfaceLaunchParent
-
getLaunchFlavor
public LaunchParent.LaunchFlavor getLaunchFlavor()
- Specified by:
getLaunchFlavor
in interfaceLaunchParent
-
showSplash
public void showSplash(SplashPanel splash)
- Specified by:
showSplash
in interfaceLauncherParent
-
-