java.lang.Object | |
↳ | com.pdftron.pdf.widget.preset.component.PresetBarComponent |
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.
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
|
Creates a the default PresetBarComponent
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
|
Creates a PresetBarComponent
with a specific PresetBarView
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 |