public static interface

AnnotationToolbarComponent.AnnotationButtonClickListener

com.pdftron.pdf.widget.toolbar.component.AnnotationToolbarComponent.AnnotationButtonClickListener

Class Overview

Annotation button click listeners

Summary

Public Methods
abstract boolean onInterceptItemClick(ToolbarItem toolbarItem, MenuItem item)
Called when a annotation button has been invoked, right before any internal log is handled.
abstract void onPostItemClick(ToolbarItem toolbarItem, MenuItem item)
Called when an annotation button has been invoked, right after any internal logic is handled.
abstract void onPreItemClick(ToolbarItem toolbarItem, MenuItem item)
Called when an annotation button has been invoked, right before any internal logic is handled.

Public Methods

public abstract boolean onInterceptItemClick (ToolbarItem toolbarItem, MenuItem item)

Called when a annotation button has been invoked, right before any internal log is handled. If this method returns true, the button event is intercept and no other other callbacks will be executed.

Parameters
toolbarItem The toolbar item that was invoked
item The menu item that was invoked.
Returns
  • Return true to consume this click and prevent others from executing.

public abstract void onPostItemClick (ToolbarItem toolbarItem, MenuItem item)

Called when an annotation button has been invoked, right after any internal logic is handled.

Parameters
toolbarItem The toolbar item that was invoked
item The menu item that was invoked.

public abstract void onPreItemClick (ToolbarItem toolbarItem, MenuItem item)

Called when an annotation button has been invoked, right before any internal logic is handled.

Parameters
toolbarItem The toolbar item that was invoked
item The menu item that was invoked.