public static interface

ToolManager.BasicAnnotationListener

com.pdftron.pdf.tools.ToolManager.BasicAnnotationListener
Known Indirect Subclasses

Class Overview

This interface can be used to monitor basic annotation events such as selected/unselected.

Summary

Public Methods
abstract void onAnnotationSelected(Annot annot, int pageNum)
Called when an annotation has been selected.
abstract void onAnnotationUnselected()
Called when an annotation has been unselected.
abstract boolean onInterceptAnnotationHandling(Annot annot, Bundle extra, ToolManager.ToolMode toolMode)
Intercept tool's response to user actions (such as clicking on links, clicking on form widget, or about to change annotation properties etc.) If handled, tool will stop default logic.
abstract boolean onInterceptDialog(AlertDialog dialog)
This method is deprecated. see ToolManager.DialogListener

Public Methods

public abstract void onAnnotationSelected (Annot annot, int pageNum)

Called when an annotation has been selected.

Parameters
annot The selected annotation
pageNum The page number where the annotation is on

public abstract void onAnnotationUnselected ()

Called when an annotation has been unselected.

public abstract boolean onInterceptAnnotationHandling (Annot annot, Bundle extra, ToolManager.ToolMode toolMode)

Intercept tool's response to user actions (such as clicking on links, clicking on form widget, or about to change annotation properties etc.) If handled, tool will stop default logic.

Parameters
annot annotation
extra extra information
toolMode tool mode that handles annotation
Returns
  • true then intercept the subclass function, false otherwise

public abstract boolean onInterceptDialog (AlertDialog dialog)

This method is deprecated.
see ToolManager.DialogListener

Intercept handling of dialog

Parameters
dialog the dialog about to show up
Returns
  • true if intercept the subclass function, false otherwise