Interface ActionResolver
-
- All Implemented Interfaces:
public interface ActionResolver
Action resolver for running a Action. Actions can be stored in annotations or outline elements and executed for any open document. While some actions require a displayed document (e.g. GoToAction) other actions may cause the user to leave the app (e.g. ).
-
-
Method Summary
Modifier and Type Method Description abstract void
executeAction(@NonNull() Action action)
Execute the given action
.abstract void
executeAction(@NonNull() Action action, @Nullable() ActionSender actionSender)
Execute the given action
.abstract void
addDocumentActionListener(@NonNull() DocumentActionListener listener)
Adds a DocumentActionListener that can handle actions bound to PDF objects. abstract void
removeDocumentActionListener(@NonNull() DocumentActionListener listener)
Removes a previously added DocumentActionListener that can handle actions bound to PDF objects. -
-
Method Detail
-
executeAction
abstract void executeAction(@NonNull() Action action)
Execute the given
action
.- Parameters:
action
- Action to be executed.
-
executeAction
abstract void executeAction(@NonNull() Action action, @Nullable() ActionSender actionSender)
Execute the given
action
.- Parameters:
action
- Action to be executed.actionSender
- Optional sender that triggered execution of this action.
-
addDocumentActionListener
abstract void addDocumentActionListener(@NonNull() DocumentActionListener listener)
Adds a DocumentActionListener that can handle actions bound to PDF objects. If the listener has already been added previously, this method will be a no-op. Adding
null
is not allowed, and will result in an exception.- Parameters:
listener
- DocumentActionListener that should be notified.
-
removeDocumentActionListener
abstract void removeDocumentActionListener(@NonNull() DocumentActionListener listener)
Removes a previously added DocumentActionListener that can handle actions bound to PDF objects. Upon calling this method the
listener
will no longer be notified of any changes. If the listener has not been added, this method will be a no-op. Addingnull
is not allowed, and will result in an exception.- Parameters:
listener
- DocumentActionListener that should be removed.
-
-
-
-