Class PDWindowsLaunchParams
- java.lang.Object
-
- org.apache.pdfbox.pdmodel.interactive.action.PDWindowsLaunchParams
-
- All Implemented Interfaces:
COSObjectable
public class PDWindowsLaunchParams extends java.lang.Object implements COSObjectable
Launch parameters for the windows OS.
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
OPERATION_OPEN
The open operation for the launch.static java.lang.String
OPERATION_PRINT
The print operation for the launch.protected COSDictionary
params
The params dictionary.
-
Constructor Summary
Constructors Constructor Description PDWindowsLaunchParams()
Default constructor.PDWindowsLaunchParams(COSDictionary p)
Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description COSDictionary
getCOSObject()
Convert this standard java object to a COS object.java.lang.String
getDirectory()
The dir to launch from.java.lang.String
getExecuteParam()
A parameter to pass the executable.java.lang.String
getFilename()
The file to launch.java.lang.String
getOperation()
Get the operation to perform on the file.void
setDirectory(java.lang.String dir)
Set the dir to launch from.void
setExecuteParam(java.lang.String param)
Set the parameter to pass the executable.void
setFilename(java.lang.String file)
Set the file to launch.void
setOperation(java.lang.String op)
Set the operation to perform..
-
-
-
Field Detail
-
OPERATION_OPEN
public static final java.lang.String OPERATION_OPEN
The open operation for the launch.- See Also:
- Constant Field Values
-
OPERATION_PRINT
public static final java.lang.String OPERATION_PRINT
The print operation for the launch.- See Also:
- Constant Field Values
-
params
protected COSDictionary params
The params dictionary.
-
-
Constructor Detail
-
PDWindowsLaunchParams
public PDWindowsLaunchParams()
Default constructor.
-
PDWindowsLaunchParams
public PDWindowsLaunchParams(COSDictionary p)
Constructor.- Parameters:
p
- The params dictionary.
-
-
Method Detail
-
getCOSObject
public COSDictionary getCOSObject()
Convert this standard java object to a COS object.- Specified by:
getCOSObject
in interfaceCOSObjectable
- Returns:
- The cos object that matches this Java object.
-
getFilename
public java.lang.String getFilename()
The file to launch.- Returns:
- The executable/document to launch.
-
setFilename
public void setFilename(java.lang.String file)
Set the file to launch.- Parameters:
file
- The executable/document to launch.
-
getDirectory
public java.lang.String getDirectory()
The dir to launch from.- Returns:
- The dir of the executable/document to launch.
-
setDirectory
public void setDirectory(java.lang.String dir)
Set the dir to launch from.- Parameters:
dir
- The dir of the executable/document to launch.
-
getOperation
public java.lang.String getOperation()
Get the operation to perform on the file. This method will not return null, OPERATION_OPEN is the default.- Returns:
- The operation to perform for the file.
- See Also:
OPERATION_OPEN
,OPERATION_PRINT
-
setOperation
public void setOperation(java.lang.String op)
Set the operation to perform..- Parameters:
op
- The operation to perform on the file.
-
getExecuteParam
public java.lang.String getExecuteParam()
A parameter to pass the executable.- Returns:
- The parameter to pass the executable.
-
setExecuteParam
public void setExecuteParam(java.lang.String param)
Set the parameter to pass the executable.- Parameters:
param
- The parameter for the executable.
-
-