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 protectedBootstrapSwing()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static voidbrandFrame(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 voidcenterComponent(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.LaunchFlavorgetLaunchFlavor()java.lang.StringgetLaunchProperty(java.lang.String propertyName)javax.swing.RootPaneContainergetRootPaneContainer()voidhandleError(java.lang.String message)Should show the error message with an option to retry or abort.booleanisContainer()booleanisFullScreen()static voidmain(java.lang.String[] args)voidrestart(java.util.List<GatewayAddress> addresses, java.lang.String projectName, java.lang.String scope, byte[] userObj)Restarts the launcher with the settings specified.voidsetContent(LaunchContext context, LaunchableApp newApp)voidsetFrameState(LaunchContext context)Puts some attributes into the launch context to recall the frame's state for as seamless of a restart as possible.voidshowSplash(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:
setContentin interfaceLaunchParent
-
restart
public void restart(java.util.List<GatewayAddress> addresses, java.lang.String projectName, java.lang.String scope, byte[] userObj)
Description copied from interface:LaunchParentRestarts the launcher with the settings specified. Used for re-targeting.- Specified by:
restartin interfaceLaunchParent
-
handleError
public void handleError(java.lang.String message)
Description copied from interface:LauncherParentShould show the error message with an option to retry or abort.- Specified by:
handleErrorin interfaceLauncherParent
-
isContainer
public boolean isContainer()
-
getRootPaneContainer
public javax.swing.RootPaneContainer getRootPaneContainer()
- Specified by:
getRootPaneContainerin interfaceLaunchParent
-
centerComponent
public static void centerComponent(java.awt.Component source)
-
getLaunchProperty
public java.lang.String getLaunchProperty(java.lang.String propertyName)
- Specified by:
getLaunchPropertyin interfaceLauncherParent
-
isFullScreen
public boolean isFullScreen()
- Specified by:
isFullScreenin interfaceLaunchParent
-
getLaunchFlavor
public LaunchParent.LaunchFlavor getLaunchFlavor()
- Specified by:
getLaunchFlavorin interfaceLaunchParent
-
showSplash
public void showSplash(SplashPanel splash)
- Specified by:
showSplashin interfaceLauncherParent
-
-