java.lang.Object | |||
↳ | Fragment | ||
↳ | com.pdftron.pdf.controls.PdfViewCtrlTabHostBaseFragment | ||
↳ | com.pdftron.pdf.controls.PdfViewCtrlTabHostFragment2 |
Known Direct Subclasses |
The PdfViewCtrlTabHostFragment2 shows multiple PdfViewCtrlTabFragment2
in tab layout.
Nested Classes | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
enum | PdfViewCtrlTabHostFragment2.AnnotationToolbarPosition | ||||||||||
interface | PdfViewCtrlTabHostFragment2.AppBarVisibilityListener | Callback interface to be invoked when AppBar visibility changes. | |||||||||
interface | PdfViewCtrlTabHostFragment2.OnPreBuildToolbarListener | Listener called prior to building a new AnnotationToolbar. | |||||||||
interface | PdfViewCtrlTabHostFragment2.OnToolbarChangedListener | Listener called when toolbar changes. | |||||||||
interface | PdfViewCtrlTabHostFragment2.ReflowControlListener | ||||||||||
interface | PdfViewCtrlTabHostFragment2.TabHostListener | Callback interface to be invoked when an interaction is needed. |
[Expand]
Inherited Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
com.pdftron.pdf.controls.PdfViewCtrlTabHostBaseFragment
|
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
PdfViewCtrlTabHostFragment2() |
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
void |
addOnPreBuildToolbarListener(PdfViewCtrlTabHostFragment2.OnPreBuildToolbarListener listener)
Add listener to notify prior to building a new AnnotationToolbar.
| ||||||||||
void |
addOnToolbarChangedListener(PdfViewCtrlTabHostFragment2.OnToolbarChangedListener listener)
Add listener to notify when the toolbar changes.
| ||||||||||
void |
exitSearchMode()
Exits the search mode.
| ||||||||||
PdfViewCtrlTabHostFragment2.AnnotationToolbarPosition |
getAnnotationToolbarPosition()
Gets the annotation toolbar position
Default to Top
| ||||||||||
PdfViewCtrlTabFragment2 |
getCurrentPdfViewCtrlFragment()
Returns the selected
PdfViewCtrlTabBaseFragment . | ||||||||||
String |
getCurrentToolbarTag()
Gets the current active toolbar tag
| ||||||||||
PresetBarComponent | getPresetBarComponent() | ||||||||||
void |
handleToolSwitcherClicked(View v)
Shows toolbar switcher when appropriate
| ||||||||||
void |
hideToolbarWithTag(String toolbarTag)
Hides the toolbar with given toolbar tag.
| ||||||||||
void |
hideUI()
Hides the UI.
| ||||||||||
static PdfViewCtrlTabHostFragment2 |
newInstance(Bundle args)
Returns a new instance of the class
| ||||||||||
void |
onBookmarksDialogDismissed(int tabIndex)
The overloaded implementation of
onBookmarksDialogDismissed(int) . | ||||||||||
void | onConfigurationChanged(Configuration newConfig) | ||||||||||
void | onCreate(Bundle savedInstanceState) | ||||||||||
boolean | onDrag(View v, DragEvent event) | ||||||||||
void | onEditToolbarMenu() | ||||||||||
void |
onInkEditSelected(Annot inkAnnot, int pageNum)
The overload implementation of
onInkEditSelected(Annot, int) . | ||||||||||
void |
onOpenAnnotationToolbar(ToolManager.ToolMode mode)
The overload implementation of
onOpenAnnotationToolbar(ToolMode) . | ||||||||||
void |
onOpenEditToolbar(ToolManager.ToolMode mode)
The overload implementation of
onOpenEditToolbar(ToolMode) . | ||||||||||
void | onOpenTabSwitcher() | ||||||||||
boolean | onOptionsItemSelected(MenuItem item) | ||||||||||
void | onSearchOptionSelected() | ||||||||||
void | onShowSnackbar(CharSequence text, int duration, CharSequence actionText, View.OnClickListener action) | ||||||||||
void | onStop() | ||||||||||
void | onSystemUiVisibilityChange(int visibility) | ||||||||||
void |
onTabDocumentLoaded(String tag)
The overload implementation of
onTabDocumentLoaded(String) . | ||||||||||
void | onTabReselected(TabLayout.Tab tab) | ||||||||||
void |
onTabSingleTapConfirmed()
The overload implementation of
onTabSingleTapConfirmed() . | ||||||||||
void |
onToggleReflow()
The overload implementation of
onToggleReflow() . | ||||||||||
void |
openToolbarWithTag(String toolbarTag)
Switch to the toolbar with the given Toolbar tag.
| ||||||||||
void |
removeOnPreBuildToolbarListener(PdfViewCtrlTabHostFragment2.OnPreBuildToolbarListener listener)
Remove
PdfViewCtrlTabHostFragment2.OnPreBuildToolbarListener listener. | ||||||||||
void |
removeOnToolbarChangedListener(PdfViewCtrlTabHostFragment2.OnToolbarChangedListener listener)
Remove
PdfViewCtrlTabHostFragment2.OnToolbarChangedListener listener. | ||||||||||
void |
removeTab(String filepath, String nextTabTagToSelect)
Removes the specified tab.
| ||||||||||
void |
selectToolbarButton(DefaultToolbars.ButtonId defaultToolbarId)
Selects the tool in the toolbar, if available.
| ||||||||||
void |
selectToolbarButton(int buttonId)
Selects the tool in the current toolbar, if available.
| ||||||||||
void | setAnnotationToolbarPosition(PdfViewCtrlTabHostFragment2.AnnotationToolbarPosition position) | ||||||||||
void |
setAnnotationToolbarVisible(boolean visible, boolean animated)
Sets the visibility of the annotation toolbar, and animates visibility change if specified.
| ||||||||||
void |
setAnnotationToolbars(List<AnnotationToolbarBuilder> toolbarBuilders)
Sets the toolbars of the current viewer.
| ||||||||||
void |
setIconColor(int buttonId, int iconColor)
Sets the color of the tool's icon.
| ||||||||||
void |
setSelectedIconColor(int buttonId, int iconColor)
Sets the color of the selected tool's icon.
| ||||||||||
void |
setToolbarSwitcherVisible(boolean visible)
Sets the toolbar switcher button visibility to View.VISIBLE or View.GONE.
| ||||||||||
void |
setToolbarsVisible(boolean visible, boolean animateBottomBar)
Handles changing the visibility of toolbars.
| ||||||||||
void |
setViewerOverlayUIVisible(boolean visible)
The implementation should change the visibility of top toolbar,
bottom navigation bar as well as system navigation bar.
| ||||||||||
void |
showToolbarWithTag(String toolbarTag)
Show the toolbar with given toolbar tag.
| ||||||||||
void |
showUI()
Shows the UI.
| ||||||||||
void |
startSearchMode()
Starts the search mode.
| ||||||||||
void |
toolbarButtonVisibility(ToolbarButtonType buttonType, boolean visibility)
Set visibility of annotation toolbar button
| ||||||||||
void |
updateToolbarState()
Updates the toolbar state depending on ToolManager state.
|
Add listener to notify prior to building a new AnnotationToolbar.
listener | to add |
---|
Add listener to notify when the toolbar changes.
listener | to add |
---|
Exits the search mode.
Gets the annotation toolbar position Default to Top
Returns the selected PdfViewCtrlTabBaseFragment
.
Gets the current active toolbar tag
Shows toolbar switcher when appropriate
v | the anchor view |
---|
Hides the toolbar with given toolbar tag. Must only be called after onCreate.
toolbarTag | the toolbar tag defined by the toolbar to hide |
---|
Hides the UI.
Returns a new instance of the class
The overloaded implementation of onBookmarksDialogDismissed(int)
.
tabIndex | The index of selected tab when dismissed |
---|
The overload implementation of onInkEditSelected(Annot, int)
.
inkAnnot | The annotation |
---|---|
pageNum | The page number |
The overload implementation of onOpenAnnotationToolbar(ToolMode)
.
mode | The tool mode |
---|
The overload implementation of onOpenEditToolbar(ToolMode)
.
mode | The tool mode |
---|
The overload implementation of onTabDocumentLoaded(String)
.
tag | The tab tab |
---|
Switch to the toolbar with the given Toolbar tag. Must only be called after onCreate.
toolbarTag | the toolbar tag defined by the toolbar to open |
---|
Remove PdfViewCtrlTabHostFragment2.OnPreBuildToolbarListener
listener.
listener | to remove |
---|
Remove PdfViewCtrlTabHostFragment2.OnToolbarChangedListener
listener.
listener | to remove |
---|
Removes the specified tab.
filepath | The file path |
---|---|
nextTabTagToSelect | The tab tag of the tab that should be selected thereafter |
Selects the tool in the toolbar, if available. Must only be called after onViewCreated.
defaultToolbarId | the id used in the default toolbar |
---|
Selects the tool in the current toolbar, if available. Must only be called after onViewCreated. Passing in -1 will clear the toolbar state and select pan tool.
buttonId | of the toolbar button |
---|
Sets the visibility of the annotation toolbar, and animates visibility change if specified.
Must only be called after onViewCreated
visible | whether the annotation toolbar should be visible |
---|---|
animated | whether changing the visibility should be animated |
Sets the toolbars of the current viewer. If the given toolbars are empty, the the annotation toolbar and toolbar switcher button will automatically hide. If the given toolbars are non-empty, then the annotation toolbar and toolbar switcher button will automatically show. The first toolbar will be selected after setting the toolbars
toolbarBuilders | the toolbars to set to the viewer. |
---|
Sets the color of the tool's icon.
Sets the color of the selected tool's icon.
Sets the toolbar switcher button visibility to View.VISIBLE or View.GONE.
visible | whether the toolbar switcher button should be visible |
---|
Handles changing the visibility of toolbars.
visible | True if toolbar is visible |
---|---|
animateBottomBar | True if visibility should be changed with animation |
The implementation should change the visibility of top toolbar, bottom navigation bar as well as system navigation bar.
Show the toolbar with given toolbar tag. Must only be called after onCreate.
toolbarTag | the toolbar tag defined by the toolbar to show |
---|
Shows the UI.
Starts the search mode.
Set visibility of annotation toolbar button
buttonType | of toolbar button |
---|---|
visibility | of toolbar button to set |
Updates the toolbar state depending on ToolManager state.