|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface ReportSource
Datasource for a Report.
Reports are implemented as state machines and get the data
to be printed from a ReportSource.
| Field Summary | |
|---|---|
static int |
EOF
end of data: print "trailer" |
static int |
ERROR
some error, abort! |
static int |
POP
print subfooter, decrement level |
static int |
PRINT
print "data" |
static int |
PUSH
increment "level", print subheader |
| 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. |
| Field Detail |
|---|
static final int ERROR
static final int EOF
static final int PRINT
static final int PUSH
static final int POP
| Method Detail |
|---|
void open()
void close()
void rewind()
void save()
restore()void restore()
save()boolean hasNext()
advance(org.tentackle.print.Report)int advance(Report report)
report - the Report requesting the preparation
hasNext()int prepareIntro(Report report)
report - the report
int prepareTrailer(Report report)
report - the report
int prepareHeader(Report report)
report - the report
int prepareFooter(Report report)
report - the report
int prepareLine(Report report)
report - the report
int prepareSubHeader(Report report,
int level)
report - the reportlevel - the logical group level (starting at 1)
int prepareSubFooter(Report report,
int level)
report - 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 | |||||||||