Package com.itextpdf.commons.actions
Class AbstractEventWrapper
- All Implemented Interfaces:
-
IEvent
- Direct Known Subclasses:
-
ConfirmedEventWrapper,ConfirmEvent
Base class to wrap events.
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedAbstractEventWrapper(AbstractProductProcessITextEvent event, EventConfirmationType confirmationType) Creates a wrapper for the event.protectedAbstractEventWrapper(SequenceId updatedSequenceId, AbstractProductProcessITextEvent event, EventConfirmationType confirmationType) Creates a wrapper of event associated withSequenceId. -
Method Summary
Modifier and TypeMethodDescriptionObtains the current event context class.getEvent()Obtains the wrapped event.Returns an event type.Methods inherited from class com.itextpdf.commons.actions.AbstractProductProcessITextEvent
getConfirmationType, getSequenceIdMethods inherited from class com.itextpdf.commons.actions.AbstractContextBasedITextEvent
setMetaInfoMethods inherited from class com.itextpdf.commons.actions.AbstractProductITextEvent
getProductData, getProductName
-
Constructor Details
-
AbstractEventWrapper
protected AbstractEventWrapper(AbstractProductProcessITextEvent event, EventConfirmationType confirmationType) Creates a wrapper for the event.- Parameters:
-
event- is aAbstractProductProcessITextEventto wrap -
confirmationType- event confirmation type
-
AbstractEventWrapper
protected AbstractEventWrapper(SequenceId updatedSequenceId, AbstractProductProcessITextEvent event, EventConfirmationType confirmationType) Creates a wrapper of event associated withSequenceId.- Parameters:
-
updatedSequenceId- is aSequenceIdfor the document. May be different with sequence id of original event -
event- is aAbstractProductProcessITextEventto wrap -
confirmationType- event confirmation type
-
-
Method Details
-
getEvent
Obtains the wrapped event.- Returns:
- wrapped event
-
getClassFromContext
Description copied from class:AbstractContextBasedITextEventObtains the current event context class.- Overrides:
-
getClassFromContextin classAbstractContextBasedITextEvent - Returns:
- context class
-
getEventType
Description copied from class:AbstractProductProcessITextEventReturns an event type.- Specified by:
-
getEventTypein classAbstractProductProcessITextEvent - Returns:
- event type
-