Search in sources :

Example 21 with AssessedIdentityElementRow

use of org.olat.modules.assessment.ui.AssessedIdentityElementRow in project openolat by klemens.

the class IdentityListCourseNodeController method formInnerEvent.

@Override
protected void formInnerEvent(UserRequest ureq, FormItem source, FormEvent event) {
    if (tableEl == source) {
        if (event instanceof SelectionEvent) {
            SelectionEvent se = (SelectionEvent) event;
            String cmd = se.getCommand();
            AssessedIdentityElementRow row = usersTableModel.getObject(se.getIndex());
            if ("select".equals(cmd)) {
                doSelect(ureq, row);
            }
        } else if (event instanceof FlexiTableSearchEvent) {
            loadModel(ureq);
        }
    } else if (bulkDoneButton == source) {
        doSetDone(ureq);
    } else if (bulkVisibleButton == source) {
        doConfirmVisible(ureq);
    } else if (source instanceof FormLink) {
        FormLink link = (FormLink) source;
        if ("tools".equals(link.getCmd())) {
            doOpenTools(ureq, (AssessedIdentityElementRow) link.getUserObject(), link);
        }
    }
    super.formInnerEvent(ureq, source, event);
}
Also used : AssessedIdentityElementRow(org.olat.modules.assessment.ui.AssessedIdentityElementRow) SelectionEvent(org.olat.core.gui.components.form.flexible.impl.elements.table.SelectionEvent) FlexiTableSearchEvent(org.olat.core.gui.components.form.flexible.impl.elements.table.FlexiTableSearchEvent) FormLink(org.olat.core.gui.components.form.flexible.elements.FormLink)

Example 22 with AssessedIdentityElementRow

use of org.olat.modules.assessment.ui.AssessedIdentityElementRow in project openolat by klemens.

the class IQIdentityListCourseNodeController method loadModel.

@Override
protected void loadModel(UserRequest ureq) {
    super.loadModel(ureq);
    if (((IQTESTCourseNode) courseNode).hasQTI21TimeLimit(getReferencedRepositoryEntry())) {
        Map<Long, ExtraTimeInfos> extraTimeInfos = getExtraTimes();
        List<AssessedIdentityElementRow> rows = usersTableModel.getObjects();
        for (AssessedIdentityElementRow row : rows) {
            row.setDetails(extraTimeInfos.get(row.getIdentityKey()));
        }
    }
    if (pullButton != null) {
        boolean enabled = isTestRunning();
        pullButton.setEnabled(enabled);
    }
}
Also used : IQTESTCourseNode(org.olat.course.nodes.IQTESTCourseNode) AssessedIdentityElementRow(org.olat.modules.assessment.ui.AssessedIdentityElementRow)

Aggregations

AssessedIdentityElementRow (org.olat.modules.assessment.ui.AssessedIdentityElementRow)22 ArrayList (java.util.ArrayList)10 CloseableModalController (org.olat.core.gui.control.generic.closablewrapper.CloseableModalController)6 Identity (org.olat.core.id.Identity)6 IdentityEnvironment (org.olat.core.id.IdentityEnvironment)6 Roles (org.olat.core.id.Roles)6 ICourse (org.olat.course.ICourse)6 AssessableCourseNode (org.olat.course.nodes.AssessableCourseNode)6 CalculatedAssessableCourseNode (org.olat.course.nodes.CalculatedAssessableCourseNode)6 ScoreEvaluation (org.olat.course.run.scoring.ScoreEvaluation)6 UserCourseEnvironment (org.olat.course.run.userview.UserCourseEnvironment)6 UserCourseEnvironmentImpl (org.olat.course.run.userview.UserCourseEnvironmentImpl)6 HashMap (java.util.HashMap)4 IdentityRef (org.olat.basesecurity.IdentityRef)4 IdentityRefImpl (org.olat.basesecurity.model.IdentityRefImpl)4 FlexiTableFilter (org.olat.core.gui.components.form.flexible.elements.FlexiTableFilter)4 FormLink (org.olat.core.gui.components.form.flexible.elements.FormLink)4 FormBasicController (org.olat.core.gui.components.form.flexible.impl.FormBasicController)4 FlexiTableSearchEvent (org.olat.core.gui.components.form.flexible.impl.elements.table.FlexiTableSearchEvent)4 SelectionEvent (org.olat.core.gui.components.form.flexible.impl.elements.table.SelectionEvent)4