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_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 |
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
UserBookmarkDialogFragment() |
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
static UserBookmarkDialogFragment |
newInstance()
Returns a new instance of the class
| ||||||||||
void |
onCreate(Bundle savedInstanceState)
The overload implementation of DialogFragment#onCreate(Bundle).
| ||||||||||
View |
onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState)
The overload implementation of DialogFragment#onCreateView(LayoutInflater, ViewGroup, Bundle).
| ||||||||||
void |
onPause()
The overload implementation of DialogFragment#onPause().
| ||||||||||
void |
onResume()
The overload implementation of DialogFragment#onResume().
| ||||||||||
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 | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() | |||||||||||
![]() |
Bundle key to set the file path
Bundle key to specify whether the document is read only or not
The overload implementation of DialogFragment#onCreate(Bundle).
The overload implementation of DialogFragment#onCreateView(LayoutInflater, ViewGroup, Bundle).
The overload implementation of DialogFragment#onPause().
The overload implementation of DialogFragment#onResume().
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 |
---|