public final class

NamedAction

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

Class Overview

PDF action representing a special event. Examples are: go to next page, go to previous page, etc.

Summary

Nested Classes
enum NamedAction.NamedActionType Known types of named actions in PDF documents. 
Public Constructors
NamedAction(NamedAction.NamedActionType actionType)
Creates action instance.
NamedAction(NamedAction.NamedActionType actionType, List<Action> subActions)
Creates action instance.
Public Methods
boolean equals(Object o)
String getActionString()
Internal PDF string describing this action.
NamedAction.NamedActionType getNamedActionType()
Type of this action.
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 NamedAction (NamedAction.NamedActionType actionType)

Creates action instance.

Parameters
actionType Type of the named action.

public NamedAction (NamedAction.NamedActionType actionType, List<Action> subActions)

Creates action instance.

Parameters
actionType Type of the named action.
subActions List of sub-actions of this action.

Public Methods

public boolean equals (Object o)

public String getActionString ()

Internal PDF string describing this action.

Returns
  • Named action string from PDF action dictionary.

public NamedAction.NamedActionType getNamedActionType ()

Type of this action.

Returns

public ActionType getType ()

Returns type of action to make down-casting easier.

Returns
  • Type of this action.

public int hashCode ()

public String toString ()