Class MetisReportHTMLBuilder
java.lang.Object
io.github.tonywasher.joceanus.metis.report.MetisReportHTMLBuilder
Build a report document.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionfinal classTable control class.static enumTable class. -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected static final StringThe id attribute.protected static final StringThe open accordion prefix.protected static final StringThe delayed reference header.protected static final StringThe filter reference header.protected static final StringThe id reference header.protected static final StringThe table reference header. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionCreate an embedded table.voidEmbed a table into the document.voidembedTable(MetisReportHTMLBuilder.MetisHTMLTable pTable, String pTitle) Embed a table into the document.Obtain the data formatter.Obtain the document.protected ElementgetLinkRow(String pTitle) Obtain the row that a link is in.voidmakeDelayLinkCell(MetisReportHTMLBuilder.MetisHTMLTable pControl, String pLink) Make Delayed Table link cell.voidmakeDelayLinkCell(MetisReportHTMLBuilder.MetisHTMLTable pControl, String pLink, String pName) Make Delayed Table link cell.voidmakeFilterLinkCell(MetisReportHTMLBuilder.MetisHTMLTable pControl, String pLink) Make Filter link cell.voidmakeFilterLinkCell(MetisReportHTMLBuilder.MetisHTMLTable pControl, String pLink, Object pValue) Make Table link cell.voidmakeFilterLinkCell(MetisReportHTMLBuilder.MetisHTMLTable pControl, String pLink, String pName) Make Table link cell.voidmakeStretchedTitleCell(MetisReportHTMLBuilder.MetisHTMLTable pControl, String pTitle) Create and append a standard title cell with title spanning 2 columns.voidmakeStretchedTotalCell(MetisReportHTMLBuilder.MetisHTMLTable pControl, Object pValue) Create and append a standard total cell with value spanning 2 columns.voidmakeStretchedValueCell(MetisReportHTMLBuilder.MetisHTMLTable pControl, Object pValue) Create and append a standard cell with value spanning 2 columns.voidmakeSubTitle(Element pBody, String pTitle) Make subtitle.voidmakeTableLinkCell(MetisReportHTMLBuilder.MetisHTMLTable pControl, String pLink) Make Table link cell.voidmakeTableLinkCell(MetisReportHTMLBuilder.MetisHTMLTable pControl, String pLink, String pName) Make Table link cell.voidMake title.voidMake two line title.voidCreate and append a standard empty title cell.voidmakeTitleCell(MetisReportHTMLBuilder.MetisHTMLTable pControl, String pTitle) Create and append a title cell.voidCreate and append a standard empty total cell.voidmakeTotalCell(MetisReportHTMLBuilder.MetisHTMLTable pControl, Object pValue) Create and append a total cell with value.voidCreate and append a standard empty cell.voidmakeValueCell(MetisReportHTMLBuilder.MetisHTMLTable pControl, Object pValue) Create and append a standard cell with value.(package private) voidSet prefix for owning link.voidStart a table header row.Start Report.voidStart a table data row.startTable(Element pBody) Start Table.voidStart a table total row.
-
Field Details
-
ATTR_ID
The id attribute.- See Also:
-
REF_TAB
The table reference header.- See Also:
-
REF_ID
The id reference header.- See Also:
-
REF_FILTER
The filter reference header.- See Also:
-
REF_DELAY
The delayed reference header.- See Also:
-
PFX_OPEN
The open accordion prefix.- See Also:
-
-
Constructor Details
-
MetisReportHTMLBuilder
Constructor.- Parameters:
pFormatter- the formatter- Throws:
OceanusException- on error
-
-
Method Details
-
getDataFormatter
Obtain the data formatter.- Returns:
- the formatter
-
getDocument
Obtain the document.- Returns:
- the document
-
makeValueCell
Create and append a standard empty cell.- Parameters:
pControl- the table control
-
makeTotalCell
Create and append a standard empty total cell.- Parameters:
pControl- the table control
-
makeTitleCell
Create and append a standard empty title cell.- Parameters:
pControl- the table control
-
makeValueCell
Create and append a standard cell with value.- Parameters:
pControl- the table controlpValue- the value
-
makeStretchedValueCell
Create and append a standard cell with value spanning 2 columns.- Parameters:
pControl- the table controlpValue- the value
-
makeTotalCell
Create and append a total cell with value.- Parameters:
pControl- the table controlpValue- the value
-
makeStretchedTotalCell
Create and append a standard total cell with value spanning 2 columns.- Parameters:
pControl- the table controlpValue- the value
-
makeTitleCell
Create and append a title cell.- Parameters:
pControl- the table controlpTitle- the title
-
makeStretchedTitleCell
Create and append a standard title cell with title spanning 2 columns.- Parameters:
pControl- the table controlpTitle- the title
-
makeTableLinkCell
Make Table link cell.- Parameters:
pControl- the table controlpLink- the link table name
-
makeTableLinkCell
public void makeTableLinkCell(MetisReportHTMLBuilder.MetisHTMLTable pControl, String pLink, String pName) Make Table link cell.- Parameters:
pControl- the table controlpLink- the link table namepName- the link table display name
-
makeDelayLinkCell
Make Delayed Table link cell.- Parameters:
pControl- the table controlpLink- the link table name
-
makeDelayLinkCell
public void makeDelayLinkCell(MetisReportHTMLBuilder.MetisHTMLTable pControl, String pLink, String pName) Make Delayed Table link cell.- Parameters:
pControl- the table controlpLink- the link table namepName- the link table display name
-
makeFilterLinkCell
Make Filter link cell.- Parameters:
pControl- the table controlpLink- the link table name
-
makeFilterLinkCell
public void makeFilterLinkCell(MetisReportHTMLBuilder.MetisHTMLTable pControl, String pLink, String pName) Make Table link cell.- Parameters:
pControl- the table controlpLink- the link table namepName- the link table display name
-
makeFilterLinkCell
public void makeFilterLinkCell(MetisReportHTMLBuilder.MetisHTMLTable pControl, String pLink, Object pValue) Make Table link cell.- Parameters:
pControl- the table controlpLink- the link table namepValue- the link table display value
-
startHdrRow
Start a table header row.- Parameters:
pControl- the table control
-
startRow
Start a table data row.- Parameters:
pControl- the table control
-
startTotalRow
Start a table total row.- Parameters:
pControl- the table control
-
startReport
Start Report.- Returns:
- the body
-
makeTitle
Make title.- Parameters:
pBody- the document bodypTitle- the title
-
makeTitle
Make two line title.- Parameters:
pBody- the document bodypTitle1- the first titlepTitle2- the second title
-
makeSubTitle
Make subtitle.- Parameters:
pBody- the document bodypTitle- the title
-
startTable
Start Table.- Parameters:
pBody- the document body- Returns:
- the table control
-
createEmbeddedTable
public MetisReportHTMLBuilder.MetisHTMLTable createEmbeddedTable(MetisReportHTMLBuilder.MetisHTMLTable pParent) Create an embedded table.- Parameters:
pParent- the parent element- Returns:
- the new table
-
embedTable
Embed a table into the document.- Parameters:
pTable- the table to embedpTitle- the title of the table
-
embedTable
Embed a table into the document.- Parameters:
pTable- the table to embed
-
getLinkRow
Obtain the row that a link is in.- Parameters:
pTitle- the title of the link- Returns:
- the row that contains the link
-
setPrefix
Set prefix for owning link.- Parameters:
pOwner- the owning linkpOpen- is the link open true/false
-