public interface LocationHistory
PDFViewerBean, an implementation of this interface is
created and is managed by PDFViewerBean while the document is
browsed. It can be used to update application level "Next"/"Prev" navigation
buttons along with a HistoryListener.
See jPDFViewerSamples/history/SimpleDocumentHistory.java for a
simple application with "Next"/"Prev" buttons. See
jPDFViewerSamples/history/MultipleDocumentHistory.java for a
sample application that maintains view history for multiple documents.
| Modifier and Type | Method and Description |
|---|---|
void |
clearNext()
Removes any subsequent document views.
|
boolean |
hasNext()
Returns true if there is a subsequent document view in the
LocationHistory. |
boolean |
hasPrevious()
Returns true if there is a previous document view in the
LocationHistory. |
void clearNext()
See jPDFViewerSamples.history.MultipleDocumentHistory
for an example of how this method is used.
boolean hasNext()
LocationHistory.boolean hasPrevious()
LocationHistory.