protected ViewableContainer createDetails(final ViewFactory factory) { final ViewableContainer details = factory.createReportDetails(); final List<LinkedSpecificationItem> items = getSortedItems(); addSectionedItems(factory, details, items); return details; }
@Override public void renderToStream(final OutputStream outputStream) { final ViewFactory factory = HtmlViewFactory.create(outputStream, getCssUrl()); final ViewableContainer view = factory.createView("", "Specification items by artifact type"); final ViewableContainer details = createDetails(factory); final ViewableContainer summary = createSummary(details, factory); view.add(details); view.add(summary); view.render(); }
protected Reportable createReport(final Trace trace, final ReportSettings settings) { Reportable report = null; final String format = settings.getOutputFormat(); switch (ReportFormat.parse(format)) { case PLAIN_TEXT: report = new PlainTextReport(trace, settings); break; case HTML: report = new HtmlReport(trace); break; default: throw new IllegalArgumentException( "Unable to create report with format \"" + format + "\""); } return report; }
@Override public void renderToStream(final OutputStream outputStream) { final ViewFactory factory = HtmlViewFactory.create(outputStream, getCssUrl()); final ViewableContainer view = factory.createView("", "Specification items by artifact type"); final ViewableContainer details = createDetails(factory); final ViewableContainer summary = createSummary(details, factory); view.add(details); view.add(summary); view.render(); }
protected Reportable createReport(final Trace trace, final ReportSettings settings) { Reportable report = null; final String format = settings.getOutputFormat(); switch (ReportFormat.parse(format)) { case PLAIN_TEXT: report = new PlainTextReport(trace, settings); break; case HTML: report = new HtmlReport(trace); break; default: throw new IllegalArgumentException( "Unable to create report with format \"" + format + "\""); } return report; }
protected ViewableContainer createDetails(final ViewFactory factory) { final ViewableContainer details = factory.createReportDetails(); final List<LinkedSpecificationItem> items = getSortedItems(); addSectionedItems(factory, details, items); return details; }