com.qoppa.pdfViewer.actions
Class GotoPageAction

java.lang.Object
  extended bycom.qoppa.pdfViewer.actions.Action
      extended bycom.qoppa.pdfViewer.actions.GotoPageAction

public class GotoPageAction
extends Action

Action that tells the viewer to go to a page in the current document.


Field Summary
static String ACTION_TYPE_DESCRIPTION
           
 
Constructor Summary
GotoPageAction(int pageNumber)
          Constructs a GotoPageAction with a page number.
 
Method Summary
 String getActionType()
          Returns the action type.
 String getActionTypeDesc()
          Returns the action type description
 int getPageNumber()
          Returns the target page number.
 void setPageNumber(int pageNumber)
          Sets the target page number.
 String toString()
          Returns the description of the action.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

ACTION_TYPE_DESCRIPTION

public static String ACTION_TYPE_DESCRIPTION
Constructor Detail

GotoPageAction

public GotoPageAction(int pageNumber)
Constructs a GotoPageAction with a page number. Page numbers start with page `.

Parameters:
pageNumber - The target page number.
Method Detail

getPageNumber

public int getPageNumber()
Returns the target page number. Page numbers start with page 1.

Returns:
The target page number.

setPageNumber

public void setPageNumber(int pageNumber)
Sets the target page number. Page numbers start with page 1.

Parameters:
pageNumber - The target page number.

getActionType

public String getActionType()
Returns the action type.

Specified by:
getActionType in class Action
Returns:
The action type.

getActionTypeDesc

public String getActionTypeDesc()
Returns the action type description

Specified by:
getActionTypeDesc in class Action

toString

public String toString()
Returns the description of the action.