|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Line
A line of information in a page of a report.
Method Summary | |
---|---|
Page |
getDetailPage()
Get the detail page if one exists. |
java.lang.Object |
getField(Column col)
|
Page |
getOwner()
|
Page |
openDetailPage()
This method signifies more detail is available for this line in a separate page. |
void |
setCategory(LineCategory category)
Instances of this class should record their category if they want to validate values of fields set with the setField() methods. |
void |
setField(Column col,
boolean value)
|
void |
setField(Column col,
double value)
|
void |
setField(Column col,
int value)
|
void |
setField(Column col,
java.lang.Object value)
Fields can be set on a line. |
void |
setOwner(Page page)
|
void |
setReport(Report report)
|
Methods inherited from interface com.jcoverage.reporting.Closeable |
---|
close, isClosed |
Method Detail |
---|
Page openDetailPage()
Page getDetailPage()
openDetailPage()
.
void setOwner(Page page)
Page getOwner()
void setReport(Report report)
void setField(Column col, java.lang.Object value) throws java.lang.IllegalArgumentException
fieldtype
- the name of the field type. This must be a valid type
with respect to this instance's LineCategory
.value
- the value of the field. Again, this must be of
the correct type as determined by the category.
java.lang.IllegalArgumentException
void setField(Column col, int value) throws java.lang.IllegalArgumentException
java.lang.IllegalArgumentException
void setField(Column col, double value) throws java.lang.IllegalArgumentException
java.lang.IllegalArgumentException
void setField(Column col, boolean value) throws java.lang.IllegalArgumentException
java.lang.IllegalArgumentException
java.lang.Object getField(Column col)
col
- the given column.
LineCategory
.void setCategory(LineCategory category)
setField()
methods.
Reports that are not derived from AbstractPage
, or
override AbstractPage.createLine(LineCategory)
should
always call this method on newly created Line
instances
they create.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |