Package org.loboevolution.pdfview.action
Class LaunchAction
java.lang.Object
org.loboevolution.pdfview.action.PDFAction
org.loboevolution.pdfview.action.LaunchAction
**************************************************************************
Action for launching an application, mostly used to open a file.
Author Katja Sondermann
- Since:
- 08.07.2009 **************************************************************************
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
Inner class for storing a file specificationstatic class
Internal class for the windows specific launch parameters -
Field Summary
-
Constructor Summary
ConstructorDescriptionLaunchAction
(PDFObject obj, PDFObject root) Creates a new instance of LaunchAction from an object -
Method Summary
Modifier and TypeMethodDescription********************************************************************** The file / application to be openedstatic boolean
isAbsolute
(String fileName) ********************************************************************** Is the file name absolute (if not, it is relative to the path of the currently opened PDF file).
-
Field Details
-
SOLIDUS
ConstantSOLIDUS="/"
- See Also:
-
-
Constructor Details
-
LaunchAction
Creates a new instance of LaunchAction from an object- Parameters:
obj
- - the PDFObject with the action informationroot
- - the root object- Throws:
IOException
- if any.
-
-
Method Details
-
isAbsolute
********************************************************************** 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
- aString
object.- Returns:
- boolean **********************************************************************
-
getFileSpecification
********************************************************************** The file / application to be opened- Returns:
- FileSpec **********************************************************************
-