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());
}
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);
}
Aggregations