public class ReportSourceAdapter extends Object implements ReportSource
| Constructor and Description |
|---|
ReportSourceAdapter() |
| Modifier and Type | Method and Description |
|---|---|
int |
advance(Report report)
Prepare the data in this report source so that it can be printed.
|
void |
close()
Closes this report source and do any necessary cleanup.
|
boolean |
hasNext()
Checks if there is more data to print.
Notice that advance() may still be invoked even if hasNext() has returned false! Furthermore, advance() will not always be invoked after hasNext(), thus hasNext() must not change any state! |
void |
open()
Opens this report source.
|
int |
prepareFooter(Report report)
Prepares the footer panel for printing.
|
int |
prepareHeader(Report report)
Prepares the header panel for printing.
|
int |
prepareIntro(Report report)
Prepares the intro panel for printing.
|
int |
prepareLine(Report report)
Prepares the line panel for printing.
|
int |
prepareSubFooter(Report report,
int level)
Prepares the subfooter for printing.
|
int |
prepareSubHeader(Report report,
int level)
Prepares the subheader panel for printing.
|
int |
prepareTrailer(Report report)
Prepares the trailer panel for printing.
|
void |
restore()
Restores the last saved state.
|
void |
rewind()
Rewinds this report source.
|
void |
save()
Saves the current state.
|
public void open()
ReportSourceopen in interface ReportSourcepublic void close()
ReportSourceclose in interface ReportSourcepublic void rewind()
ReportSourcerewind in interface ReportSourcepublic void save()
ReportSourcesave in interface ReportSourceReportSource.restore()public void restore()
ReportSourcerestore in interface ReportSourceReportSource.save()public boolean hasNext()
ReportSourcehasNext in interface ReportSourceReportSource.advance(org.tentackle.swing.print.Report)public int advance(Report report)
ReportSourceadvance in interface ReportSourcereport - the Report requesting the preparationReportSource.hasNext()public int prepareIntro(Report report)
ReportSourceprepareIntro in interface ReportSourcereport - the reportpublic int prepareTrailer(Report report)
ReportSourceprepareTrailer in interface ReportSourcereport - the reportpublic int prepareHeader(Report report)
ReportSourceprepareHeader in interface ReportSourcereport - the reportpublic int prepareFooter(Report report)
ReportSourceprepareFooter in interface ReportSourcereport - the reportpublic int prepareLine(Report report)
ReportSourceprepareLine in interface ReportSourcereport - the reportpublic int prepareSubHeader(Report report, int level)
ReportSourceprepareSubHeader in interface ReportSourcereport - the reportlevel - the logical group level (starting at 1)public int prepareSubFooter(Report report, int level)
ReportSourceprepareSubFooter in interface ReportSourcereport - the reportlevel - the logical group level (starting at 1)Tentackle - distributed, domain- and model-driven