public abstract class AbstractPage extends java.lang.Object implements Page
Page.
Subclasses should override the instantiateLineForCategory(com.jcoverage.reporting.LineCategory) method to return Line
implementation instances on demand.| Modifier and Type | Field and Description |
|---|---|
(package private) java.util.List |
categories |
(package private) java.lang.String |
label |
(package private) java.util.Map |
lineSetsByCategory |
(package private) static org.apache.log4j.Logger |
logger |
(package private) Line |
masterLine |
(package private) Report |
report |
(package private) int |
state |
| Modifier | Constructor and Description |
|---|---|
protected |
AbstractPage(java.lang.String label) |
| Modifier and Type | Method and Description |
|---|---|
void |
addCategory(LineCategory category) |
void |
addLineReference(Line line,
LineCategory category)
Add a reference to a line.
|
void |
close()
Call this method to indicate that no further lines will be
created for this report and it can be considered immutable from
the point-of-view of formatting.
|
(package private) void |
close(java.util.Set set) |
Line |
createLine(LineCategory category)
Create a new line in the page.
|
LineCategory[] |
getCategories()
Subclasses should implemented this method to return the
categories of
lines that are applicable to this
report, or else make exclusive use of the addCategory(com.jcoverage.reporting.LineCategory)
method. |
java.lang.String |
getLabel() |
java.util.Set |
getLines(LineCategory category)
The page can 'contain' any number of categories (tables) which,
in turn, contain any number of lines.
|
(package private) java.util.Set |
getLineSetForCategory(LineCategory category) |
Line |
getMasterLine() |
protected Line |
instantiateLineForCategory(LineCategory category)
Subclasses should override this method to return
Line implementation instances on demand. |
boolean |
isClosed() |
Line |
lookupLineByField(LineCategory category,
Column column,
java.lang.Object value) |
void |
setMasterLine(Line masterLine) |
void |
setReport(Report report) |
static org.apache.log4j.Logger logger
java.lang.String label
java.util.List categories
Line masterLine
java.util.Map lineSetsByCategory
int state
protected AbstractPage(java.lang.String label)
java.util.Set getLineSetForCategory(LineCategory category)
public Line createLine(LineCategory category)
PagecreateLine in interface Pagepublic void addLineReference(Line line, LineCategory category)
PagePage.createLine(LineCategory) method, no connections are made
between this page and line.addLineReference in interface Pagepublic Line lookupLineByField(LineCategory category, Column column, java.lang.Object value)
lookupLineByField in interface Pagepublic java.util.Set getLines(LineCategory category)
Pageprotected Line instantiateLineForCategory(LineCategory category)
Line implementation instances on demand.category - guarenteed not to be nullpublic LineCategory[] getCategories()
lines that are applicable to this
report, or else make exclusive use of the addCategory(com.jcoverage.reporting.LineCategory)
method.getCategories in interface Pagepublic void addCategory(LineCategory category)
addCategory in interface Pagepublic void setMasterLine(Line masterLine)
setMasterLine in interface PagePage.getMasterLine()public Line getMasterLine()
getMasterLine in interface Pagepublic void close() throws ReportingException
close in interface CloseableReportingExceptionvoid close(java.util.Set set) throws ReportingException
ReportingException