java.lang.Object | |
↳ | com.pdftron.pdf.utils.PdfViewCtrlTabsManager |
Manager class for PDFView control tabs
Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
int | MAX_NUM_TABS_PHONE | The maximum number of tabs allowed to be opened at the same time in phone devices | |||||||||
int | MAX_NUM_TABS_TABLET | The maximum number of tabs allowed to be opened at the same time in tablet devices |
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
synchronized void |
addDocument(Context context, String filepath)
Adds a file path to the list of opened documents.
| ||||||||||
synchronized void |
addPdfViewCtrlTabInfo(Context context, String filepath, PdfViewCtrlTabInfo info)
Adds the PDFView control tab linked to the specified file path
| ||||||||||
void |
cleanup()
Cleans up resources.
| ||||||||||
synchronized void |
clearAllPdfViewCtrlTabInfo(Context context)
Removes all PDFView control tabs from the repository.
| ||||||||||
synchronized ArrayList<String> |
getDocuments(Context context)
Returns the path of all opened documents.
| ||||||||||
static PdfViewCtrlTabsManager | getInstance() | ||||||||||
String |
getLatestViewedTabTag(Context context)
Returns the file path of the PDFView control tab that was viewed most recently.
| ||||||||||
String |
getNewPath(String filepath)
Returns the most updated file path.
| ||||||||||
synchronized PdfViewCtrlTabInfo |
getPdfFViewCtrlTabInfo(Context context, String filepath)
Returns the PDFView control tab for the specified file path
| ||||||||||
synchronized void |
removeDocument(Context context, String filepath)
Removes a file path from the list of opened documents.
| ||||||||||
String |
removeOldestViewedTab(Context context)
Removes the PDFView control tab that was viewed least recently.
| ||||||||||
synchronized void |
removePdfViewCtrlTabInfo(Context context, String filepath)
Removes the PDFView control tab linked to the specified file path.
| ||||||||||
synchronized void |
updateDocumentOrder(Context context, List<String> fileTabs)
Updates the tab document ordering based on the given list of file tabs.
| ||||||||||
void |
updateLastViewedTabTimestamp(Context context, String filepath)
Updates when the PDFView control tab (linked to the specified file path) was viewed last time.
| ||||||||||
synchronized void |
updatePdfViewCtrlTabInfo(Context context, String oldFilepath, String newFilepath, String newFilename)
Updates a PDFView control tab.
| ||||||||||
void |
updateViewModeForTab(Context context, String filepath, PDFViewCtrl.PagePresentationMode mode)
Updates the view mode of the PDFView control tab linked to the specified file path.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
|
The maximum number of tabs allowed to be opened at the same time in phone devices
The maximum number of tabs allowed to be opened at the same time in tablet devices
Adds a file path to the list of opened documents.
context | The context |
---|---|
filepath | The file path |
Adds the PDFView control tab linked to the specified file path
context | The context |
---|---|
filepath | The file path |
info | The PdfViewCtrlTabInfo
|
Cleans up resources.
Removes all PDFView control tabs from the repository.
context | The context |
---|
Returns the path of all opened documents.
context | The context |
---|
Returns the file path of the PDFView control tab that was viewed most recently.
context | The context |
---|
Returns the most updated file path. The file path of a PDFView control tab can be changed
through updatePdfViewCtrlTabInfo(Context, String, String, String)
.
filepath | The file path |
---|
Returns the PDFView control tab for the specified file path
context | The context |
---|---|
filepath | The file path |
PdfViewCtrlTabInfo
for the specified file path
Removes a file path from the list of opened documents.
context | The context |
---|---|
filepath | The file path |
Removes the PDFView control tab that was viewed least recently.
context | The context |
---|
Removes the PDFView control tab linked to the specified file path.
context | The context |
---|---|
filepath | The file path |
Updates the tab document ordering based on the given list of file tabs.
Updates when the PDFView control tab (linked to the specified file path) was viewed last time.
context | The context |
---|---|
filepath | The file path |
Updates a PDFView control tab.
context | The context |
---|---|
oldFilepath | The file path linked to the desired PdfViewCtrlTabInfo |
newFilepath | The new file path that should be linked to the PdfViewCtrlTabInfo |
newFilename | The new file name for the PdfViewCtrlTabInfo
|
Updates the view mode of the PDFView control tab linked to the specified file path.
context | The context |
---|---|
filepath | The file path |
mode | The page presentation mode. |