public static enum LaunchJNLP.EType extends java.lang.Enum<LaunchJNLP.EType>
Enumeration of the JNLP application entries which deliver information on the concrete application, for example the current application name, the initial and maximum heap size or the JNLP URL.
Currently their also exists a method which deliver a boolean value if this
enumeration is supported or not. See isSupported()
for more
information.
By initializing the enumeration instances it looks at THE current Java
version and applies until Java 6, update 13 the current flag of
LaunchJNLP.EFlag.D3D_PIPELINE
to false. Otherwise, if the application uses
Java 6 update 14 or higher it returns a true. This flag is used for the launcher
class which catches this flag from the instance and decides if the Direct3D
flag on redrawing graphical components with pipelining should be applied or not and sets
the special environment flag before launching the application. The
corresponding method on delivering this flag is #isD3DFlagEnabled(EFlag)
with EType.EFlag
set to D3D_PIPELINE
.
The following JNLP enumeration entries are defined:
Application Enum | Description |
---|---|
ARCHIVE_VIEWER | Common archive viewer entry. |
ALARM_VIEWER | Common alarm viewer entry. |
This snippet demonstrates the usage of the enumeration entry on the archive viewer:
if (LaunchJNLP.EType.ARCHIVE_VIEWER.isSupported()) { final Listparameters = new ArrayList (); parameters.add("av.datespan=..."); parameters.add("av.machine=..."); parameters.add("av.mode=..."); parameters.add("av.availableSubsystems=..."); parameters.add("-CTINE/MHF/..."); LaunchJNLP.launch(EType.ARCHIVE_VIEWER, parameters); } else { // -> notify the user about the unsupported application // entry }
This example uses the launcher class LaunchJNLP
.
A list of the used application and their parameters can be found below. On each of this web pages there exists nearly at the end a subsection with the title Start-up parameters where you can find the parameters.
Modifier and Type | Class and Description |
---|---|
static class |
LaunchJNLP.EType.ApplicationUtilities
Application utility class.
|
Enum Constant and Description |
---|
ALARM_VIEWER
Common alarm viewer entry.
|
ARCHIVE_VIEWER
Common archive viewer entry.
|
MULTI_CHANNEL_ANALYZER
Common multi-channel analyzer entry.
|
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
CALLING_COMMAND
Calling command name.
|
static java.lang.String |
CLAZZ
Enumeration name.
|
static java.lang.String |
PRE_JNLP_PART
Pre part of the JNLP executing URL.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getCallingCommand()
Returns the calling command string.
|
java.lang.String |
getDescription()
Returns a short description of this instance.
|
java.lang.String |
getInitialHeapSize()
Returns the initial heap size.
|
java.lang.String |
getJnlpURL()
Returns the executing string part of the JNLP URL.
|
java.lang.String |
getMaximumHeapSize()
Returns the maximum heap size.
|
boolean |
isD3DFlagEnabled(LaunchJNLP.EFlag isUsed_)
Returns on the
LaunchJNLP.EFlag enumeration the current usage
depending on the Java version. |
boolean |
isSupported()
Request if the application entry is supported (
true ) or not
(false ). |
static LaunchJNLP.EType |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static LaunchJNLP.EType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final LaunchJNLP.EType ARCHIVE_VIEWER
public static final LaunchJNLP.EType ALARM_VIEWER
public static final LaunchJNLP.EType MULTI_CHANNEL_ANALYZER
public static final java.lang.String CLAZZ
public static final java.lang.String CALLING_COMMAND
public static final java.lang.String PRE_JNLP_PART
public static LaunchJNLP.EType[] values()
for (LaunchJNLP.EType c : LaunchJNLP.EType.values()) System.out.println(c);
public static LaunchJNLP.EType valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic boolean isSupported()
true
) or not
(false
). If this enumeration is no longer supported then this
entry is deprecated and should not be used in the current version
anymore and will be removed in future releases on MstApp.public java.lang.String getDescription()
public java.lang.String getCallingCommand()
public java.lang.String getJnlpURL()
public java.lang.String getInitialHeapSize()
public java.lang.String getMaximumHeapSize()
public boolean isD3DFlagEnabled(LaunchJNLP.EFlag isUsed_)
LaunchJNLP.EFlag
enumeration the current usage
depending on the Java version.isUsed_
- Flag enumeration.true
if the flag is used otherwise
a false
is delivered.13-September-2017 07:50 Deutsches Elektronen-Synchrotron DESY in der Helmholtz-Gemeinschaft