public class LaunchAction extends Action
The launch action launches an applicaiton or opens or prints a document.
There are optional Win which allow for platform specific parameters for launching the designated application.
| Modifier and Type | Class and Description |
|---|---|
class |
LaunchAction.WindowsLaunchParameters
Paramaters specific to launching files on windows.
|
| Modifier and Type | Field and Description |
|---|---|
static Name |
FILE_KEY |
static Name |
MAC_KEY |
static Name |
NEW_WINDOW_KEY |
static Name |
UNIX_KEY |
static Name |
WIN_KEY |
ACTION_TYPE, ACTION_TYPE_GOTO, ACTION_TYPE_GOTO_REMOTE, ACTION_TYPE_JAVA_SCRIPT, ACTION_TYPE_KEY, ACTION_TYPE_LAUNCH, ACTION_TYPE_NAMED, ACTION_TYPE_RESET_SUBMIT, ACTION_TYPE_SUBMIT_SUBMIT, ACTION_TYPE_URI, NEXT_KEYentries, FORM_TYPE_KEY, inited, isDeleted, isNew, LENGTH_KEY, library, SUBTYPE_KEY, TYPE_KEY| Constructor and Description |
|---|
LaunchAction(Library l,
java.util.HashMap h)
Creates a new instance of a Action.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getExternalFile()
Gets the applicaiton to be launched or the document to be opened or
printed.
|
FileSpecification |
getFileSpecification()
Gets the file specification of the destination file.
|
boolean |
getNewWindow()
Specifies whether or not a new window should be opend.
|
LaunchAction.WindowsLaunchParameters |
getWinLaunchParameters()
Gets an object which hold the windows-specific launch parameters.
|
void |
setExternalFile(java.lang.String externalFile)
Sets the external file flag of the action.
|
buildAction, getType, similargetEntries, getFloat, getInt, getLibrary, getNumber, getObject, getPObjectReference, init, isDeleted, isNew, setDeleted, setNew, setPObjectReference, toStringpublic static final Name FILE_KEY
public static final Name WIN_KEY
public static final Name MAC_KEY
public static final Name UNIX_KEY
public static final Name NEW_WINDOW_KEY
public LaunchAction(Library l, java.util.HashMap h)
l - document library.h - Action dictionary entries.public java.lang.String getExternalFile()
public void setExternalFile(java.lang.String externalFile)
externalFile - external file path and or name to be associated
with this launch action.public boolean getNewWindow()
public LaunchAction.WindowsLaunchParameters getWinLaunchParameters()
public FileSpecification getFileSpecification()