public class GotoPageRemoteAction 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 |
---|
GotoPageRemoteAction(String fileName,
int pageNumber)
Constructs the action with a target document and a page number.
|
GotoPageRemoteAction(String fileName,
int pageNumber,
int zoomMode)
Constructs an action to go to another PDF document, with an option for the zoom mode.
|
GotoPageRemoteAction(String fileName,
String destinationName)
Constructs an action to go to another PDF document with a named destination.
|
Modifier and Type | Method and Description |
---|---|
String |
getActionType()
Returns the action type.
|
String |
getActionTypeDesc()
Returns the action type description
|
String |
getDestinationName()
Returns the destination name associated with this action, or null if there isn't one.
|
String |
getFileName()
Gets the target document file name in the PDF file specification format.
|
int |
getNewWindow()
A flag specifying whether to open the destination document in a new
window.
|
int |
getPageNumber()
Gets the target page number.
|
int |
getZoomMode()
Returns the zoom mode.
|
boolean |
isNewWindow()
Deprecated.
Use
getNewWindow() |
void |
setDestinationName(String destinationName)
Set the destination name this action should go to
|
void |
setNewWindow(boolean newWindow)
Deprecated.
|
void |
setNewWindow(int newWindow)
A flag specifying whether to open the destination document in a new
window.
|
void |
setZoomMode(int zoomMode)
Sets the zoom mode.
|
String |
toString()
Returns the description of the action.
|
getNextAction, setNextAction
public static String ACTION_TYPE_DESCRIPTION
public GotoPageRemoteAction(String fileName, int pageNumber)
fileName
- The name of the file to launch following the PDF file specification format.
pageNumber
- The target page.public GotoPageRemoteAction(String fileName, int pageNumber, int zoomMode)
fileName
- The name of the file to launch following the PDF file specification format.pageNumber
- The target page.zoomMode
- The zoom mode. This can be one of the pre-defined values in the
GotoPageAction class: ZOOM_FIT, ZOOM_FIT_HORIZONTAL, ZOOM_FIT_VERTICAL, ZOOM_EXPLICIT, ZOOM_RETAINpublic GotoPageRemoteAction(String fileName, String destinationName)
fileName
- The name of the file to launch following the PDF file specification format.destinationName
- String representing the named destination from the document this action should usepublic int getPageNumber()
public String getFileName()
public String getActionType()
getActionType
in class Action
public String getActionTypeDesc()
getActionTypeDesc
in class Action
public String toString()
public int getZoomMode()
public void setZoomMode(int zoomMode)
zoomMode
- The new value of the zoom mode.public void setNewWindow(boolean newWindow)
setNewWindow(int)
newWindow
- 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
.public void setDestinationName(String destinationName)
destinationName
- name of the destination for this goto actionpublic String getDestinationName()