public class

PresetBarComponent

extends Object
java.lang.Object
   ↳ com.pdftron.pdf.widget.preset.component.PresetBarComponent

Class Overview

Preset bar UI Component that is in charge of handling the preset bar bar logic and UI events. Used to show the current tool's available style presets.

Summary

Public Constructors
PresetBarComponent(LifecycleOwner lifecycleOwner, FragmentManager fragmentManager, PresetBarViewModel presetBarViewModel, ToolManagerViewModel toolManagerViewModel, SignatureViewModel signatureViewModel, ViewGroup container)
Creates a the default PresetBarComponent
PresetBarComponent(LifecycleOwner lifecycleOwner, FragmentManager fragmentManager, PresetBarViewModel presetBarViewModel, ToolManagerViewModel toolManagerViewModel, SignatureViewModel signatureViewModel, PresetBarView presetBarView)
Creates a PresetBarComponent with a specific PresetBarView
PresetBarComponent(LifecycleOwner lifecycleOwner, FragmentManager fragmentManager, PresetBarViewModel presetBarViewModel, ToolManagerViewModel toolManagerViewModel, SignatureViewModel signatureViewModel, PresetBarView presetBarView, HashSet<ToolbarButtonType> toolsToHidePresetBar)
Public Methods
void handleAnnotStyleDialogDismiss(AnnotStyleDialogFragment popupWindow)
void handleAnnotStyleDialogDismiss(AnnotStyleDialogFragment popupWindow, int index, String toolbarStyleId)
void setCompactMode(boolean compactMode)
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public PresetBarComponent (LifecycleOwner lifecycleOwner, FragmentManager fragmentManager, PresetBarViewModel presetBarViewModel, ToolManagerViewModel toolManagerViewModel, SignatureViewModel signatureViewModel, ViewGroup container)

Creates a the default PresetBarComponent

Parameters
lifecycleOwner the lifecycle owner that will handle this UI component's state
fragmentManager the fragment manager, which will be used to show the annot style dialog
presetBarViewModel the PresetBarViewModel that manages the preset bar state
toolManagerViewModel the ToolManagerViewModel that manages the current ToolManager
signatureViewModel the SignatureViewModel that manages the list of available signatures
container the container to add this PresetBarComponent

public PresetBarComponent (LifecycleOwner lifecycleOwner, FragmentManager fragmentManager, PresetBarViewModel presetBarViewModel, ToolManagerViewModel toolManagerViewModel, SignatureViewModel signatureViewModel, PresetBarView presetBarView)

Creates a PresetBarComponent with a specific PresetBarView

Parameters
lifecycleOwner the lifecycle owner that will handle this UI component's state
fragmentManager the fragment manager, which will be used to show the annot style dialog
presetBarViewModel the PresetBarViewModel that manages the preset bar state
toolManagerViewModel the ToolManagerViewModel that manages the current ToolManager
signatureViewModel the SignatureViewModel that manages the list of available signatures
presetBarView the view that contains the preset bar

public PresetBarComponent (LifecycleOwner lifecycleOwner, FragmentManager fragmentManager, PresetBarViewModel presetBarViewModel, ToolManagerViewModel toolManagerViewModel, SignatureViewModel signatureViewModel, PresetBarView presetBarView, HashSet<ToolbarButtonType> toolsToHidePresetBar)

Public Methods

public void handleAnnotStyleDialogDismiss (AnnotStyleDialogFragment popupWindow)

public void handleAnnotStyleDialogDismiss (AnnotStyleDialogFragment popupWindow, int index, String toolbarStyleId)

public void setCompactMode (boolean compactMode)