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