protected void linkToHistoricPage(Sink sink, String anchor) { sink.bold(); sink.text("["); sink.link("dashboard-report-historic.html#" + anchor); sink.text("Go to Historic page"); sink.link_(); sink.text("]"); sink.bold_(); }
protected void linkToTopPage(Sink sink) { sink.bold(); sink.text("["); sink.link("#top"); sink.text("Top"); sink.link_(); sink.text("]"); sink.bold_(); }
protected void sinkCellBoldWithLink(Sink sink, String text, String link) { // sink.tableCell(); sink.rawText("<td NOWRAP>"); sink.bold(); sink.link(link); sink.text(text); sink.link_(); sink.bold_(); sink.tableCell_(); }
protected void sinkHeaderBold(Sink sink, String header) { sink.tableHeaderCell(); sink.bold(); if (header != null && header.length() > 0) { sink.text(header); } else { sink.nonBreakingSpace(); } sink.bold_(); sink.tableHeaderCell_(); }
protected void sinkCellTabBold(Sink sink, String text, int nbTabulation) { sink.tableCell(); int loop = AbstractDashBoardGenerator.SPACE_NUMBER * nbTabulation; for (int i = 0; i < loop; i++) { sink.nonBreakingSpace(); } sink.bold(); sink.text(text); sink.bold_(); sink.tableCell_(); }
protected void sinkCellBold(Sink sink, String text) { sink.tableCell(); sink.bold(); if (text != null && text.length() > 0) { sink.text(text); } else { sink.nonBreakingSpace(); } sink.bold_(); sink.tableCell_(); }
protected void sinkCellTabBoldWithLink(Sink sink, String text, int nbTabulation, String link) { // sink.tableCell(); sink.rawText("<td NOWRAP>"); int loop = AbstractDashBoardGenerator.SPACE_NUMBER * nbTabulation; for (int i = 0; i < loop; i++) { sink.nonBreakingSpace(); } sink.bold(); sink.link(link); sink.text(text); sink.link_(); sink.bold_(); sink.tableCell_(); }