Package com.pspdfkit.annotations.actions
Class NamedAction
-
- All Implemented Interfaces:
public final class NamedAction extends Action
PDF action representing a special event. Examples are: go to next page, go to previous page, etc.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public enum
NamedAction.NamedActionType
Known types of named actions in PDF documents.
-
Field Summary
Fields Modifier and Type Field Description public final NamedAction.NamedActionType
namedActionType
-
Constructor Summary
Constructors Constructor Description NamedAction(NamedAction.NamedActionType actionType)
Creates action instance. NamedAction(NamedAction.NamedActionType actionType, List<Action> subActions)
Creates action instance.
-
Method Summary
Modifier and Type Method Description NamedAction.NamedActionType
getNamedActionType()
Type of this action. String
getActionString()
Internal PDF string describing this action. ActionType
getType()
Returns type of action to make down-casting easier. boolean
equals(Object o)
int
hashCode()
String
toString()
-
-
Constructor Detail
-
NamedAction
NamedAction(NamedAction.NamedActionType actionType)
Creates action instance.- Parameters:
actionType
- Type of the named action.
-
NamedAction
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.
-
-
Method Detail
-
getNamedActionType
@NonNull() NamedAction.NamedActionType getNamedActionType()
Type of this action.
- Returns:
NamedActionType describing the action.
-
getActionString
@NonNull() String getActionString()
Internal PDF string describing this action.
- Returns:
Named action string from PDF action dictionary.
-
getType
@NonNull() ActionType getType()
Returns type of action to make down-casting easier.
- Returns:
Type of this action.
-
hashCode
int hashCode()
-
-
-
-