java.lang.Object
   ↳ Fragment
     ↳ com.pdftron.pdf.controls.PdfViewCtrlTabHostBaseFragment
       ↳ com.pdftron.pdf.controls.PdfViewCtrlTabHostFragment
Known Direct Subclasses

This class is deprecated.
use PdfViewCtrlTabHostFragment2 instead

The PdfViewCtrlTabHostFragment shows multiple PdfViewCtrlTabFragment in tab layout.

Summary

Nested Classes
interface PdfViewCtrlTabHostFragment.AppBarVisibilityListener Callback interface to be invoked when AppBar visibility changes. 
interface PdfViewCtrlTabHostFragment.ReflowControlListener  
interface PdfViewCtrlTabHostFragment.TabHostListener Callback interface to be invoked when an interaction is needed. 
[Expand]
Inherited Constants
From class com.pdftron.pdf.controls.PdfViewCtrlTabHostBaseFragment
Public Constructors
PdfViewCtrlTabHostFragment()
Public Methods
void exitSearchMode()
Exits the search mode.
PdfViewCtrlTabFragment getCurrentPdfViewCtrlFragment()
Returns the selected PdfViewCtrlTabBaseFragment.
boolean handleBackPressed()
Handles when back button is pressed.
void hideUI()
Hides the UI.
static PdfViewCtrlTabHostFragment newInstance(Bundle args)
Returns a new instance of the class
void onAnnotationToolbarClosed()
The overloaded implementation of onAnnotationToolbarClosed().
void onAnnotationToolbarShown()
Called when the annotation toolbar has been shown.
void onBookmarksDialogDismissed(int tabIndex)
The overloaded implementation of onBookmarksDialogDismissed(int).
void onConfigurationChanged(Configuration newConfig)
void onCreateOptionsMenu(Menu menu, MenuInflater inflater)
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).
boolean onOptionsItemSelected(MenuItem item)
boolean onQuickMenuClicked(QuickMenuItem menuItem)
The overloaded implementation of onQuickMenuClicked(QuickMenuItem).
void onQuickMenuDismissed()
The overloaded implementation of onQuickMenuDismissed().
void onQuickMenuShown()
The overloaded implementation of onQuickMenuShown().
void onSearchResultClicked(TextSearchResult result)
The overload implementation of onSearchResultClicked(TextSearchResult).
void onShowAnnotationToolbarByShortcut(int mode)
The overloaded implementation of onShowAnnotationToolbarByShortcut(int).
void onTabDocumentLoaded(String tag)
The overload implementation of onTabDocumentLoaded(String).
void onTabSingleTapConfirmed()
The overload implementation of onTabSingleTapConfirmed().
void onUndoRedoPopupClosed()
The overload implementation of onUndoRedoPopupClosed().
void restoreSavedMenu()
void setToolbarsVisible(boolean visible, boolean animateThumbSlider)
Handles changing the visibility of toolbars.
boolean showAnnotationToolbar(int mode, ToolManager.ToolMode toolMode)
void showUI()
Shows the UI.
void startSearchMode()
Starts the search mode.
[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.AnnotationToolbar.AnnotationToolbarListener
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 PdfViewCtrlTabHostFragment ()

Public Methods

public void exitSearchMode ()

Exits the search mode.

public PdfViewCtrlTabFragment getCurrentPdfViewCtrlFragment ()

Returns the selected PdfViewCtrlTabBaseFragment.

Returns
  • The PdfViewCtrlTabBaseFragment

public boolean handleBackPressed ()

Handles when back button is pressed.

Returns
  • Ture if the back event is handled

public void hideUI ()

Hides the UI.

public static PdfViewCtrlTabHostFragment newInstance (Bundle args)

Returns a new instance of the class

public void onAnnotationToolbarClosed ()

The overloaded implementation of onAnnotationToolbarClosed().

public void onAnnotationToolbarShown ()

Called when the annotation toolbar has been shown.

public void onBookmarksDialogDismissed (int tabIndex)

The overloaded implementation of onBookmarksDialogDismissed(int).

Parameters
tabIndex The index of selected tab when dismissed

public void onConfigurationChanged (Configuration newConfig)

public void onCreateOptionsMenu (Menu menu, MenuInflater inflater)

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 boolean onOptionsItemSelected (MenuItem item)

public boolean onQuickMenuClicked (QuickMenuItem menuItem)

The overloaded implementation of onQuickMenuClicked(QuickMenuItem).

Parameters
menuItem The quick menu item
Returns
  • True if handled

public void onQuickMenuDismissed ()

The overloaded implementation of onQuickMenuDismissed().

public void onQuickMenuShown ()

The overloaded implementation of onQuickMenuShown().

public void onSearchResultClicked (TextSearchResult result)

The overload implementation of onSearchResultClicked(TextSearchResult).

Parameters
result The text search result

public void onShowAnnotationToolbarByShortcut (int mode)

The overloaded implementation of onShowAnnotationToolbarByShortcut(int).

Parameters
mode The mode that annotation toolbar should start with. Possible values are START_MODE_NORMAL_TOOLBAR, START_MODE_EDIT_TOOLBAR, START_MODE_FORM_TOOLBAR

public void onTabDocumentLoaded (String tag)

The overload implementation of onTabDocumentLoaded(String).

Parameters
tag The tab tab

public void onTabSingleTapConfirmed ()

The overload implementation of onTabSingleTapConfirmed().

public void onUndoRedoPopupClosed ()

The overload implementation of onUndoRedoPopupClosed().

public void restoreSavedMenu ()

public void setToolbarsVisible (boolean visible, boolean animateThumbSlider)

Handles changing the visibility of toolbars.

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

public boolean showAnnotationToolbar (int mode, ToolManager.ToolMode toolMode)

public void showUI ()

Shows the UI.

public void startSearchMode ()

Starts the search mode.