Search in sources :

Example 1 with UserSelectionEvent

use of org.olat.modules.assessment.ui.event.UserSelectionEvent in project OpenOLAT by OpenOLAT.

the class AssessmentToReviewSmallController method formInnerEvent.

@Override
protected void formInnerEvent(UserRequest ureq, FormItem source, FormEvent event) {
    if (source == tableEl) {
        if (event instanceof SelectionEvent) {
            SelectionEvent se = (SelectionEvent) event;
            if ("select".equals(se.getCommand())) {
                int index = se.getIndex();
                UserToReviewRow row = usersTableModel.getObject(index);
                fireEvent(ureq, new UserSelectionEvent(row.getIdentityKey(), row.getSubIndents()));
            }
        }
    }
    super.formInnerEvent(ureq, source, event);
}
Also used : UserSelectionEvent(org.olat.modules.assessment.ui.event.UserSelectionEvent) SelectionEvent(org.olat.core.gui.components.form.flexible.impl.elements.table.SelectionEvent) UserSelectionEvent(org.olat.modules.assessment.ui.event.UserSelectionEvent)

Example 2 with UserSelectionEvent

use of org.olat.modules.assessment.ui.event.UserSelectionEvent in project OpenOLAT by OpenOLAT.

the class AssessmentToReviewSmallController method formInnerEvent.

@Override
protected void formInnerEvent(UserRequest ureq, FormItem source, FormEvent event) {
    if (source == tableEl) {
        if (event instanceof SelectionEvent) {
            SelectionEvent se = (SelectionEvent) event;
            if ("select".equals(se.getCommand())) {
                int index = se.getIndex();
                UserToReviewRow row = usersTableModel.getObject(index);
                fireEvent(ureq, new UserSelectionEvent(row.getIdentityKey(), row.getSubIndents()));
            }
        }
    }
    super.formInnerEvent(ureq, source, event);
}
Also used : UserSelectionEvent(org.olat.modules.assessment.ui.event.UserSelectionEvent) SelectionEvent(org.olat.core.gui.components.form.flexible.impl.elements.table.SelectionEvent) UserSelectionEvent(org.olat.modules.assessment.ui.event.UserSelectionEvent)

Example 3 with UserSelectionEvent

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

the class AssessmentToReviewSmallController method formInnerEvent.

@Override
protected void formInnerEvent(UserRequest ureq, FormItem source, FormEvent event) {
    if (source == tableEl) {
        if (event instanceof SelectionEvent) {
            SelectionEvent se = (SelectionEvent) event;
            if ("select".equals(se.getCommand())) {
                int index = se.getIndex();
                UserToReviewRow row = usersTableModel.getObject(index);
                fireEvent(ureq, new UserSelectionEvent(row.getIdentityKey(), row.getSubIndents()));
            }
        }
    }
    super.formInnerEvent(ureq, source, event);
}
Also used : UserSelectionEvent(org.olat.modules.assessment.ui.event.UserSelectionEvent) SelectionEvent(org.olat.core.gui.components.form.flexible.impl.elements.table.SelectionEvent) UserSelectionEvent(org.olat.modules.assessment.ui.event.UserSelectionEvent)

Example 4 with UserSelectionEvent

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

the class AssessmentToReviewSmallController method formInnerEvent.

@Override
protected void formInnerEvent(UserRequest ureq, FormItem source, FormEvent event) {
    if (source == tableEl) {
        if (event instanceof SelectionEvent) {
            SelectionEvent se = (SelectionEvent) event;
            if ("select".equals(se.getCommand())) {
                int index = se.getIndex();
                UserToReviewRow row = usersTableModel.getObject(index);
                fireEvent(ureq, new UserSelectionEvent(row.getIdentityKey(), row.getSubIndents()));
            }
        }
    }
    super.formInnerEvent(ureq, source, event);
}
Also used : UserSelectionEvent(org.olat.modules.assessment.ui.event.UserSelectionEvent) SelectionEvent(org.olat.core.gui.components.form.flexible.impl.elements.table.SelectionEvent) UserSelectionEvent(org.olat.modules.assessment.ui.event.UserSelectionEvent)

Aggregations

SelectionEvent (org.olat.core.gui.components.form.flexible.impl.elements.table.SelectionEvent)4 UserSelectionEvent (org.olat.modules.assessment.ui.event.UserSelectionEvent)4