Package org.docx4j.events
Class Docx4jEvent
java.lang.Object
org.docx4j.events.Docx4jEvent
- Direct Known Subclasses:
EventFinished,StartEvent
-
Constructor Summary
ConstructorsConstructorDescriptionDocx4jEvent(JobIdentifier job) Use this to signal the start or end of a Job.Docx4jEvent(JobIdentifier job, PackageIdentifier pkgIdentifier) Use this to signal the start or end of work on a specific pkg in a job.Docx4jEvent(JobIdentifier job, PackageIdentifier pkgIdentifier, ProcessStep processStep) Use this to signal the start or end of a process step, on some pkg in some overall job.Docx4jEvent(PackageIdentifier pkgIdentifier) Use this to signal the start or end of work on a specific pkg, where you didn't define an overall job.Docx4jEvent(PackageIdentifier pkgIdentifier, ProcessStep processStep) Use this to signal the start or end of a process step, where you didn't define an overall job. -
Method Summary
Modifier and TypeMethodDescriptiongetJob()Retrieve the step in the process, if set.voidpublish()static Booleanstatic voidsetEventNotifier(net.engio.mbassy.bus.MBassador<Docx4jEvent> bus) voidsetProcessStep(ProcessStep processStep) static voidsetPublishAsynch(Boolean publishAsynch)
-
Constructor Details
-
Docx4jEvent
Use this to signal the start or end of a Job.- Parameters:
job-eventType-
-
Docx4jEvent
Use this to signal the start or end of work on a specific pkg in a job.- Parameters:
job-eventType-
-
Docx4jEvent
Use this to signal the start or end of work on a specific pkg, where you didn't define an overall job.- Parameters:
job-eventType-
-
Docx4jEvent
Use this to signal the start or end of a process step, where you didn't define an overall job.- Parameters:
job-eventType-
-
Docx4jEvent
Use this to signal the start or end of a process step, on some pkg in some overall job.- Parameters:
job-eventType-
-
-
Method Details
-
setEventNotifier
-
publishAsynch
-
setPublishAsynch
-
getPkgIdentifier
-
publish
public void publish() -
getJob
-
getProcessStep
Retrieve the step in the process, if set. You can create your own set of steps (for things which happen in your user code ie outside docx4j's source code) by implementing the ProcessStep interface.- Returns:
-
setProcessStep
-