public interface ReportSource
Report.ReportSource.| Modifier and Type | Field and Description |
|---|---|
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
|
| 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.
|
static final int ERROR
static final int EOF
static final int PRINT
static final int PUSH
static final int POP
void open()
void close()
void rewind()
void save()
restore()void restore()
save()boolean hasNext()
advance(org.tentackle.swing.print.Report)int advance(Report report)
report - the Report requesting the preparationhasNext()int prepareIntro(Report report)
report - the reportint prepareTrailer(Report report)
report - the reportint prepareHeader(Report report)
report - the reportint prepareFooter(Report report)
report - the reportint prepareLine(Report report)
report - the reportint 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)Tentackle - a domain driven enterprise framework