Class AbstractPdfDocumentEvent
java.lang.Object
com.itextpdf.kernel.pdf.event.AbstractPdfDocumentEvent
- All Implemented Interfaces:
IEvent
- Direct Known Subclasses:
PdfDocumentEvent, SignatureContainerGenerationEvent, SignatureDocumentClosingEvent
Describes abstract PDF document event of the specified type.
Use PdfDocument.dispatchEvent(AbstractPdfDocumentEvent) to fire an event
and PdfDocument.addEventHandler(String, AbstractPdfDocumentEventHandler)
to register AbstractPdfDocumentEventHandler handler for that type of event.
-
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedCreates an event of the specified type. -
Method Summary
Modifier and TypeMethodDescriptionRetrieves the document associated with this event.getType()Returns the type of this event.setDocument(PdfDocument document) Sets the document associated with this event.
-
Field Details
-
type
A type of event. -
document
-
-
Constructor Details
-
AbstractPdfDocumentEvent
Creates an event of the specified type.- Parameters:
type- the type of event
-
-
Method Details
-
getType
-
getDocument
Retrieves the document associated with this event.- Returns:
PdfDocumentthat triggered this event
-
setDocument
Sets the document associated with this event.- Parameters:
document-PdfDocumentthat triggered this event- Returns:
- this
AbstractPdfDocumentEventinstance
-