public abstract class AbstractPdfDocumentEventHandler extends Object implements com.itextpdf.commons.actions.IEventHandler
Handles AbstractPdfDocumentEvent event fired by PdfDocument.dispatchEvent(AbstractPdfDocumentEvent).
Use PdfDocument.addEventHandler(String, AbstractPdfDocumentEventHandler) to register this handler for
specific type of event.
| Modifier | Constructor and Description |
|---|---|
protected |
AbstractPdfDocumentEventHandler()
Creates new
AbstractPdfDocumentEventHandler instance. |
| Modifier and Type | Method and Description |
|---|---|
AbstractPdfDocumentEventHandler |
addType(String type)
Adds new event type to handle by this
AbstractPdfDocumentEventHandler instance. |
protected abstract void |
onAcceptedEvent(AbstractPdfDocumentEvent event)
Handles the accepted event.
|
void |
onEvent(com.itextpdf.commons.actions.IEvent event) |
protected AbstractPdfDocumentEventHandler()
AbstractPdfDocumentEventHandler instance.
By default, this instance handles all types of the AbstractPdfDocumentEvent events. For specific types
handling, use addType(String) method.
public AbstractPdfDocumentEventHandler addType(String type)
AbstractPdfDocumentEventHandler instance.type - the AbstractPdfDocumentEvent type to handleAbstractPdfDocumentEventHandler instancepublic void onEvent(com.itextpdf.commons.actions.IEvent event)
onEvent in interface com.itextpdf.commons.actions.IEventHandlerprotected abstract void onAcceptedEvent(AbstractPdfDocumentEvent event)
event - AbstractPdfDocumentEvent to handleCopyright © 1998–2025 Apryse Group NV. All rights reserved.