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
line s 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)
Page
createLine
in interface Page
public void addLineReference(Line line, LineCategory category)
Page
Page.createLine(LineCategory)
method, no connections are made
between this page and line.addLineReference
in interface Page
public Line lookupLineByField(LineCategory category, Column column, java.lang.Object value)
lookupLineByField
in interface Page
public java.util.Set getLines(LineCategory category)
Page
protected Line instantiateLineForCategory(LineCategory category)
Line
implementation instances on demand.category
- guarenteed not to be nullpublic LineCategory[] getCategories()
line
s that are applicable to this
report, or else make exclusive use of the addCategory(com.jcoverage.reporting.LineCategory)
method.getCategories
in interface Page
public void addCategory(LineCategory category)
addCategory
in interface Page
public void setMasterLine(Line masterLine)
setMasterLine
in interface Page
Page.getMasterLine()
public Line getMasterLine()
getMasterLine
in interface Page
public void close() throws ReportingException
close
in interface Closeable
ReportingException
void close(java.util.Set set) throws ReportingException
ReportingException