public class LaunchAction extends Action
| Constructor and Description |
|---|
LaunchAction(FileSpecification fileSpec)
General constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
delete() |
FileSpecification |
getFileSpecification()
The FileSpecification for this action.
|
boolean |
getNewWindow()
A flag specifying whether to open the destination document in a new window.
|
void |
setFileSpecification(FileSpecification fileSpec)
The FileSpecification for this action.
|
void |
setNewWindow(boolean newValue)
A flag specifying whether to open the destination document in a new window.
|
equals, getPDFDict, getSubtype, toStringpublic LaunchAction(FileSpecification fileSpec)
The action's target will be the path referenced in the FileSpecification parameter. If the path is absolute, the target path will also be absolute. If the path is relative, the target path will also be relative.
Generally, the FileSpecification should be associated with the same Document that contains the LaunchAction. (Both FileSpecification and LaunchAction objects are associated with a Document at creation time, and the association cannot be changed.) The LaunchAction will be associated with the same Document that the FileSpecification parameter is associated with.
If the action's FileSpecification is changed during program execution such that the FileSpecification is associated with a different Document than the LaunchAction, saving the Document that contains the action will create a copy of the FileSpecification in the Document that contains the action.
fileSpec - A FileSpecification representing the application to be launched or the document to be opened or printed by this action.public FileSpecification getFileSpecification()
Generally, the FileSpecification should be associated with the same Document that contains the LaunchAction. (Both FileSpecification and LaunchAction are associated with a Document at creation time.)
public void setFileSpecification(FileSpecification fileSpec)
Generally, the FileSpecification should be associated with the same Document that contains the LaunchAction. (Both FileSpecification and LaunchAction are associated with a Document at creation time.)
fileSpec - The FileSpecification to associate with the LaunchAction.public boolean getNewWindow()
By default, this flag is not present.
If the action's FileSpecification is not a PDF, this flag is ignored.
public void setNewWindow(boolean newValue)
By default, this flag is not present.
If the action's FileSpecification is not a PDF, this flag is ignored.
newValue - The new value for the flag.