Package net.sf.jasperreports.engine.fill
Class ThreadExecutorSubreportRunner
java.lang.Object
net.sf.jasperreports.engine.fill.JRSubreportRunnable
net.sf.jasperreports.engine.fill.AbstractThreadSubreportRunner
net.sf.jasperreports.engine.fill.ThreadExecutorSubreportRunner
- All Implemented Interfaces:
Runnable
,JRSubreportRunner
Thread-based
JRSubreportRunner
implementation.
The subreport fill is launched in a new thread which coordinates suspend/resume actions with the master thread.
- Author:
- Lucian Chirita (lucianc@users.sourceforge.net)
-
Field Summary
Fields inherited from class net.sf.jasperreports.engine.fill.AbstractThreadSubreportRunner
EXCEPTION_MESSAGE_KEY_THREAD_REPORT_RUNNER_WAIT_ERROR, EXCEPTION_MESSAGE_KEY_THREAD_SUBREPORT_RUNNER_WAIT_ERROR, subreportFiller
-
Constructor Summary
ConstructorsConstructorDescriptionThreadExecutorSubreportRunner
(JRFillSubreport fillSubreport, JRBaseFiller subreportFiller, Executor threadExecutor) -
Method Summary
Methods inherited from class net.sf.jasperreports.engine.fill.AbstractThreadSubreportRunner
abort, cancel, resume, run, start, suspend, waitResult
Methods inherited from class net.sf.jasperreports.engine.fill.JRSubreportRunnable
isRunning, runResult
-
Constructor Details
-
ThreadExecutorSubreportRunner
public ThreadExecutorSubreportRunner(JRFillSubreport fillSubreport, JRBaseFiller subreportFiller, Executor threadExecutor)
-
-
Method Details
-
isFilling
public boolean isFilling()Description copied from interface:JRSubreportRunner
Decides whether the subreport filling has ended or not.- Returns:
true
if and only if the subreport filling has not ended
-
doStart
protected void doStart()- Specified by:
doStart
in classAbstractThreadSubreportRunner
-
reset
public void reset()Description copied from interface:JRSubreportRunner
Resets the runner, preparing it for a new fill.
-