Search in sources :

Example 1 with SelectBusinessGroupEvent

use of org.olat.course.nodes.gta.ui.events.SelectBusinessGroupEvent in project openolat by klemens.

the class GTAAssessmentDetailsController method event.

@Override
protected void event(UserRequest ureq, Controller source, Event event) {
    if (groupListCtrl == source) {
        if (event instanceof SelectBusinessGroupEvent) {
            SelectBusinessGroupEvent selectEvent = (SelectBusinessGroupEvent) event;
            doSelectBusinessGroup(ureq, selectEvent.getBusinessGroup());
            backLink.setVisible(true);
        }
    }
    super.event(ureq, source, event);
}
Also used : SelectBusinessGroupEvent(org.olat.course.nodes.gta.ui.events.SelectBusinessGroupEvent)

Example 2 with SelectBusinessGroupEvent

use of org.olat.course.nodes.gta.ui.events.SelectBusinessGroupEvent in project openolat by klemens.

the class GTACoachedGroupListController method doSelect.

private void doSelect(UserRequest ureq, BusinessGroup businessGroup) {
    if (stackPanel == null) {
        fireEvent(ureq, new SelectBusinessGroupEvent(businessGroup));
    } else {
        removeAsListenerAndDispose(coachingCtrl);
        coachingCtrl = new GTACoachController(ureq, getWindowControl(), courseEnv, gtaNode, coachCourseEnv, businessGroup, true, true, true, false);
        listenTo(coachingCtrl);
        stackPanel.pushController(businessGroup.getName(), coachingCtrl);
    }
}
Also used : SelectBusinessGroupEvent(org.olat.course.nodes.gta.ui.events.SelectBusinessGroupEvent)

Example 3 with SelectBusinessGroupEvent

use of org.olat.course.nodes.gta.ui.events.SelectBusinessGroupEvent in project OpenOLAT by OpenOLAT.

the class GTACoachSelectionController method event.

@Override
protected void event(UserRequest ureq, Controller source, Event event) {
    if (groupListCtrl == source) {
        if (event instanceof SelectBusinessGroupEvent) {
            SelectBusinessGroupEvent selectEvent = (SelectBusinessGroupEvent) event;
            doSelectBusinessGroup(ureq, selectEvent.getBusinessGroup());
            backLink.setVisible(true);
        }
    } else if (participantListCtrl == source) {
        if (event instanceof SelectIdentityEvent) {
            SelectIdentityEvent selectEvent = (SelectIdentityEvent) event;
            Identity selectedIdentity = securityManager.loadIdentityByKey(selectEvent.getIdentityKey());
            doSelectParticipant(ureq, selectedIdentity);
            backLink.setVisible(true);
        }
    }
    super.event(ureq, source, event);
}
Also used : SelectIdentityEvent(org.olat.course.nodes.gta.ui.events.SelectIdentityEvent) SelectBusinessGroupEvent(org.olat.course.nodes.gta.ui.events.SelectBusinessGroupEvent) Identity(org.olat.core.id.Identity)

Example 4 with SelectBusinessGroupEvent

use of org.olat.course.nodes.gta.ui.events.SelectBusinessGroupEvent in project OpenOLAT by OpenOLAT.

the class GTACoachedGroupListController method doSelect.

private void doSelect(UserRequest ureq, BusinessGroup businessGroup) {
    if (stackPanel == null) {
        fireEvent(ureq, new SelectBusinessGroupEvent(businessGroup));
    } else {
        removeAsListenerAndDispose(coachingCtrl);
        coachingCtrl = new GTACoachController(ureq, getWindowControl(), courseEnv, gtaNode, coachCourseEnv, businessGroup, true, true, true, false);
        listenTo(coachingCtrl);
        stackPanel.pushController(businessGroup.getName(), coachingCtrl);
    }
}
Also used : SelectBusinessGroupEvent(org.olat.course.nodes.gta.ui.events.SelectBusinessGroupEvent)

Example 5 with SelectBusinessGroupEvent

use of org.olat.course.nodes.gta.ui.events.SelectBusinessGroupEvent in project OpenOLAT by OpenOLAT.

the class GTAAssessmentDetailsController method event.

@Override
protected void event(UserRequest ureq, Controller source, Event event) {
    if (groupListCtrl == source) {
        if (event instanceof SelectBusinessGroupEvent) {
            SelectBusinessGroupEvent selectEvent = (SelectBusinessGroupEvent) event;
            doSelectBusinessGroup(ureq, selectEvent.getBusinessGroup());
            backLink.setVisible(true);
        }
    }
    super.event(ureq, source, event);
}
Also used : SelectBusinessGroupEvent(org.olat.course.nodes.gta.ui.events.SelectBusinessGroupEvent)

Aggregations

SelectBusinessGroupEvent (org.olat.course.nodes.gta.ui.events.SelectBusinessGroupEvent)6 Identity (org.olat.core.id.Identity)2 SelectIdentityEvent (org.olat.course.nodes.gta.ui.events.SelectIdentityEvent)2