| java.lang.Object | |||
| ↳ | androidx.viewpager.widget.PagerAdapter | ||
| ↳ | com.pspdfkit.ui.ViewStatePagerAdapter | ||
| ↳ | com.pspdfkit.ui.PdfOutlineView.OutlinePagerAdapter | ||
A state pager adapter controlling the pager items (outline view and annotation list view) that saves and restores View states.
|
[Expand]
Inherited Constants | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
From class
androidx.viewpager.widget.PagerAdapter
| |||||||||||
| Public Constructors | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| OutlinePagerAdapter() | |||||||||||
| Public Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| int | getCount() | ||||||||||
| int | getItemPosition(Object object) | ||||||||||
| int |
getItemTabButtonId(int position)
Returns item tab button id.
| ||||||||||
| CharSequence | getPageTitle(int position) | ||||||||||
| int |
getPositionOfItemWithTabButtonId(int tabButtonId)
Returns the position of item with given tab button id.
| ||||||||||
| void |
onHide()
Called when outline list gets hidden.
| ||||||||||
| void |
onShow()
Called when outline list gets shown.
| ||||||||||
| void |
refreshItemsVisibility()
Refresh items visibility in the adapter.
| ||||||||||
| void |
setBookmarkEditingEnabled(boolean bookmarkEditingEnabled)
Enables or disables bookmark editing controls for the bookmarks list view.
| ||||||||||
| void |
setBookmarkRenamingEnabled(boolean bookmarkRenamingEnabled)
Enables or disables bookmark renaming.
| ||||||||||
| void |
setDocument(PdfDocument document, OutlinePagerBaseView.OnHideListener onHideListener)
Sets the document to the adapter.
| ||||||||||
| void |
setListedAnnotationTypes(EnumSet<AnnotationType> listedAnnotationTypes)
Set annotation types to be listed in the annotation list view.
| ||||||||||
| void |
setShowPageLabels(boolean showPageLabels)
Sets whether to show page labels or not.
| ||||||||||
| Protected Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| View |
createView(ViewGroup container, int position)
Creates the page for the given position to be attached to its container.
| ||||||||||
| void |
destroyView(ViewGroup container, int position, View view)
Removes a page for the given position.
| ||||||||||
|
[Expand]
Inherited Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
From class
com.pspdfkit.ui.ViewStatePagerAdapter
| |||||||||||
From class
androidx.viewpager.widget.PagerAdapter
| |||||||||||
From class
java.lang.Object
| |||||||||||
Returns item tab button id.
| position | Position of the desired tab button. |
|---|
Returns the position of item with given tab button id.
| tabButtonId | Tab button id we're looking for. |
|---|
Called when outline list gets hidden.
Called when outline list gets shown.
Refresh items visibility in the adapter.
Enables or disables bookmark editing controls for the bookmarks list view.
Enables or disables bookmark renaming.
Sets the document to the adapter.
| document | Document to be set. |
|---|---|
| onHideListener | Outline pager callbacks. |
Set annotation types to be listed in the annotation list view.
| listedAnnotationTypes | Annotation types to be listed in the view. |
|---|
Sets whether to show page labels or not.
| showPageLabels | true to show page labels, false otherwise.
|
|---|
Creates the page for the given position to be attached to its container.
| container | The containing View in which the page will be shown. |
|---|---|
| position | The page position to be instantiated. |
null.
Removes a page for the given position.
| container | The containing View from which the page will be removed. |
|---|---|
| position | The page position to be removed. |
| view | The page to be removed. |