Class LaunchAction

java.lang.Object
org.loboevolution.pdfview.action.PDFAction
org.loboevolution.pdfview.action.LaunchAction

public class LaunchAction extends PDFAction
************************************************************************** Action for launching an application, mostly used to open a file.

Author Katja Sondermann

Since:
08.07.2009 **************************************************************************
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static class 
    Inner class for storing a file specification
    static class 
    Internal class for the windows specific launch parameters
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final String
    Constant SOLIDUS="/"
  • Constructor Summary

    Constructors
    Constructor
    Description
    Creates a new instance of LaunchAction from an object
  • Method Summary

    Modifier and Type
    Method
    Description
    ********************************************************************** The file / application to be opened
    static boolean
    isAbsolute(String fileName)
    ********************************************************************** Is the file name absolute (if not, it is relative to the path of the currently opened PDF file).

    Methods inherited from class org.loboevolution.pdfview.action.PDFAction

    getAction

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

  • Constructor Details

    • LaunchAction

      public LaunchAction(PDFObject obj, PDFObject root) throws IOException
      Creates a new instance of LaunchAction from an object
      Parameters:
      obj - - the PDFObject with the action information
      root - - the root object
      Throws:
      IOException - if any.
  • Method Details

    • isAbsolute

      public static boolean isAbsolute(String fileName)
      ********************************************************************** Is the file name absolute (if not, it is relative to the path of the currently opened PDF file). If the file name starts with a "/", it is considered to be absolute.
      Parameters:
      fileName - a String object.
      Returns:
      boolean **********************************************************************
    • getFileSpecification

      public LaunchAction.FileSpec getFileSpecification()
      ********************************************************************** The file / application to be opened
      Returns:
      FileSpec **********************************************************************