Package com.itextpdf.kernel.pdf.event
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
-
Constructor Summary
ModifierConstructorDescriptionprotected
Creates 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.
-
-
Constructor Details
-
AbstractPdfDocumentEvent
Creates an event of the specified type.- Parameters:
-
type
- the type of event
-
-
Method Details
-
getType
Returns the type of this event.- Returns:
- type of this event
-
getDocument
Retrieves the document associated with this event.- Returns:
-
PdfDocument
that triggered this event
-
setDocument
Sets the document associated with this event.- Parameters:
-
document
-PdfDocument
that triggered this event - Returns:
-
this
AbstractPdfDocumentEvent
instance
-