java.lang.Object | |||
↳ | Fragment | ||
↳ | com.pdftron.pdf.controls.PdfViewCtrlTabHostBaseFragment | ||
↳ | com.pdftron.pdf.controls.PdfViewCtrlTabHostFragment2 |
![]() |
The PdfViewCtrlTabHostFragment2 shows multiple PdfViewCtrlTabFragment2
in tab layout.
Nested Classes | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
interface | PdfViewCtrlTabHostFragment2.AppBarVisibilityListener | Callback interface to be invoked when AppBar visibility changes. | |||||||||
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 | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() |
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
PdfViewCtrlTabHostFragment2() |
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
void |
addOnToolbarChangedListener(PdfViewCtrlTabHostFragment2.OnToolbarChangedListener listener)
Add listener to notify when the toolbar changes.
| ||||||||||
void |
exitSearchMode()
Exits the search mode.
| ||||||||||
PdfViewCtrlTabFragment2 |
getCurrentPdfViewCtrlFragment()
Returns the selected
PdfViewCtrlTabBaseFragment . | ||||||||||
String |
getCurrentToolbarTag()
Gets the current active toolbar tag
| ||||||||||
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 |
onCreate(Bundle savedInstanceState)
The overload implementation of Fragment#onCreate(Bundle).
| ||||||||||
void |
onCreateOptionsMenu(Menu menu, MenuInflater inflater)
The overload implementation of Fragment#onCreateOptionsMenu(Menu, MenuInflater).
| ||||||||||
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)
The overload implementation of Fragment#onOptionsItemSelected(MenuItem).
| ||||||||||
void | onSearchOptionSelected() | ||||||||||
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 |
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 |
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 |
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 when the toolbar changes.
listener | to add |
---|
Exits the search mode.
Returns the selected PdfViewCtrlTabBaseFragment
.
Gets the current active toolbar tag
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 Fragment#onCreate(Bundle).
The overload implementation of Fragment#onCreateOptionsMenu(Menu, MenuInflater).
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 Fragment#onOptionsItemSelected(MenuItem).
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.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 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 |
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.