use of org.jmesa.view.html.HtmlBuilder in project OpenClinica by OpenClinica.
the class RssReaderServlet method errorFeedHtml.
String errorFeedHtml(String error) {
HtmlBuilder htmlBuilder = new HtmlBuilder();
htmlBuilder.h1().close().append(resword.getString("news")).h1End().ul().close();
htmlBuilder.li().close().append(resword.getString("couldnot_retrieve_news")).liEnd();
return htmlBuilder.ulEnd().toString();
}
use of org.jmesa.view.html.HtmlBuilder in project OpenClinica by OpenClinica.
the class StudySubjectStatusView method render.
public Object render() {
HtmlSnippets snippets = getHtmlSnippets();
HtmlBuilder html = new HtmlBuilder();
setCustomCellEditors();
html.append(snippets.themeStart());
html.append(snippets.tableStart());
html.append(snippets.theadStart());
html.append(customHeader());
html.append(snippets.filter());
html.append(snippets.header());
html.append(snippets.theadEnd());
html.append(snippets.tbodyStart());
html.append(snippets.body());
html.append(snippets.tbodyEnd());
html.append(snippets.footer());
html.append(snippets.tableEnd());
html.append(snippets.themeEnd());
html.append(snippets.initJavascriptLimit());
return html.toString();
}
use of org.jmesa.view.html.HtmlBuilder in project OpenClinica by OpenClinica.
the class EventStatusView method customHeader.
private String customHeader() {
HtmlBuilder html = new HtmlBuilder();
html.thead(0).tr(0).styleClass("header").close();
html.td(0).colspan("4").style("border-bottom: 1px solid white;background-color:white;color:grey;").align("center").close().append(resword.getString("study_progress")).tdEnd();
html.theadEnd(0);
return html.toString();
}
Aggregations