|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
This interface is used to notify a host application of PDF document loading and saving as well as annotations adding or deleting within the document.
| Method Summary | |
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. |
| Method Detail |
public 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
InputStream
public void 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.public 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.
public 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 0
public void 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 deleted
public void 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
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||