public final class

GoToAction

extends Action
java.lang.Object
   ↳ com.pspdfkit.annotations.actions.Action
     ↳ com.pspdfkit.annotations.actions.GoToAction

Class Overview

PDF action representing a change to another page.

Summary

Public Constructors
GoToAction(int pageIndex)
Creates action instance.
GoToAction(int pageIndex, List<Action> subActions)
Creates action instance.
Public Methods
boolean equals(Object o)
int getPageIndex()
Page this action points to.
ActionType getType()
Returns type of action to make down-casting easier.
int hashCode()
String toString()
[Expand]
Inherited Methods
From class com.pspdfkit.annotations.actions.Action
From class java.lang.Object

Public Constructors

public GoToAction (int pageIndex)

Creates action instance.

Parameters
pageIndex Index of the page to skip to once the action is triggered.

public GoToAction (int pageIndex, List<Action> subActions)

Creates action instance.

Parameters
pageIndex Index of the page to skip to once the action is triggered.
subActions List of sub-actions of this action.

Public Methods

public boolean equals (Object o)

public int getPageIndex ()

Page this action points to.

Returns
  • 0-indexed page number

public ActionType getType ()

Returns type of action to make down-casting easier.

Returns
  • Type of this action.

public int hashCode ()

public String toString ()