|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.tentackle.print.ReportSourceAdapter
public class ReportSourceAdapter
Provides some default-implementations for a ReportSource Interface
| Field Summary |
|---|
| Fields inherited from interface org.tentackle.print.ReportSource |
|---|
EOF, ERROR, POP, PRINT, PUSH |
| Constructor Summary | |
|---|---|
ReportSourceAdapter()
|
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ReportSourceAdapter()
| Method Detail |
|---|
public void open()
ReportSource
open in interface ReportSourcepublic void close()
ReportSource
close in interface ReportSourcepublic void rewind()
ReportSource
rewind in interface ReportSourcepublic void save()
ReportSource
save in interface ReportSourceReportSource.restore()public void restore()
ReportSource
restore in interface ReportSourceReportSource.save()public boolean hasNext()
ReportSource
hasNext in interface ReportSourceReportSource.advance(org.tentackle.print.Report)public int advance(Report report)
ReportSource
advance in interface ReportSourcereport - the Report requesting the preparation
ReportSource.hasNext()public int prepareIntro(Report report)
ReportSource
prepareIntro in interface ReportSourcereport - the report
public int prepareTrailer(Report report)
ReportSource
prepareTrailer in interface ReportSourcereport - the report
public int prepareHeader(Report report)
ReportSource
prepareHeader in interface ReportSourcereport - the report
public int prepareFooter(Report report)
ReportSource
prepareFooter in interface ReportSourcereport - the report
public int prepareLine(Report report)
ReportSource
prepareLine in interface ReportSourcereport - the report
public int prepareSubHeader(Report report,
int level)
ReportSource
prepareSubHeader in interface ReportSourcereport - the reportlevel - the logical group level (starting at 1)
public int prepareSubFooter(Report report,
int level)
ReportSource
prepareSubFooter in interface ReportSourcereport - the reportlevel - the logical group level (starting at 1)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||