Class LinkDocumentIdEvent
- java.lang.Object
-
- com.itextpdf.commons.actions.AbstractITextEvent
-
- com.itextpdf.commons.actions.AbstractITextConfigurationEvent
-
- com.itextpdf.kernel.actions.events.LinkDocumentIdEvent
-
- All Implemented Interfaces:
IEvent
public final class LinkDocumentIdEvent extends AbstractITextConfigurationEvent
An event allows to associate someSequenceId
withPdfDocument
.
-
-
Field Summary
Fields Modifier and Type Field Description private java.lang.ref.WeakReference<PdfDocument>
document
private java.lang.ref.WeakReference<SequenceId>
sequenceId
-
Constructor Summary
Constructors Constructor Description LinkDocumentIdEvent(PdfDocument document, AbstractIdentifiableElement identifiableElement)
Creates a new instance of the event associating providedPdfDocument
with the appropriateAbstractIdentifiableElement
.LinkDocumentIdEvent(PdfDocument document, SequenceId sequenceId)
Creates a new instance of the event associating providedPdfDocument
with the appropriateSequenceId
.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
doAction()
Defines an association betweenPdfDocument
andSequenceId
.-
Methods inherited from class com.itextpdf.commons.actions.AbstractITextConfigurationEvent
addEvent, addProcessor, getActiveProcessor, getEvents, getProcessors, registerInternalNamespace, removeProcessor
-
-
-
-
Field Detail
-
document
private final java.lang.ref.WeakReference<PdfDocument> document
-
sequenceId
private final java.lang.ref.WeakReference<SequenceId> sequenceId
-
-
Constructor Detail
-
LinkDocumentIdEvent
public LinkDocumentIdEvent(PdfDocument document, SequenceId sequenceId)
Creates a new instance of the event associating providedPdfDocument
with the appropriateSequenceId
.- Parameters:
document
- is a documentsequenceId
- is a general identifier to be associated with the document
-
LinkDocumentIdEvent
public LinkDocumentIdEvent(PdfDocument document, AbstractIdentifiableElement identifiableElement)
Creates a new instance of the event associating providedPdfDocument
with the appropriateAbstractIdentifiableElement
.- Parameters:
document
- is a documentidentifiableElement
- is an identifiable element to be associated with the document
-
-
Method Detail
-
doAction
public void doAction()
Defines an association betweenPdfDocument
andSequenceId
.- Specified by:
doAction
in classAbstractITextConfigurationEvent
-
-