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
Nested ClassesModifier and TypeClassDescriptionstatic classInner class for storing a file specificationstatic classInternal class for the windows specific launch parameters -
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionLaunchAction(PDFObject obj, PDFObject root) Creates a new instance of LaunchAction from an object -
Method Summary
Modifier and TypeMethodDescription********************************************************************** The file / application to be openedstatic booleanisAbsolute(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- aStringobject.- Returns:
- boolean **********************************************************************
-
getFileSpecification
********************************************************************** The file / application to be opened- Returns:
- FileSpec **********************************************************************
-