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 registerAbstractPdfDocumentEventHandler
handler for that type of event.
-
-
Field Summary
Fields Modifier and Type Field Description private PdfDocument
document
protected java.lang.String
type
A type of event.
-
Constructor Summary
Constructors Modifier Constructor Description protected
AbstractPdfDocumentEvent(java.lang.String type)
Creates an event of the specified type.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description PdfDocument
getDocument()
Retrieves the document associated with this event.java.lang.String
getType()
Returns the type of this event.AbstractPdfDocumentEvent
setDocument(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:
PdfDocument
that triggered this event
-
setDocument
public AbstractPdfDocumentEvent setDocument(PdfDocument document)
Sets the document associated with this event.- Parameters:
document
-PdfDocument
that triggered this event- Returns:
- this
AbstractPdfDocumentEvent
instance
-
-