Search in sources :

Example 1 with HtmlTableRenderer

use of org.jmesa.view.html.renderer.HtmlTableRenderer in project OpenClinica by OpenClinica.

the class SiteStatisticsTableFactory method configureColumns.

@Override
protected void configureColumns(TableFacade tableFacade, Locale locale) {
    tableFacade.setColumnProperties("name", "enrolled", "expectedTotalEnrollment", "percentage");
    ((HtmlTableRenderer) tableFacade.getTable().getTableRenderer()).setWidth("375px");
    Row row = tableFacade.getTable().getRow();
    configureColumn(row.getColumn("name"), reswords.getString("site"), null, null, false, true);
    configureColumn(row.getColumn("enrolled"), reswords.getString("enrolled"), null, null, false, true);
    configureColumn(row.getColumn("expectedTotalEnrollment"), reswords.getString("expected_enrollment"), null, null, false, true);
    configureColumn(row.getColumn("percentage"), reswords.getString("percentage"), new PercentageCellEditor(), null, false, true);
}
Also used : HtmlTableRenderer(org.jmesa.view.html.renderer.HtmlTableRenderer) Row(org.jmesa.view.component.Row)

Example 2 with HtmlTableRenderer

use of org.jmesa.view.html.renderer.HtmlTableRenderer in project OpenClinica by OpenClinica.

the class EventStatusStatisticsTableFactory method configureColumns.

@Override
protected void configureColumns(TableFacade tableFacade, Locale locale) {
    tableFacade.setColumnProperties("status", "studySubjects", "percentage");
    ((HtmlTableRenderer) tableFacade.getTable().getTableRenderer()).setWidth("375px");
    Row row = tableFacade.getTable().getRow();
    configureColumn(row.getColumn("status"), reswords.getString("event_status"), null, null, false, true);
    configureColumn(row.getColumn("studySubjects"), reswords.getString("n_events"), null, null, false, true);
    configureColumn(row.getColumn("percentage"), reswords.getString("percentage"), new PercentageCellEditor(), null, false, true);
}
Also used : HtmlTableRenderer(org.jmesa.view.html.renderer.HtmlTableRenderer) Row(org.jmesa.view.component.Row)

Example 3 with HtmlTableRenderer

use of org.jmesa.view.html.renderer.HtmlTableRenderer in project OpenClinica by OpenClinica.

the class StudyStatisticsTableFactory method configureColumns.

@Override
protected void configureColumns(TableFacade tableFacade, Locale locale) {
    tableFacade.setColumnProperties("name", "enrolled", "expectedTotalEnrollment", "percentage");
    ((HtmlTableRenderer) tableFacade.getTable().getTableRenderer()).setWidth("363px");
    Row row = tableFacade.getTable().getRow();
    configureColumn(row.getColumn("name"), reswords.getString("study"), null, null, false, true);
    configureColumn(row.getColumn("enrolled"), reswords.getString("enrolled"), null, null, false, true);
    configureColumn(row.getColumn("expectedTotalEnrollment"), reswords.getString("expected_enrollment"), null, null, false, true);
    configureColumn(row.getColumn("percentage"), reswords.getString("percentage"), new PercentageCellEditor(), null, false, true);
}
Also used : HtmlTableRenderer(org.jmesa.view.html.renderer.HtmlTableRenderer) Row(org.jmesa.view.component.Row)

Example 4 with HtmlTableRenderer

use of org.jmesa.view.html.renderer.HtmlTableRenderer in project OpenClinica by OpenClinica.

the class StudySubjectStatusStatisticsTableFactory method configureColumns.

@Override
protected void configureColumns(TableFacade tableFacade, Locale locale) {
    tableFacade.setColumnProperties("status", "studySubjects", "percentage");
    ((HtmlTableRenderer) tableFacade.getTable().getTableRenderer()).setWidth("350px");
    Row row = tableFacade.getTable().getRow();
    configureColumn(row.getColumn("status"), reswords.getString("study_subject_status"), null, null, false, true);
    configureColumn(row.getColumn("studySubjects"), reswords.getString("n_study_subjects"), null, null, false, true);
    configureColumn(row.getColumn("percentage"), reswords.getString("percentage"), new PercentageCellEditor(), null, false, true);
}
Also used : HtmlTableRenderer(org.jmesa.view.html.renderer.HtmlTableRenderer) Row(org.jmesa.view.component.Row)

Aggregations

Row (org.jmesa.view.component.Row)4 HtmlTableRenderer (org.jmesa.view.html.renderer.HtmlTableRenderer)4