java.lang.Object
   ↳ TabLayout
     ↳ com.pdftron.pdf.controls.CustomFragmentTabLayout
       ↳ com.pdftron.pdf.controls.BookmarksTabLayout

Class Overview

This class provides a tab layout having three tabs including document outline, user-defined bookmarks, and annotations in the document

Summary

Nested Classes
interface BookmarksTabLayout.BookmarksTabsListener Callback interface to be invoked when an interaction is needed. 
Constants
String TAG_TAB_ANNOTATION
String TAG_TAB_BOOKMARK
String TAG_TAB_OUTLINE
Public Constructors
BookmarksTabLayout(Context context)
Class constructor
BookmarksTabLayout(Context context, AttributeSet attrs)
Class constructor
BookmarksTabLayout(Context context, AttributeSet attrs, int defStyleAttr)
Class constructor
Public Methods
void addTab(Tab tab, Class<?> _class, Bundle args)
Adds a new tab.
static int getNavigationId(Tab tab)
int getTabLayoutBackgroundDialog()
int getTabLayoutBackgroundSheet()
int getTabTintColorDialog()
int getTabTintColorSheet()
int getTabTintSelectedColorDialog()
int getTabTintSelectedColorSheet()
void onAnnotationClicked(Annot annotation, int pageNum)
Called when an annotation has been clicked.
void onEditBookmarkFocusChanged(boolean isActive)
Called when user bookmark's edittext gains or loses focus
void onExportAnnotations(PDFDoc outputDoc)
Called when document annotations have been exported.
boolean onMenuItemClicked(MenuItem item, Fragment fragment)
Called when a menu item has been clicked.
void onOutlineClicked(Bookmark parent, Bookmark bookmark)
Called when an outline has been clicked.
void onPrepareMenu(Menu menu, Fragment fragment)
void onTabSelected(Tab tab)
void onUserBookmarkClicked(int pageNum)
Called when a user bookmark has been clicked.
void setAnalyticsEventListener(NavigationListDialogFragment.AnalyticsEventListener listener)
void setBookmarksTabsListener(BookmarksTabLayout.BookmarksTabsListener listener)
Sets the listener
static void setDebug(boolean debug)
void setup(Context context, FragmentManager manager, int containerId)
void setup(Context context, FragmentManager manager, int containerId, PDFViewCtrl pdfViewCtrl, Bookmark currentBookmark)
Setups the class.
void setupWithViewPager(ViewPager viewPager)
[Expand]
Inherited Methods
From class com.pdftron.pdf.controls.CustomFragmentTabLayout
From class java.lang.Object
From interface com.pdftron.pdf.controls.AnnotationDialogFragment.AnnotationDialogListener
From interface com.pdftron.pdf.controls.OutlineDialogFragment.OutlineDialogListener
From interface com.pdftron.pdf.controls.UserBookmarkDialogFragment.UserBookmarkDialogListener

Constants

public static final String TAG_TAB_ANNOTATION

Constant Value: "tab-annotation"

public static final String TAG_TAB_BOOKMARK

Constant Value: "tab-bookmark"

public static final String TAG_TAB_OUTLINE

Constant Value: "tab-outline"

Public Constructors

public BookmarksTabLayout (Context context)

Class constructor

public BookmarksTabLayout (Context context, AttributeSet attrs)

Class constructor

public BookmarksTabLayout (Context context, AttributeSet attrs, int defStyleAttr)

Class constructor

Public Methods

public void addTab (Tab tab, Class<?> _class, Bundle args)

Adds a new tab.

Parameters
tab The tab
_class The class of fragment that should be attached to this tab
args The arguments that should be passed to the fragment

public static int getNavigationId (Tab tab)

public int getTabLayoutBackgroundDialog ()

public int getTabLayoutBackgroundSheet ()

public int getTabTintColorDialog ()

public int getTabTintColorSheet ()

public int getTabTintSelectedColorDialog ()

public int getTabTintSelectedColorSheet ()

public void onAnnotationClicked (Annot annotation, int pageNum)

Called when an annotation has been clicked.

Parameters
annotation The annotation
pageNum The page number that holds the annotation

public void onEditBookmarkFocusChanged (boolean isActive)

Called when user bookmark's edittext gains or loses focus

Parameters
isActive EditText is in focus

public void onExportAnnotations (PDFDoc outputDoc)

Called when document annotations have been exported.

Parameters
outputDoc The PDFDoc containing the exported annotations

public boolean onMenuItemClicked (MenuItem item, Fragment fragment)

Called when a menu item has been clicked.

Parameters
item The menu item that was clicked

public void onOutlineClicked (Bookmark parent, Bookmark bookmark)

Called when an outline has been clicked.

Parameters
parent The parent bookmark if any
bookmark The clicked bookmark

public void onPrepareMenu (Menu menu, Fragment fragment)

public void onTabSelected (Tab tab)

public void onUserBookmarkClicked (int pageNum)

Called when a user bookmark has been clicked.

Parameters
pageNum The page number

public void setAnalyticsEventListener (NavigationListDialogFragment.AnalyticsEventListener listener)

Parameters
listener The listener

public void setBookmarksTabsListener (BookmarksTabLayout.BookmarksTabsListener listener)

Sets the listener

Parameters
listener The listener

public static void setDebug (boolean debug)

public void setup (Context context, FragmentManager manager, int containerId)

Parameters
context The context
manager The fragment manager
containerId The container ID

public void setup (Context context, FragmentManager manager, int containerId, PDFViewCtrl pdfViewCtrl, Bookmark currentBookmark)

Setups the class.

Parameters
context The context
manager The fragment manager
containerId The container ID
pdfViewCtrl The PDFViewCtrl
currentBookmark The Bookmark

public void setupWithViewPager (ViewPager viewPager)