public class

PdfViewCtrlTabHostFragment2

extends PdfViewCtrlTabHostBaseFragment
implements PdfViewCtrlTabFragment2.TabListener
java.lang.Object
   ↳ Fragment
     ↳ com.pdftron.pdf.controls.PdfViewCtrlTabHostBaseFragment
       ↳ com.pdftron.pdf.controls.PdfViewCtrlTabHostFragment2
Known Direct Subclasses

Class Overview

The PdfViewCtrlTabHostFragment2 shows multiple PdfViewCtrlTabFragment2 in tab layout.

Summary

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
From class com.pdftron.pdf.controls.PdfViewCtrlTabHostBaseFragment
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)
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 toolbar, if available.
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.
[Expand]
Inherited Methods
From class com.pdftron.pdf.controls.PdfViewCtrlTabHostBaseFragment
From class java.lang.Object
From interface android.view.View.OnLayoutChangeListener
From interface android.view.View.OnSystemUiVisibilityChangeListener
From interface com.pdftron.pdf.controls.BookmarksTabLayout.BookmarksTabsListener
From interface com.pdftron.pdf.controls.PdfViewCtrlTabBaseFragment.TabListener
From interface com.pdftron.pdf.controls.SearchResultsView.SearchResultsListener
From interface com.pdftron.pdf.controls.ThumbnailsViewFragment.OnExportThumbnailsListener
From interface com.pdftron.pdf.controls.ThumbnailsViewFragment.OnThumbnailsEditAttemptWhileReadOnlyListener
From interface com.pdftron.pdf.controls.ThumbnailsViewFragment.OnThumbnailsViewDialogDismissListener
From interface com.pdftron.pdf.controls.UserCropDialogFragment.OnUserCropDialogDismissListener
From interface com.pdftron.pdf.controls.UserCropSelectionDialogFragment.UserCropSelectionDialogFragmentListener
From interface com.pdftron.pdf.dialog.BookmarksDialogFragment.BookmarksDialogListener
From interface com.pdftron.pdf.dialog.ViewModePickerDialogFragment.ViewModePickerDialogFragmentListener
From interface com.pdftron.pdf.tools.ToolManager.QuickMenuListener
From interface com.pdftron.pdf.utils.UserCropUtilities.AutoCropInBackgroundTask.AutoCropTaskListener

Public Constructors

public PdfViewCtrlTabHostFragment2 ()

Public Methods

public void addOnToolbarChangedListener (PdfViewCtrlTabHostFragment2.OnToolbarChangedListener listener)

Add listener to notify when the toolbar changes.

Parameters
listener to add

public void exitSearchMode ()

Exits the search mode.

public PdfViewCtrlTabFragment2 getCurrentPdfViewCtrlFragment ()

Returns the selected PdfViewCtrlTabBaseFragment.

Returns
  • The PdfViewCtrlTabBaseFragment

public String getCurrentToolbarTag ()

Gets the current active toolbar tag

Returns
  • the toolbar tag

public void hideToolbarWithTag (String toolbarTag)

Hides the toolbar with given toolbar tag. Must only be called after onCreate.

Parameters
toolbarTag the toolbar tag defined by the toolbar to hide

public void hideUI ()

Hides the UI.

public static PdfViewCtrlTabHostFragment2 newInstance (Bundle args)

Returns a new instance of the class

public void onBookmarksDialogDismissed (int tabIndex)

The overloaded implementation of onBookmarksDialogDismissed(int).

Parameters
tabIndex The index of selected tab when dismissed

public void onCreate (Bundle savedInstanceState)

The overload implementation of Fragment#onCreate(Bundle).

public void onCreateOptionsMenu (Menu menu, MenuInflater inflater)

The overload implementation of Fragment#onCreateOptionsMenu(Menu, MenuInflater).

public void onEditToolbarMenu ()

public void onInkEditSelected (Annot inkAnnot, int pageNum)

The overload implementation of onInkEditSelected(Annot, int).

Parameters
inkAnnot The annotation
pageNum The page number

public void onOpenAnnotationToolbar (ToolManager.ToolMode mode)

The overload implementation of onOpenAnnotationToolbar(ToolMode).

Parameters
mode The tool mode

public void onOpenEditToolbar (ToolManager.ToolMode mode)

The overload implementation of onOpenEditToolbar(ToolMode).

Parameters
mode The tool mode

public void onOpenTabSwitcher ()

public boolean onOptionsItemSelected (MenuItem item)

The overload implementation of Fragment#onOptionsItemSelected(MenuItem).

public void onSearchOptionSelected ()

public void onTabDocumentLoaded (String tag)

The overload implementation of onTabDocumentLoaded(String).

Parameters
tag The tab tab

public void onTabReselected (TabLayout.Tab tab)

public void onTabSingleTapConfirmed ()

The overload implementation of onTabSingleTapConfirmed().

public void onToggleReflow ()

The overload implementation of onToggleReflow().

public void openToolbarWithTag (String toolbarTag)

Switch to the toolbar with the given Toolbar tag. Must only be called after onCreate.

Parameters
toolbarTag the toolbar tag defined by the toolbar to open

public void removeOnToolbarChangedListener (PdfViewCtrlTabHostFragment2.OnToolbarChangedListener listener)

Parameters
listener to remove

public void removeTab (String filepath, String nextTabTagToSelect)

Removes the specified tab.

Parameters
filepath The file path
nextTabTagToSelect The tab tag of the tab that should be selected thereafter

public void selectToolbarButton (DefaultToolbars.ButtonId defaultToolbarId)

Selects the tool in the toolbar, if available. Must only be called after onViewCreated.

Parameters
defaultToolbarId the id used in the default toolbar

public void selectToolbarButton (int buttonId)

Selects the tool in the toolbar, if available. Must only be called after onViewCreated. Passing in -1 will clear the toolbar state and select pan tool.

Parameters
buttonId of the toolbar button

public void setToolbarsVisible (boolean visible, boolean animateBottomBar)

Handles changing the visibility of toolbars.

Parameters
visible True if toolbar is visible
animateBottomBar True if visibility should be changed with animation

public void showToolbarWithTag (String toolbarTag)

Show the toolbar with given toolbar tag. Must only be called after onCreate.

Parameters
toolbarTag the toolbar tag defined by the toolbar to show

public void showUI ()

Shows the UI.

public void startSearchMode ()

Starts the search mode.

public void toolbarButtonVisibility (ToolbarButtonType buttonType, boolean visibility)

Set visibility of annotation toolbar button

Parameters
buttonType of toolbar button
visibility of toolbar button to set

public void updateToolbarState ()

Updates the toolbar state depending on ToolManager state.