Search in sources :

Example 6 with HtmlBuilder

use of org.jmesa.view.html.HtmlBuilder in project OpenClinica by OpenClinica.

the class StatisticsView 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();
}
Also used : HtmlSnippets(org.jmesa.view.html.HtmlSnippets) HtmlBuilder(org.jmesa.view.html.HtmlBuilder)

Example 7 with HtmlBuilder

use of org.jmesa.view.html.HtmlBuilder in project OpenClinica by OpenClinica.

the class EventStatusView 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();
}
Also used : HtmlSnippets(org.jmesa.view.html.HtmlSnippets) HtmlBuilder(org.jmesa.view.html.HtmlBuilder)

Example 8 with HtmlBuilder

use of org.jmesa.view.html.HtmlBuilder in project OpenClinica by OpenClinica.

the class ListStudyView method customHeader.

private String customHeader() {
    HtmlBuilder html = new HtmlBuilder();
    html.tr(1).styleClass("header").width("100%").close();
    if (showTitle)
        html.td(0).style("border-bottom: 1px solid white;background-color:white;color:black;").align("center").close().append(resword.getString("subject_matrix")).tdEnd();
    html.trEnd(1);
    return html.toString();
}
Also used : HtmlBuilder(org.jmesa.view.html.HtmlBuilder)

Example 9 with HtmlBuilder

use of org.jmesa.view.html.HtmlBuilder in project OpenClinica by OpenClinica.

the class ListStudyView method render.

public Object render() {
    HtmlSnippets snippets = getHtmlSnippets();
    HtmlBuilder html = new HtmlBuilder();
    html.append(snippets.themeStart());
    html.append(snippets.tableStart());
    html.append(snippets.theadStart());
    html.append(customHeader());
    html.append(snippets.toolbar());
    html.append(snippets.header());
    html.append(snippets.filter());
    html.append(snippets.theadEnd());
    html.append(snippets.tbodyStart());
    setCustomCellEditors();
    html.append(snippets.body());
    html.append(snippets.tbodyEnd());
    html.append(snippets.footer());
    html.append(snippets.statusBar());
    html.append(snippets.tableEnd());
    html.append(snippets.themeEnd());
    html.append(snippets.initJavascriptLimit());
    return html.toString();
}
Also used : HtmlSnippets(org.jmesa.view.html.HtmlSnippets) HtmlBuilder(org.jmesa.view.html.HtmlBuilder)

Example 10 with HtmlBuilder

use of org.jmesa.view.html.HtmlBuilder in project OpenClinica by OpenClinica.

the class StudyStatisticsView 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();
}
Also used : HtmlSnippets(org.jmesa.view.html.HtmlSnippets) HtmlBuilder(org.jmesa.view.html.HtmlBuilder)

Aggregations

HtmlBuilder (org.jmesa.view.html.HtmlBuilder)53 HtmlSnippets (org.jmesa.view.html.HtmlSnippets)6 SyndEntryImpl (com.sun.syndication.feed.synd.SyndEntryImpl)1 SimpleDateFormat (java.text.SimpleDateFormat)1 ArrayList (java.util.ArrayList)1 List (java.util.List)1 StudyBean (org.akaza.openclinica.bean.managestudy.StudyBean)1 RuleActionBean (org.akaza.openclinica.domain.rule.action.RuleActionBean)1 ParticipantPortalRegistrar (org.akaza.openclinica.service.pmanage.ParticipantPortalRegistrar)1 BasicCellEditor (org.jmesa.view.editor.BasicCellEditor)1 CellEditor (org.jmesa.view.editor.CellEditor)1 HtmlColumn (org.jmesa.view.html.component.HtmlColumn)1 HtmlRow (org.jmesa.view.html.component.HtmlRow)1 HtmlTable (org.jmesa.view.html.component.HtmlTable)1