java.lang.Object
   ↳ android.view.View
     ↳ android.view.ViewGroup
       ↳ com.pspdfkit.ui.toolbar.ContextualToolbar<T extends com.pspdfkit.ui.special_mode.controller.base.SpecialModeController>
         ↳ com.pspdfkit.ui.toolbar.AnnotationEditingToolbar

Class Overview

Toolbar shown when annotations are being edited.

Summary

[Expand]
Inherited Constants
From class com.pspdfkit.ui.toolbar.ContextualToolbar
From class android.view.ViewGroup
From class android.view.View
[Expand]
Inherited Fields
From class com.pspdfkit.ui.toolbar.ContextualToolbar
From class android.view.View
Public Constructors
AnnotationEditingToolbar(Context context)
AnnotationEditingToolbar(Context context, AttributeSet attrs)
AnnotationEditingToolbar(Context context, AttributeSet attrs, int defStyleAttr)
Public Methods
void bindController(AnnotationEditingController controller)
Bind annotation editing controller.
void onAnnotationCreated(Annotation annotation)
Called when annotation has been created.
void onAnnotationRemoved(Annotation annotation)
Called when existing annotation has been removed.
void onAnnotationUpdated(Annotation annotation)
Called when existing annotation has changed.
void onChangeAnnotationEditingMode(AnnotationEditingController controller)
Called then annotation editing mode changes, meaning another annotation is being selected for editing.
void onEnterAnnotationEditingMode(AnnotationEditingController controller)
Called when annotation editing mode has been entered.
void onExitAnnotationEditingMode(AnnotationEditingController controller)
Called when annotation editing mode has been exited.
void onUndoHistoryChanged(UndoManager undoManager)
Notifies the observer that the undo history has changed inside the undo manager.
void unbindController()
Unbind current annotation editing controller (if any).
Protected Methods
void handleMenuItemClick(ContextualToolbarMenuItem item)
[Expand]
Inherited Methods
From class com.pspdfkit.ui.toolbar.ContextualToolbar
From class android.view.ViewGroup
From class android.view.View
From class java.lang.Object
From interface android.graphics.drawable.Drawable.Callback
From interface android.view.KeyEvent.Callback
From interface android.view.View.OnClickListener
From interface android.view.View.OnLongClickListener
From interface android.view.ViewManager
From interface android.view.ViewParent
From interface android.view.accessibility.AccessibilityEventSource
From interface com.pspdfkit.annotations.AnnotationProvider.OnAnnotationUpdatedListener
From interface com.pspdfkit.ui.special_mode.manager.AnnotationManager.OnAnnotationEditingModeChangeListener
From interface com.pspdfkit.undo.OnUndoHistoryChangeListener

Public Constructors

public AnnotationEditingToolbar (Context context)

public AnnotationEditingToolbar (Context context, AttributeSet attrs)

public AnnotationEditingToolbar (Context context, AttributeSet attrs, int defStyleAttr)

Public Methods

public void bindController (AnnotationEditingController controller)

Bind annotation editing controller.

Parameters
controller Annotation editing controller to be connected and synced with this toolbar.

public void onAnnotationCreated (Annotation annotation)

Called when annotation has been created.

public void onAnnotationRemoved (Annotation annotation)

Called when existing annotation has been removed.

public void onAnnotationUpdated (Annotation annotation)

Called when existing annotation has changed.

public void onChangeAnnotationEditingMode (AnnotationEditingController controller)

Called then annotation editing mode changes, meaning another annotation is being selected for editing.

Parameters
controller Controller for managing annotation editing.

public void onEnterAnnotationEditingMode (AnnotationEditingController controller)

Called when annotation editing mode has been entered.

Parameters
controller Controller for managing annotation editing.

public void onExitAnnotationEditingMode (AnnotationEditingController controller)

Called when annotation editing mode has been exited.

Parameters
controller Controller for managing annotation editing.

public void onUndoHistoryChanged (UndoManager undoManager)

Notifies the observer that the undo history has changed inside the undo manager.

Parameters
undoManager Undo manager this listener is registered to.

public void unbindController ()

Unbind current annotation editing controller (if any).

Protected Methods

protected void handleMenuItemClick (ContextualToolbarMenuItem item)