|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.jcoverage.reporting.AbstractPage
This class provides a skeletal implementation of a Page
.
Subclasses should override the instantiateLineForCategory(com.jcoverage.reporting.LineCategory)
method to return Line
implementation instances on demand.
Field Summary | |
(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
|
Constructor Summary | |
protected |
AbstractPage(java.lang.String label)
|
Method Summary | |
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)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
static org.apache.log4j.Logger logger
java.lang.String label
Report report
java.util.List categories
Line masterLine
java.util.Map lineSetsByCategory
int state
Constructor Detail |
protected AbstractPage(java.lang.String label)
Method Detail |
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
getLines
in interface 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 setReport(Report report)
setReport
in interface Page
public void close() throws ReportingException
close
in interface Closeable
ReportingException
public boolean isClosed()
isClosed
in interface Closeable
public java.lang.String getLabel()
getLabel
in interface Page
void close(java.util.Set set) throws ReportingException
ReportingException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |