com.qoppa.pdfViewer.actions
Class LaunchAction

java.lang.Object
  extended by com.qoppa.pdfViewer.actions.Action
      extended by com.qoppa.pdfViewer.actions.LaunchAction

public class LaunchAction
extends Action

Action that tells the viewer to go to 'launch' a given file. The default behaviour is to let the operating system launch the file. This should behave in the same way as if double-clicking on the file.


Field Summary
static String ACTION_TYPE_DESCRIPTION
           
 
Constructor Summary
LaunchAction(String fileName)
          Constructs the action with the give file name.
 
Method Summary
 String getActionType()
          Returns the action type.
 String getActionTypeDesc()
          Returns the action type description
 String getFileName()
          Returns the name of the file to launch in the PDF file specification format.
 String toString()
          Returns the description of the action.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

ACTION_TYPE_DESCRIPTION

public static String ACTION_TYPE_DESCRIPTION
Constructor Detail

LaunchAction

public LaunchAction(String fileName)
Constructs the action with the give file name.

Parameters:
fileName - The name of the file to launch following the PDF file specification format.
  • /r/pdfdocs/spec.pdf for OS path name r:\pdfdocs\spec.pdf
  • //pdfdocs/spec.pdf for OS path name \pdfdocs\spec.pdf
  • any path not starting with / is a path relative to the PDF document file path
Method Detail

getFileName

public String getFileName()
Returns the name of the file to launch in the PDF file specification format.

Returns:
The name of the file to launch.

getActionType

public String getActionType()
Returns the action type.

Specified by:
getActionType in class Action
Returns:
The action type.

getActionTypeDesc

public String getActionTypeDesc()
Returns the action type description

Specified by:
getActionTypeDesc in class Action

toString

public String toString()
Returns the description of the action.

Overrides:
toString in class Object