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.ContentEditingToolbar

Class Overview

Toolbar shown when pdf content is 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
ContentEditingToolbar(Context context)
ContentEditingToolbar(Context context, AttributeSet attrs)
ContentEditingToolbar(Context context, AttributeSet attrs, int defStyleAttr)
Public Methods
void bindController(ContentEditingController specialModeController)
Binds the special mode controller to this toolbar.
boolean isControllerBound()
Returns true if the controller is bound.
boolean isDraggable()
Returns true when toolbar is draggable.
void onUndoHistoryChanged(UndoManager undoManager)
Notifies the observer that the undo history has changed inside the undo manager.
void unbindController()
Unbinds the bound 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.ui.special_mode.manager.ContentEditingManager.OnContentEditingContentChangeListener
From interface com.pspdfkit.undo.OnUndoHistoryChangeListener

Public Constructors

public ContentEditingToolbar (Context context)

public ContentEditingToolbar (Context context, AttributeSet attrs)

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

Public Methods

public void bindController (ContentEditingController specialModeController)

Binds the special mode controller to this toolbar.

Parameters
specialModeController Controller to bind to a toolbar.

public boolean isControllerBound ()

Returns true if the controller is bound.

public boolean isDraggable ()

Returns true when toolbar is draggable.

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 ()

Unbinds the bound controller (if any).

Protected Methods

protected void handleMenuItemClick (ContextualToolbarMenuItem item)