java.lang.Object | |||
↳ | DialogFragment | ||
↳ | com.pdftron.pdf.controls.NavigationListDialogFragment | ||
↳ | com.pdftron.pdf.controls.UserBookmarkDialogFragment |
The UserBookmarkDialogFragment shows a list of user-defined bookmarks that can be used to navigate
the document in the PDFViewCtrl
. This is different from OutlineDialogFragment
as user can add new custom bookmarks with any name at any time.
Modification to existing bookmarks is also supported.
Nested Classes | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
interface | UserBookmarkDialogFragment.UserBookmarkDialogListener | Callback interface to be invoked when an interaction is needed. |
Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
String | BUNDLE_ALLOW_EDITING | ||||||||||
String | BUNDLE_AUTO_SORT_BOOKMARKS | ||||||||||
String | BUNDLE_BOOKMARK_CREATION_ENABLED | ||||||||||
String | BUNDLE_EDITING_MODE | ||||||||||
String | BUNDLE_FILE_PATH | Bundle key to set the file path | |||||||||
String | BUNDLE_IS_READ_ONLY | Bundle key to specify whether the document is read only or not | |||||||||
int | CONTEXT_MENU_DELETE_ALL_BIT | ||||||||||
int | CONTEXT_MENU_DELETE_ITEM_BIT | ||||||||||
int | CONTEXT_MENU_EDIT_ITEM_BIT |
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
UserBookmarkDialogFragment() |
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
void | finishSearchView() | ||||||||||
String | getQueryText() | ||||||||||
boolean | handleBackPress() | ||||||||||
void | loadBookmarks() | ||||||||||
static UserBookmarkDialogFragment |
newInstance()
Returns a new instance of the class
| ||||||||||
void | onCreate(Bundle savedInstanceState) | ||||||||||
View | onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) | ||||||||||
void | onPause() | ||||||||||
boolean | onQueryTextChange(String newText) | ||||||||||
boolean | onQueryTextSubmit(String query) | ||||||||||
void | onResume() | ||||||||||
void | prepareOptionsMenu(Menu menu) | ||||||||||
void | resetBookmarkListFilter() | ||||||||||
UserBookmarkDialogFragment |
setAllowEditing(boolean allowEditing)
Sets if the user bookmark dialog allow modification to existing items
| ||||||||||
UserBookmarkDialogFragment |
setFilePath(String filePath)
Sets the file path.
| ||||||||||
UserBookmarkDialogFragment |
setPdfViewCtrl(PDFViewCtrl pdfViewCtrl)
Sets the
PDFViewCtrl | ||||||||||
UserBookmarkDialogFragment |
setReadOnly(boolean isReadOnly)
Sets if the document is read only
| ||||||||||
void |
setUserBookmarkListener(UserBookmarkDialogFragment.UserBookmarkDialogListener listener)
Sets the listener to
UserBookmarkDialogFragment |
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class com.pdftron.pdf.controls.NavigationListDialogFragment | |||||||||||
From class
java.lang.Object
| |||||||||||
From interface
com.pdftron.pdf.dialog.BookmarksDialogFragment.IBookmarksDialogSearchView
|
Bundle key to set the file path
Bundle key to specify whether the document is read only or not
Sets if the user bookmark dialog allow modification to existing items
allowEditing | True if allow modification to existing items |
---|
Sets the file path. If not specified it is extracted from PDFViewCtrl.
filePath | The file path |
---|
Sets if the document is read only
isReadOnly | True if the document is read only |
---|
Sets the listener to UserBookmarkDialogFragment
listener | The listener |
---|