com.icesoft.pdf.pobjects.actions
Class LaunchAction

java.lang.Object
  extended bycom.icesoft.pdf.pobjects.Dictionary
      extended bycom.icesoft.pdf.pobjects.actions.Action
          extended bycom.icesoft.pdf.pobjects.actions.LaunchAction

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.

Since:
2.6
Author:
ICEsoft Technologies, Inc.

Nested Class Summary
 class LaunchAction.WindowsLaunchParameters
          Paramaters specific to launching files on windows.
 
Field Summary
 
Fields inherited from class com.icesoft.pdf.pobjects.actions.Action
ACTION_TYPE_GOTO, ACTION_TYPE_GOTO_REMOTE, ACTION_TYPE_LAUNCH, ACTION_TYPE_URI
 
Fields inherited from class com.icesoft.pdf.pobjects.Dictionary
entries, inited, library
 
Constructor Summary
LaunchAction(Library l, Hashtable h)
          Creates a new instance of a Action.
 
Method Summary
 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 ta new window should be opend.
 LaunchAction.WindowsLaunchParameters getWinLaunchParameters()
          Gets an object which hold the windows-specific launch parameters.
 
Methods inherited from class com.icesoft.pdf.pobjects.actions.Action
getType
 
Methods inherited from class com.icesoft.pdf.pobjects.Dictionary
getEntries, getFloat, getInt, getLibrary, getNumber, getObject, getPObjectReference, init, setPObjectReference, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

LaunchAction

public LaunchAction(Library l,
                    Hashtable h)
Creates a new instance of a Action.

Parameters:
l - document library.
h - Action dictionary entries.
Method Detail

getExternalFile

public String getExternalFile()
Gets the applicaiton to be launched or the document to be opened or printed.

Returns:
file specification

getNewWindow

public Boolean getNewWindow()
Specifies whether or not ta new window should be opend.

Returns:
true indicates a new window should be used, false otherwise.

getWinLaunchParameters

public LaunchAction.WindowsLaunchParameters getWinLaunchParameters()
Gets an object which hold the windows-specific launch parameters.

Returns:
window specific launch parameters.

getFileSpecification

public FileSpecification getFileSpecification()
Gets the file specification of the destination file. This objects should be interigated to deside what should be done

Returns:
file specification, maybe nukll if external file was specified.