public interface IPDFListener
Modifier and Type | Method and Description |
---|---|
void |
afterDocClosed(PDFNotesBean notesBean)
This method is called by
PDFNotesBean after
the current document was closed (after the close method in the PDFNotesBean is called). |
void |
afterDocOpened(PDFNotesBean notesBean,
String docName,
File pdfFile)
This method is called by
PDFNotesBean when a
new document is loaded into the viewer. |
void |
afterDocSaved(PDFNotesBean notesBean,
String docName,
File pdfFile)
This method is called by
PDFNotesBean after
the current document has been saved. |
void |
annotAdded(PDFNotesBean notesBean,
Annotation newAnnot,
IPDFPage pdfPage,
int pageIndex)
This method is called by
PDFNotesBean after
a new annotation was added. |
void |
annotDeleted(PDFNotesBean notesBean,
Annotation annot,
int pageIndex)
This method is called by
PDFNotesBean after
an annotation was deleted. |
void |
annotModified(PDFNotesBean notesBean,
Annotation annot,
int pageIndex)
This method is called by
PDFNotesBean after
an annotation was modified. |
void afterDocOpened(PDFNotesBean notesBean, String docName, File pdfFile)
PDFNotesBean
when a
new document is loaded into the viewer. This interface is useful when the host application
displays additional information about the current document, such as the name of the file
in the title bar or a status bar.notesBean
- A reference to the PDFNotesBean object that holds the document.docName
- The name of the PDF document. The meaning of this name differs
according to how the document was opened.pdfFile
- If the document was opened from a file, this is a reference to the
File object. This parameter is null if the document was opened from a URL or from an
InputStreamvoid afterDocSaved(PDFNotesBean notesBean, String docName, File pdfFile)
PDFNotesBean
after
the current document has been saved.notesBean
- A reference to the PDFNotesBean object that holds the document.docName
- The name of the PDF document. The meaning of this name differs
according to how the document was opened.pdfFile
- The file that the document was saved to.void afterDocClosed(PDFNotesBean notesBean)
PDFNotesBean
after
the current document was closed (after the close method in the PDFNotesBean is called).notesBean
- A reference to the PDFNotesBean object that holds the document.void annotAdded(PDFNotesBean notesBean, Annotation newAnnot, IPDFPage pdfPage, int pageIndex)
PDFNotesBean
after
a new annotation was added.notesBean
- A reference to the PDFNotesBean object that holds the document.newAnnot
- the new annotationpdfPage
- the page where the new annotation was addedpageIndex
- the index of the page where the new annotation was added starting at 0void annotDeleted(PDFNotesBean notesBean, Annotation annot, int pageIndex)
PDFNotesBean
after
an annotation was deleted.notesBean
- A reference to the PDFNotesBean object that holds the document.annot
- the annotation that was deletedvoid annotModified(PDFNotesBean notesBean, Annotation annot, int pageIndex)
PDFNotesBean
after
an annotation was modified. An annotation is considered modified if it was moved or resized
on the page or if users opened the annotation properties dialog and hit save to close the dialog.
Note that it is possible that no property was actually edited.notesBean
- A reference to the PDFNotesBean object that holds the document.annot
- the annotation that was modified