Package net.sf.jasperreports.engine.fill
Class JRContinuationSubreportRunner
- java.lang.Object
-
- net.sf.jasperreports.engine.fill.JRSubreportRunnable
-
- net.sf.jasperreports.engine.fill.JRContinuationSubreportRunner
-
- All Implemented Interfaces:
java.lang.Runnable,JRSubreportRunner
public class JRContinuationSubreportRunner extends JRSubreportRunnable implements JRSubreportRunner
Implemetation ofJRSubreportRunnerusing Javaflow continuations.- Author:
- Lucian Chirita (lucianc@users.sourceforge.net)
-
-
Constructor Summary
Constructors Constructor Description JRContinuationSubreportRunner(JRFillSubreport fillSubreport)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidabort()Aborts the current fill.voidcancel()Cancels the current fill process.booleanisFilling()Decides whether the subreport filling has ended or not.voidreset()Resets the runner, preparing it for a new fill.JRSubreportRunResultresume()Resumes the filling of a subreport.JRSubreportRunResultstart()Starts to fill the subreport.voidsuspend()Suspends the current fill.-
Methods inherited from class net.sf.jasperreports.engine.fill.JRSubreportRunnable
isRunning, run, runResult
-
-
-
-
Constructor Detail
-
JRContinuationSubreportRunner
public JRContinuationSubreportRunner(JRFillSubreport fillSubreport)
-
-
Method Detail
-
isFilling
public boolean isFilling()
Description copied from interface:JRSubreportRunnerDecides whether the subreport filling has ended or not.- Specified by:
isFillingin interfaceJRSubreportRunner- Returns:
trueif and only if the subreport filling has not ended
-
start
public JRSubreportRunResult 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
-
resume
public JRSubreportRunResult 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
-
reset
public void reset()
Description copied from interface:JRSubreportRunnerResets the runner, preparing it for a new fill.- Specified by:
resetin interfaceJRSubreportRunner
-
cancel
public void 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
-
suspend
@continuable public void 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
-
abort
public void abort()
Description copied from interface:JRSubreportRunnerAborts the current fill.- Specified by:
abortin interfaceJRSubreportRunner
-
-