Search in sources :

Example 6 with DateCellEditor

use of org.jmesa.view.editor.DateCellEditor in project OpenClinica by OpenClinica.

the class AuditUserLoginTableFactory method configureExportColumns.

@Override
protected void configureExportColumns(TableFacade tableFacade, Locale locale) {
    tableFacade.setColumnProperties("userName", "loginAttemptDate", "loginStatus");
    Row row = tableFacade.getTable().getRow();
    configureColumn(row.getColumn("userName"), "User Name", null, null);
    configureColumn(row.getColumn("loginAttemptDate"), "Login Attempt Date", new DateCellEditor("yyyy-MM-dd HH:mm:ss"), null);
    configureColumn(row.getColumn("loginStatus"), "Login Status", null, new AvailableDroplistFilterEditor());
}
Also used : Row(org.jmesa.view.component.Row) DateCellEditor(org.jmesa.view.editor.DateCellEditor)

Example 7 with DateCellEditor

use of org.jmesa.view.editor.DateCellEditor in project OpenClinica by OpenClinica.

the class StudyAuditLogTableFactory method configureColumns.

@Override
protected void configureColumns(TableFacade tableFacade, Locale locale) {
    tableFacade.setColumnProperties("studySubject.label", "studySubject.secondaryLabel", "studySubject.oid", "subject.dateOfBirth", "subject.uniqueIdentifier", "studySubject.owner", "studySubject.status", "actions");
    Row row = tableFacade.getTable().getRow();
    configureColumn(row.getColumn("studySubject.label"), resword.getString("study_subject_ID"), null, null);
    configureColumn(row.getColumn("studySubject.secondaryLabel"), resword.getString("secondary_subject_ID"), null, null);
    configureColumn(row.getColumn("studySubject.oid"), resword.getString("study_subject_oid"), null, null);
    configureColumn(row.getColumn("subject.dateOfBirth"), resword.getString("date_of_birth"), new DateCellEditor(getDateFormat()), null);
    configureColumn(row.getColumn("subject.uniqueIdentifier"), resword.getString("person_ID"), null, null);
    configureColumn(row.getColumn("studySubject.owner"), resword.getString("created_by"), new OwnerCellEditor(), null, true, false);
    configureColumn(row.getColumn("studySubject.status"), resword.getString("status"), new StatusCellEditor(), new StatusDroplistFilterEditor());
    String actionsHeader = resword.getString("actions") + "           ";
    configureColumn(row.getColumn("actions"), actionsHeader, new ActionsCellEditor(), new DefaultActionsEditor(locale), true, false);
}
Also used : DefaultActionsEditor(org.akaza.openclinica.control.DefaultActionsEditor) Row(org.jmesa.view.component.Row) DateCellEditor(org.jmesa.view.editor.DateCellEditor)

Aggregations

DateCellEditor (org.jmesa.view.editor.DateCellEditor)7 Row (org.jmesa.view.component.Row)5 DefaultActionsEditor (org.akaza.openclinica.control.DefaultActionsEditor)4 HtmlColumn (org.jmesa.view.html.component.HtmlColumn)2 HtmlRow (org.jmesa.view.html.component.HtmlRow)2 Locale (java.util.Locale)1 ResourceBundle (java.util.ResourceBundle)1 TableFacade (org.jmesa.facade.TableFacade)1 TableFacadeFactory.createTableFacade (org.jmesa.facade.TableFacadeFactory.createTableFacade)1 HtmlTable (org.jmesa.view.html.component.HtmlTable)1