java.lang.Object | ||
↳ | DialogFragment | |
↳ | com.pdftron.pdf.controls.ThumbnailsViewFragment |
The ThumbnailsViewFragment uses the getThumbAsync(int)
to show thumbnails of the documents as a grid view. It supports add/remove/re-arrange pages,
as well as rotate/duplicate and export pages. Undo/Redo is also supported.
Nested Classes | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
enum | ThumbnailsViewFragment.FilterModes | ||||||||||
interface | ThumbnailsViewFragment.OnExportThumbnailsListener | Callback interface to be invoked when pages should be exported. | |||||||||
interface | ThumbnailsViewFragment.OnThumbnailsEditAttemptWhileReadOnlyListener | Callback interface to be invoked when the user attempts to edit pages while the document is read only. | |||||||||
interface | ThumbnailsViewFragment.OnThumbnailsViewDialogDismissListener | Callback interface to be invoked when the dialog fragment is dismissed. | |||||||||
class | ThumbnailsViewFragment.Theme | ||||||||||
enum | ThumbnailsViewFragment.ThumbnailsViewEditOptions |
Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
int | FILTER_MODE_ANNOTATED | ||||||||||
int | FILTER_MODE_BOOKMARKED | ||||||||||
int | FILTER_MODE_NORMAL | ||||||||||
String | TAG |
Fields | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
public static boolean | HANDLE_INTENT_IN_ACTIVITY |
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
ThumbnailsViewFragment() |
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
void |
addDocPages()
Adds document pages.
| ||||||||||
static Bundle | createThumbnailViewFragmentBundle(boolean readOnly, boolean editMode, int[] hideFilterModes, String[] hideEditOptions) | ||||||||||
ThumbnailsViewAdapter | getAdapter() | ||||||||||
static
|
getPages(PDFViewCtrl pdfViewCtrl, int mode) | ||||||||||
boolean | isEditing() | ||||||||||
static ThumbnailsViewFragment |
newInstance(boolean readOnly, boolean editMode, int[] hideFilterModes)
Returns a new instance of the class
| ||||||||||
static ThumbnailsViewFragment |
newInstance()
Returns a new instance of the class
| ||||||||||
static ThumbnailsViewFragment |
newInstance(boolean readOnly)
Returns a new instance of the class
| ||||||||||
static ThumbnailsViewFragment |
newInstance(boolean readOnly, boolean editMode)
Returns a new instance of the class
| ||||||||||
static ThumbnailsViewFragment |
newInstance(boolean readOnly, boolean editMode, int[] hideFilterModes, String[] hideEditOptions)
Returns a new instance of the class
| ||||||||||
void | onActivityResult(int requestCode, int resultCode, Intent data) | ||||||||||
void | onConfigurationChanged(Configuration newConfig) | ||||||||||
void | onCreate(Bundle savedInstanceState) | ||||||||||
View | onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) | ||||||||||
void | onDestroyView() | ||||||||||
void | onDismiss(DialogInterface dialog) | ||||||||||
void |
onPageMoved(int fromPageNum, int toPageNum)
The overload implementation of
onPageMoved(int, int) . | ||||||||||
void |
onPagesAdded(List<Integer> pageList)
The overload implementation of
onPagesAdded(List) . | ||||||||||
void |
onPagesMoved(List<Integer> fromPages, int toPageNum)
Called when pages were moved to a new position
| ||||||||||
void | onResume() | ||||||||||
void | onSaveInstanceState(Bundle outState) | ||||||||||
void | onStart() | ||||||||||
void | onStop() | ||||||||||
void | onViewCreated(View view, Bundle savedInstanceState) | ||||||||||
void | setActivePageLabelBackgroundColor(int activePageLabelBackgroundColorInt) | ||||||||||
void |
setItemChecked(int position)
Sets the specified item as checked.
| ||||||||||
void |
setOnExportThumbnailsListener(ThumbnailsViewFragment.OnExportThumbnailsListener listener)
Sets the OnThumbnailsViewDialogDismissListener listener
| ||||||||||
void |
setOnThumbnailsEditAttemptWhileReadOnlyListener(ThumbnailsViewFragment.OnThumbnailsEditAttemptWhileReadOnlyListener listener)
Sets the OnThumbnailsViewDialogDismissListener listener
| ||||||||||
void |
setOnThumbnailsViewDialogDismissListener(ThumbnailsViewFragment.OnThumbnailsViewDialogDismissListener listener)
Sets the OnThumbnailsViewDialogDismissListener listener
| ||||||||||
void | setPageLabelBackgroundColor(int pageLabelBackgroundColorInt) | ||||||||||
ThumbnailsViewFragment |
setPdfViewCtrl(PDFViewCtrl pdfViewCtrl)
Sets the PDFViewCtrl.
| ||||||||||
void |
setTitle(String title)
Sets the title.
| ||||||||||
void |
updateSpanCount(int count)
Updates span count.
| ||||||||||
void |
updateUndoRedoIcons()
Updates undo/redo icons
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
| |||||||||||
From interface
com.pdftron.pdf.controls.ThumbnailsViewAdapter.EditPagesListener
|
Adds document pages.
Returns a new instance of the class
Returns a new instance of the class
Returns a new instance of the class
Returns a new instance of the class
The overload implementation of onPageMoved(int, int)
.
fromPageNum | The page number from which the page moves |
---|---|
toPageNum | The page number to which the page moves |
The overload implementation of onPagesAdded(List)
.
pageList | The list of pages added to the document |
---|
Called when pages were moved to a new position
fromPages | The page numbers from which the pages move |
---|---|
toPageNum | The page number to which the page moves |
Sets the specified item as checked.
position | The position |
---|
Sets the OnThumbnailsViewDialogDismissListener listener
listener | The listener |
---|
Sets the OnThumbnailsViewDialogDismissListener listener
listener | The listener |
---|
Sets the OnThumbnailsViewDialogDismissListener listener
listener | The listener |
---|
Sets the PDFViewCtrl.
pdfViewCtrl | Sets the PDFViewCtrl |
---|
Sets the title.
title | The title |
---|
Updates span count.
count | The span count |
---|
Updates undo/redo icons