1 28 package net.sf.jasperreports.engine.fill; 29 30 31 import org.apache.commons.javaflow.Continuation; 32 33 34 41 public class JRContinuationSubreportRunner extends JRSubreportRunnable implements JRSubreportRunner 42 { 43 private Continuation continuation; 44 45 public JRContinuationSubreportRunner(JRFillSubreport fillSubreport) 46 { 47 super(fillSubreport); 48 } 49 50 public boolean isFilling() 51 { 52 return continuation != null; 53 } 54 55 public JRSubreportRunResult start() 56 { 57 continuation = Continuation.startWith(this); 58 return runResult(); 59 } 60 61 public JRSubreportRunResult resume() 62 { 63 continuation = Continuation.continueWith(continuation); 64 return runResult(); 65 } 66 67 public void reset() 68 { 69 continuation = null; 70 } 71 72 public void cancel() 73 { 74 } 75 76 public void suspend() 77 { 78 Continuation.suspend(); 79 } 80 } 81 | Popular Tags |