Package com.pspdfkit.ui.toolbar
Class ContentEditingToolbar
-
- All Implemented Interfaces:
-
android.graphics.drawable.Drawable.Callback
,android.view.KeyEvent.Callback
,android.view.View.OnClickListener
,android.view.View.OnLongClickListener
,android.view.ViewManager
,android.view.ViewParent
,android.view.accessibility.AccessibilityEventSource
,com.pspdfkit.ui.special_mode.manager.ContentEditingManager.OnContentEditingContentChangeListener
,com.pspdfkit.undo.OnUndoHistoryChangeListener
public class ContentEditingToolbar extends ContextualToolbar<T> implements ContentEditingManager.OnContentEditingContentChangeListener, OnUndoHistoryChangeListener
Toolbar shown when pdf content is being edited.
-
-
Constructor Summary
Constructors Constructor Description ContentEditingToolbar(Context context)
ContentEditingToolbar(Context context, AttributeSet attrs)
ContentEditingToolbar(Context context, AttributeSet attrs, int defStyleAttr)
-
Method Summary
Modifier and Type Method Description boolean
isDraggable()
Returns true
when toolbar is draggable.void
bindController(ContentEditingController specialModeController)
Binds the special mode controller to this toolbar. void
unbindController()
Unbinds the bound controller (if any). boolean
isControllerBound()
Returns true
if the controller is bound.void
onUndoHistoryChanged(@NonNull() UndoManager undoManager)
Notifies the observer that the undo history has changed inside the undo manager. -
-
Constructor Detail
-
ContentEditingToolbar
ContentEditingToolbar(Context context)
-
ContentEditingToolbar
ContentEditingToolbar(Context context, AttributeSet attrs)
-
ContentEditingToolbar
ContentEditingToolbar(Context context, AttributeSet attrs, int defStyleAttr)
-
-
Method Detail
-
isDraggable
boolean isDraggable()
Returns
true
when toolbar is draggable.
-
bindController
void bindController(ContentEditingController specialModeController)
Binds the special mode controller to this toolbar.
- Parameters:
specialModeController
- Controller to bind to a toolbar.
-
unbindController
void unbindController()
Unbinds the bound controller (if any).
-
isControllerBound
boolean isControllerBound()
Returns
true
if the controller is bound.
-
onUndoHistoryChanged
void onUndoHistoryChanged(@NonNull() UndoManager undoManager)
Notifies the observer that the undo history has changed inside the undo manager.
- Parameters:
undoManager
- Undo manager this listener is registered to.
-
-
-
-