Search in sources :

Example 6 with DefaultActionsEditor

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);
}
Also used : DefaultActionsEditor(org.akaza.openclinica.control.DefaultActionsEditor) Row(org.jmesa.view.component.Row) DateCellEditor(org.jmesa.view.editor.DateCellEditor)

Example 7 with DefaultActionsEditor

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);
}
Also used : DefaultActionsEditor(org.akaza.openclinica.control.DefaultActionsEditor) Row(org.jmesa.view.component.Row) DateCellEditor(org.jmesa.view.editor.DateCellEditor)

Example 8 with DefaultActionsEditor

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);
}
Also used : DefaultActionsEditor(org.akaza.openclinica.control.DefaultActionsEditor) Row(org.jmesa.view.component.Row)

Example 9 with DefaultActionsEditor

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
}
Also used : DefaultActionsEditor(org.akaza.openclinica.control.DefaultActionsEditor) Row(org.jmesa.view.component.Row) DateCellEditor(org.jmesa.view.editor.DateCellEditor)

Example 10 with DefaultActionsEditor

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") + "&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;";
    configureColumn(row.getColumn(columnNames[columnNames.length - 1]), actionsHeader, new ActionsCellEditor(), new DefaultActionsEditor(locale), true, false);
}
Also used : DefaultActionsEditor(org.akaza.openclinica.control.DefaultActionsEditor) Row(org.jmesa.view.component.Row) EventDefinitionCRFBean(org.akaza.openclinica.bean.managestudy.EventDefinitionCRFBean) EventCRFBean(org.akaza.openclinica.bean.submit.EventCRFBean) CRFBean(org.akaza.openclinica.bean.admin.CRFBean)

Aggregations

DefaultActionsEditor (org.akaza.openclinica.control.DefaultActionsEditor)12 Row (org.jmesa.view.component.Row)11 DateCellEditor (org.jmesa.view.editor.DateCellEditor)4 CRFBean (org.akaza.openclinica.bean.admin.CRFBean)2 EventDefinitionCRFBean (org.akaza.openclinica.bean.managestudy.EventDefinitionCRFBean)2 StudyEventDefinitionBean (org.akaza.openclinica.bean.managestudy.StudyEventDefinitionBean)2 StudyGroupClassBean (org.akaza.openclinica.bean.managestudy.StudyGroupClassBean)2 EventCRFBean (org.akaza.openclinica.bean.submit.EventCRFBean)2 HtmlColumn (org.jmesa.view.html.component.HtmlColumn)2 HtmlRow (org.jmesa.view.html.component.HtmlRow)2 ResourceBundle (java.util.ResourceBundle)1 SDVToolbar (org.akaza.openclinica.controller.helper.table.SDVToolbar)1 SDVUtil (org.akaza.openclinica.web.table.sdv.SDVUtil)1 MatcherKey (org.jmesa.core.filter.MatcherKey)1 TableFacade (org.jmesa.facade.TableFacade)1 TableFacadeFactory.createTableFacade (org.jmesa.facade.TableFacadeFactory.createTableFacade)1 HtmlTable (org.jmesa.view.html.component.HtmlTable)1