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
public abstract class AbstractPdfDocumentEvent extends java.lang.Object implements IEvent
Describes abstract PDF document event of the specified type.Use
PdfDocument.dispatchEvent(AbstractPdfDocumentEvent)to fire an event andPdfDocument.addEventHandler(String, AbstractPdfDocumentEventHandler)to registerAbstractPdfDocumentEventHandlerhandler for that type of event.
-
-
Field Summary
Fields Modifier and Type Field Description private PdfDocumentdocumentprotected java.lang.StringtypeA type of event.
-
Constructor Summary
Constructors Modifier Constructor Description protectedAbstractPdfDocumentEvent(java.lang.String type)Creates an event of the specified type.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description PdfDocumentgetDocument()Retrieves the document associated with this event.java.lang.StringgetType()Returns the type of this event.AbstractPdfDocumentEventsetDocument(PdfDocument document)Sets the document associated with this event.
-
-
-
Field Detail
-
type
protected java.lang.String type
A type of event.
-
document
private PdfDocument document
-
-
Method Detail
-
getType
public java.lang.String getType()
Returns the type of this event.- Returns:
- type of this event
-
getDocument
public PdfDocument getDocument()
Retrieves the document associated with this event.- Returns:
PdfDocumentthat triggered this event
-
setDocument
public AbstractPdfDocumentEvent setDocument(PdfDocument document)
Sets the document associated with this event.- Parameters:
document-PdfDocumentthat triggered this event- Returns:
- this
AbstractPdfDocumentEventinstance
-
-