Package net.sf.jasperreports.engine.fill
Class AbstractThreadSubreportRunner
java.lang.Object
net.sf.jasperreports.engine.fill.JRSubreportRunnable
net.sf.jasperreports.engine.fill.AbstractThreadSubreportRunner
- All Implemented Interfaces:
Runnable,JRSubreportRunner
- Direct Known Subclasses:
JRThreadSubreportRunner,ThreadExecutorSubreportRunner
public abstract class AbstractThreadSubreportRunner
extends JRSubreportRunnable
implements JRSubreportRunner
- Author:
- Lucian Chirita (lucianc@users.sourceforge.net)
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringstatic final Stringprotected final JRBaseFiller -
Constructor Summary
ConstructorsConstructorDescriptionAbstractThreadSubreportRunner(JRFillSubreport fillSubreport, JRBaseFiller subreportFiller) -
Method Summary
Modifier and TypeMethodDescriptionvoidabort()Aborts the current fill.voidcancel()Cancels the current fill process.protected abstract voiddoStart()resume()Resumes the filling of a subreport.voidrun()start()Starts to fill the subreport.voidsuspend()Suspends the current fill.protected JRSubreportRunResultMethods inherited from class net.sf.jasperreports.engine.fill.JRSubreportRunnable
isRunning, runResultMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.sf.jasperreports.engine.fill.JRSubreportRunner
isFilling, reset
-
Field Details
-
EXCEPTION_MESSAGE_KEY_THREAD_REPORT_RUNNER_WAIT_ERROR
- See Also:
-
EXCEPTION_MESSAGE_KEY_THREAD_SUBREPORT_RUNNER_WAIT_ERROR
- See Also:
-
subreportFiller
-
-
Constructor Details
-
AbstractThreadSubreportRunner
-
-
Method Details
-
start
Description copied from interface:JRSubreportRunnerStarts to fill the subreport.This method is always called by a thread owning the lock on the subreport filler.
- Specified by:
startin interfaceJRSubreportRunner- Returns:
- the result of the fill process
-
doStart
protected abstract void doStart() -
resume
Description copied from interface:JRSubreportRunnerResumes the filling of a subreport.This method is called after the fill has been suspended by
suspendand the subreport should continue on the new page.This method is always called by a thread owning the lock on the subreport filler.
- Specified by:
resumein interfaceJRSubreportRunner- Returns:
- the result of the fill process
-
waitResult
-
cancel
Description copied from interface:JRSubreportRunnerCancels the current fill process.This 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.
- Specified by:
cancelin interfaceJRSubreportRunner- Throws:
JRException
-
suspend
Description copied from interface:JRSubreportRunnerSuspends the current fill.This 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.
- Specified by:
suspendin interfaceJRSubreportRunner- Throws:
JRException
-
run
public void run()- Specified by:
runin interfaceRunnable- Overrides:
runin classJRSubreportRunnable
-
abort
public void abort()Description copied from interface:JRSubreportRunnerAborts the current fill.- Specified by:
abortin interfaceJRSubreportRunner
-