java.lang.Object | |||
↳ | TabLayout | ||
↳ | com.pdftron.pdf.controls.CustomFragmentTabLayout | ||
↳ | com.pdftron.pdf.controls.BookmarksTabLayout |
This class provides a tab layout having three tabs including document outline, user-defined bookmarks, and annotations in the document
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)
Sets the listener to
NavigationListDialogFragment.AnalyticsEventListener | ||||||||||
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
|
Class constructor
Class constructor
Class constructor
Adds a new tab.
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 |
Called when an annotation has been clicked.
annotation | The annotation |
---|---|
pageNum | The page number that holds the annotation |
Called when user bookmark's edittext gains or loses focus
isActive | EditText is in focus |
---|
Called when document annotations have been exported.
outputDoc | The PDFDoc containing the exported annotations |
---|
Called when a menu item has been clicked.
item | The menu item that was clicked |
---|
Called when an outline has been clicked.
parent | The parent bookmark if any |
---|---|
bookmark | The clicked bookmark |
Called when a user bookmark has been clicked.
pageNum | The page number |
---|
Sets the listener to NavigationListDialogFragment.AnalyticsEventListener
listener | The listener |
---|
Sets the listener
listener | The listener |
---|
context | The context |
---|---|
manager | The fragment manager |
containerId | The container ID |
Setups the class.
context | The context |
---|---|
manager | The fragment manager |
containerId | The container ID |
pdfViewCtrl | The PDFViewCtrl |
currentBookmark | The Bookmark
|