Package com.pspdfkit.annotations.actions
Class ActionSender
-
- All Implemented Interfaces:
public final class ActionSender
Object that triggered the execution of action, such as an annotation or a form element.
-
-
Field Summary
Fields Modifier and Type Field Description public final Annotation
annotation
public final FormElement
formElement
-
Constructor Summary
Constructors Constructor Description ActionSender(Annotation annotation)
Creates instance of action sender. ActionSender(FormElement formElement)
Creates instance of action sender.
-
Method Summary
Modifier and Type Method Description Annotation
getAnnotation()
The annotation that triggered action execution. FormElement
getFormElement()
The form element that triggered action execution. int
getPageIndex()
The page index of this action sender. boolean
equals(Object o)
int
hashCode()
-
-
Constructor Detail
-
ActionSender
ActionSender(Annotation annotation)
Creates instance of action sender.- Parameters:
annotation
- The annotation that triggered action execution.
-
ActionSender
ActionSender(FormElement formElement)
Creates instance of action sender.- Parameters:
formElement
- The form element that triggered action execution.
-
-
Method Detail
-
getAnnotation
@Nullable() Annotation getAnnotation()
The annotation that triggered action execution.
- Returns:
The annotation that triggered action execution,
null
if action was not triggered by annotation.
-
getFormElement
@Nullable() FormElement getFormElement()
The form element that triggered action execution.
- Returns:
The form element that triggered action execution,
null
if action was not triggered by form element.
-
getPageIndex
int getPageIndex()
The page index of this action sender.
- Returns:
Page number of this action sender or PAGE_NUMBER_NOT_SET if not set.
-
hashCode
int hashCode()
-
-
-
-