Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Reporting API #61

Closed
wants to merge 3 commits into from
Closed

Reporting API #61

wants to merge 3 commits into from

Conversation

egonw
Copy link
Member

@egonw egonw commented Jul 21, 2015

  • separate feature
  • simple API to create simple report
  • initial HTML serializer (report.asHTML())

Example use (Groovy):

htmlFile = "/Reporting Manager/test.html"
if (ui.fileExists(htmlFile)) {
  ui.remove(htmlFile)
}

title = "eNanoMapper Mapping Report";
authors = "E. Willighagen";
aReport = report.createReport()
  .createHeader(authors,title)
  .createTitle(title)
  .createAuthors(authors)
  .startSubSection("Mappings")

aReport
  .startSubSubSection("Term")
  .startIndent()
  .addLink("http://enanomappr.org/ENM000x", "ENM000x").forceNewLine()
  .addText("Label: ", "BOLD")
  .addText("label").forceNewLine()
  .addText("Description: ", "BOLD")
  .addText("description")
  .endIndent();
html = report.asHTML(aReport)

ui.append(htmlFile, html)
ui.open(htmlFile)

I will probably write a LaTeX serializer too, which Jonathan suggested...

@jonalv
Copy link
Member

jonalv commented Jul 27, 2015

Cool feature. I am gonna leave this for gpox to merge.

@goglepox goglepox closed this Sep 16, 2015
@goglepox
Copy link
Contributor

Merged

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants