public abstract class AbstractThreadSubreportRunner extends JRSubreportRunnable implements JRSubreportRunner
| Modifier and Type | Field and Description |
|---|---|
static String |
EXCEPTION_MESSAGE_KEY_THREAD_REPORT_RUNNER_WAIT_ERROR |
static String |
EXCEPTION_MESSAGE_KEY_THREAD_SUBREPORT_RUNNER_WAIT_ERROR |
protected JRBaseFiller |
subreportFiller |
| Constructor and Description |
|---|
AbstractThreadSubreportRunner(JRFillSubreport fillSubreport,
JRBaseFiller subreportFiller) |
| Modifier and Type | Method and Description |
|---|---|
void |
cancel()
Cancels the current fill process.
|
protected abstract void |
doStart() |
JRSubreportRunResult |
resume()
Resumes the filling of a subreport.
|
void |
run() |
JRSubreportRunResult |
start()
Starts to fill the subreport.
|
void |
suspend()
Suspends the current fill.
|
protected JRSubreportRunResult |
waitResult() |
isRunning, runResultclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitisFilling, resetpublic static final String EXCEPTION_MESSAGE_KEY_THREAD_REPORT_RUNNER_WAIT_ERROR
public static final String EXCEPTION_MESSAGE_KEY_THREAD_SUBREPORT_RUNNER_WAIT_ERROR
protected final JRBaseFiller subreportFiller
public AbstractThreadSubreportRunner(JRFillSubreport fillSubreport, JRBaseFiller subreportFiller)
public JRSubreportRunResult start()
JRSubreportRunnerThis method is always called by a thread owning the lock on the subreport filler.
start in interface JRSubreportRunnerprotected abstract void doStart()
public JRSubreportRunResult resume()
JRSubreportRunner
This method is called after the fill has been suspended by
suspend and the subreport should continue on the new page.
This method is always called by a thread owning the lock on the subreport filler.
resume in interface JRSubreportRunnerprotected JRSubreportRunResult waitResult()
public void cancel()
throws JRException
JRSubreportRunnerThis method is called when a subreport is placed on a non splitting band and needs to rewind.
This method is always called by a thread owning the lock on the subreport filler.
cancel in interface JRSubreportRunnerJRExceptionpublic void suspend()
throws JRException
JRSubreportRunnerThis method is called when the subreport reaches the end of a page and needs to wait for the master to create a new page.
This method is always called by a thread owning the lock on the subreport filler.
suspend in interface JRSubreportRunnerJRExceptionpublic void run()
run in interface Runnablerun in class JRSubreportRunnableCopyright © 2017. All rights reserved.