public class LaunchAction extends Action
| Modifier and Type | Field and Description | 
|---|---|
static String | 
ACTION_TYPE_DESCRIPTION  | 
OPEN_EXISTING_WINDOW, OPEN_NEW_WINDOW, OPEN_USER_PREFERENCE| Constructor and Description | 
|---|
LaunchAction(String fileName)
Constructs the action with the given file name. 
 | 
LaunchAction(String fileName,
            int newWindow)
Constructs the action with the given file name. 
 | 
| Modifier and Type | Method and Description | 
|---|---|
String | 
getActionType()
Returns the action type. 
 | 
String | 
getActionTypeDesc()
Returns the action type description 
 | 
String | 
getFileName()
Returns the name of the file to launch in the PDF file specification format. 
 | 
int | 
getNewWindow()
A flag specifying whether to open the destination document in a new
 window. 
 | 
Boolean | 
isNewWindow()
Deprecated. 
 
Use  
getNewWindow() | 
void | 
setNewWindow(boolean newWindow)
Deprecated. 
 
 | 
void | 
setNewWindow(int newWindow)
A flag specifying whether to open the destination document in a new
 window. 
 | 
String | 
toString()
Returns the description of the action. 
 | 
getNextAction, setNextActionpublic static String ACTION_TYPE_DESCRIPTION
public LaunchAction(String fileName)
fileName - The name of the file to launch following the PDF file specification format. 
 public LaunchAction(String fileName, int newWindow)
fileName - The name of the file to launch following the PDF file specification format.
 newWindow - The value of the new window flag.  One of Action.OPEN_EXISTING_WINDOW,
 Action.OPEN_NEW_WINDOW, Action.OPEN_USER_PREFERENCE.public String getFileName()
public String getActionType()
getActionType in class Actionpublic String getActionTypeDesc()
getActionTypeDesc in class Actionpublic String toString()
public void setNewWindow(boolean newWindow)
setNewWindow(int)newWindow - The value of the new window flag.public Boolean isNewWindow()
getNewWindow()public void setNewWindow(int newWindow)
newWindow - The value of the new window flag.  One of Action.OPEN_EXISTING_WINDOW,
 Action.OPEN_NEW_WINDOW, Action.OPEN_USER_PREFERENCE.public int getNewWindow()
Action.OPEN_EXISTING_WINDOW,
 Action.OPEN_NEW_WINDOW, Action.OPEN_USER_PREFERENCE.