public interface HistoryListener
addHistoryListener
method. When a history event
occurs, the relevant method in the HistoryListener is invoked.Modifier and Type | Method and Description |
---|---|
void |
afterDocumentSet(PDFViewerBean viewerBean)
This method is called after a document is loaded in the PDFViewerBean.
|
void |
beforeDocumentSet(PDFViewerBean viewerBean)
This method is called before a document is loaded in the PDFViewerBean.
|
void |
locationChanged(PDFViewerBean viewerBean,
boolean newView)
This method is called when the location in a document is changed including when
a new view is added to the
LocationHistory . |
void |
nextDocument(PDFViewerBean viewerBean)
This method is called when a request has been made to go to the next Location, but
there are no subsequent views in the
LocationHistory of the current document. |
void |
previousDocument(PDFViewerBean viewerBean)
This method is called when a request has been made to go to the previous location, but
there are no previous views in the
LocationHistory of the current document. |
void locationChanged(PDFViewerBean viewerBean, boolean newView)
LocationHistory
. If it
is a new view, the newLocation flag will be set to true.viewerBean
- The PDFViewerBean component that this history listener is listening to.newView
- Flag indicating whether the new location is a new view.void previousDocument(PDFViewerBean viewerBean)
LocationHistory
of the current document.viewerBean
- The PDFViewerBean component that this history listener is listening to.void nextDocument(PDFViewerBean viewerBean)
LocationHistory
of the current document.viewerBean
- The PDFViewerBean component that this history listener is listening to.void beforeDocumentSet(PDFViewerBean viewerBean)
viewerBean
- The PDFViewerBean component that this history listener is listening to.void afterDocumentSet(PDFViewerBean viewerBean)
viewerBean
- The PDFViewerBean component that this history listener is listening to.