use of org.akaza.openclinica.control.DefaultActionsEditor in project OpenClinica by OpenClinica.
the class AuditUserLoginTableFactory method configureColumns.
@Override
protected void configureColumns(TableFacade tableFacade, Locale locale) {
tableFacade.setColumnProperties("userName", "loginAttemptDate", "loginStatus", "details", "actions");
Row row = tableFacade.getTable().getRow();
configureColumn(row.getColumn("userName"), "User Name", null, null);
configureColumn(row.getColumn("loginAttemptDate"), "Attempt Date", new DateCellEditor("yyyy-MM-dd HH:mm:ss"), null);
configureColumn(row.getColumn("loginStatus"), "Status", null, new AvailableDroplistFilterEditor());
configureColumn(row.getColumn("details"), "Details", null, null);
String actionsHeader = resword.getString("actions") + "           ";
configureColumn(row.getColumn("actions"), actionsHeader, new ActionsCellEditor(), new DefaultActionsEditor(locale), true, false);
}
use of org.akaza.openclinica.control.DefaultActionsEditor 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);
}
use of org.akaza.openclinica.control.DefaultActionsEditor in project OpenClinica by OpenClinica.
the class ViewRuleAssignmentTableFactory method configureColumns.
@Override
protected void configureColumns(TableFacade tableFacade, Locale locale) {
tableFacade.setColumnProperties(columnNames);
Row row = tableFacade.getTable().getRow();
int index = 0;
configureColumn(row.getColumn(columnNames[index++]), resword.getString("view_rule_assignment_run_schedule"), null, new RunOnScheduleDroplistFilterEditor());
configureColumn(row.getColumn(columnNames[index++]), resword.getString("view_rule_assignment_run_time"), null, null);
configureColumn(row.getColumn(columnNames[index++]), resword.getString("view_rule_assignment_target"), null, null);
configureColumn(row.getColumn(columnNames[index++]), resword.getString("view_rule_assignment_study_event"), null, null);
configureColumn(row.getColumn(columnNames[index++]), resword.getString("view_rule_assignment_crf") + "     ", null, null);
configureColumn(row.getColumn(columnNames[index++]), resword.getString("view_rule_assignment_version"), null, null);
configureColumn(row.getColumn(columnNames[index++]), resword.getString("view_rule_assignment_group"), null, null);
configureColumn(row.getColumn(columnNames[index++]), resword.getString("view_rule_assignment_item_name"), new ItemCellEditor(), null);
configureColumn(row.getColumn(columnNames[index++]), resword.getString("view_rule_assignment_rule_name"), null, null);
configureColumn(row.getColumn(columnNames[index++]), resword.getString("view_rule_assignment_rule_oid"), null, null);
configureColumn(row.getColumn(columnNames[index++]), resword.getString("view_rule_assignment_rule_status"), new StatusCellEditor(), new StatusDroplistFilterEditor());
configureColumn(row.getColumn(columnNames[index++]), resword.getString("view_rule_assignment_rule_description"), null, null);
configureColumn(row.getColumn(columnNames[index++]), resword.getString("view_rule_assignment_expression"), null, null);
configureColumn(row.getColumn(columnNames[index++]), resword.getString("view_rule_assignment_crf_br_validations"), new ValidationsValueCellEditor(false), null, false, false);
configureColumn(row.getColumn(columnNames[index++]), resword.getString("view_rule_assignment_execute_on"), new ExecuteOnCellEditor(false), new ExpressionEvaluatesToDroplistFilterEditor(), true, false);
configureColumn(row.getColumn(columnNames[index++]), resword.getString("view_rule_assignment_action_type"), new ActionTypeCellEditor(false), new ActionTypeDroplistFilterEditor(), true, false);
configureColumn(row.getColumn(columnNames[index++]), resword.getString("view_rule_assignment_action_summary"), new ActionSummaryCellEditor(false), null, true, false);
String actionsHeader = resword.getString("actions") + "              " + "                   " + "                   " + "             ";
configureColumn(row.getColumn("actions"), actionsHeader, new ActionsCellEditor(), new DefaultActionsEditor(locale), true, false);
}
use of org.akaza.openclinica.control.DefaultActionsEditor in project OpenClinica by OpenClinica.
the class ListSubjectTableFactory method configureColumns.
@Override
protected void configureColumns(TableFacade tableFacade, Locale locale) {
tableFacade.setColumnProperties("subject.uniqueIdentifier", "studySubjectIdAndStudy", "subject.gender", "subject.createdDate", "subject.owner", "subject.updatedDate", "subject.updater", "subject.status", "actions");
Row row = tableFacade.getTable().getRow();
configureColumn(row.getColumn("subject.uniqueIdentifier"), resword.getString("person_ID"), null, null);
configureColumn(row.getColumn("studySubjectIdAndStudy"), resword.getString("Protocol_Study_subject_IDs"), null, null, true, false);
configureColumn(row.getColumn("subject.gender"), resword.getString("gender"), null, null);
configureColumn(row.getColumn("subject.createdDate"), resword.getString("date_created"), new DateCellEditor(getDateFormat()), null);
configureColumn(row.getColumn("subject.owner"), resword.getString("owner"), new OwnerCellEditor(), null, true, false);
configureColumn(row.getColumn("subject.updatedDate"), resword.getString("date_updated"), new DateCellEditor(getDateFormat()), null);
configureColumn(row.getColumn("subject.updater"), resword.getString("last_updated_by"), new UpdaterCellEditor(), null, true, false);
configureColumn(row.getColumn("subject.status"), resword.getString("status"), new StatusCellEditor(), new StatusDroplistFilterEditor());
configureColumn(row.getColumn("actions"), resword.getString("actions") + // " "
"                                 ", new ActionsCellEditor(), new DefaultActionsEditor(locale), true, false);
// >> tbh #4003, 08/2009
}
use of org.akaza.openclinica.control.DefaultActionsEditor in project OpenClinica by OpenClinica.
the class ListDiscNotesForCRFTableFactory method configureColumns.
@Override
protected void configureColumns(TableFacade tableFacade, Locale locale) {
resword = ResourceBundleProvider.getWordsBundle(locale);
resformat = ResourceBundleProvider.getFormatBundle(locale);
tableFacade.setColumnProperties(columnNames);
Row row = tableFacade.getTable().getRow();
configureColumn(row.getColumn(columnNames[0]), resword.getString("study_subject_ID"), null, null);
configureColumn(row.getColumn(columnNames[1]), resword.getString("event_status"), new EventStatusCellEditor(), new SubjectEventStatusDroplistFilterEditor(), true, false);
configureColumn(row.getColumn(columnNames[2]), resword.getString("event_date"), new EventStartDateCellEditor(), null);
// crf columns
for (int i = 3; i < columnNames.length - 1; i++) {
CRFBean crfBean = crfBeans.get(i - 3);
configureColumn(row.getColumn(columnNames[i]), crfBean.getName(), new EventCrfCellEditor(), new SubjectEventCRFStatusDroplistFilterEditor(), false, false);
}
String actionsHeader = resword.getString("rule_actions") + "               ";
configureColumn(row.getColumn(columnNames[columnNames.length - 1]), actionsHeader, new ActionsCellEditor(), new DefaultActionsEditor(locale), true, false);
}
Aggregations