use of org.olat.core.gui.components.segmentedview.SegmentViewEvent in project OpenOLAT by OpenOLAT.
the class CourseRemindersController method event.
@Override
protected void event(UserRequest ureq, Component source, Event event) {
if (source == segmentView) {
if (event instanceof SegmentViewEvent) {
SegmentViewEvent sve = (SegmentViewEvent) event;
String segmentCName = sve.getComponentName();
Component clickedLink = mainVC.getComponent(segmentCName);
if (clickedLink == remindersLink) {
doOpenRemindersConfiguration(ureq);
} else if (clickedLink == logsLink) {
doOpenReminderLogs(ureq);
}
}
}
}
use of org.olat.core.gui.components.segmentedview.SegmentViewEvent in project OpenOLAT by OpenOLAT.
the class LectureRepositoryAdminController method event.
@Override
protected void event(UserRequest ureq, Component source, Event event) {
if (source == segmentView) {
if (event instanceof SegmentViewEvent) {
SegmentViewEvent sve = (SegmentViewEvent) event;
String segmentCName = sve.getComponentName();
Component clickedLink = mainVC.getComponent(segmentCName);
if (clickedLink == lecturesLink) {
doOpenLectures(ureq);
} else if (clickedLink == settingsLink) {
doOpenSettings(ureq);
} else if (clickedLink == participantsLink) {
doOpenParticipants(ureq);
}
}
} else if (archiveLink == source) {
doExportArchive(ureq);
} else if (logLink == source) {
doExportLog(ureq);
}
}
use of org.olat.core.gui.components.segmentedview.SegmentViewEvent in project OpenOLAT by OpenOLAT.
the class LecturesToolController method event.
@Override
protected void event(UserRequest ureq, Component source, Event event) {
if (event instanceof SegmentViewEvent) {
SegmentViewEvent sve = (SegmentViewEvent) event;
String segmentCName = sve.getComponentName();
Component clickedLink = mainVC.getComponent(segmentCName);
if (clickedLink == teacherLink) {
doOpenTeacherView(ureq);
} else if (clickedLink == participantLink) {
doOpenParticipantView(ureq);
}
} else if (stackPanel == source) {
if (event instanceof PopEvent) {
PopEvent popEvent = (PopEvent) event;
if (popEvent.getController() instanceof TeacherRollCallController) {
addToHistory(ureq, teacherOverviewCtrl);
} else if (popEvent.getController() instanceof ParticipantLectureBlocksController) {
addToHistory(ureq, participantOverviewCtrl);
}
}
}
}
use of org.olat.core.gui.components.segmentedview.SegmentViewEvent in project OpenOLAT by OpenOLAT.
the class PFRunController method event.
@Override
protected void event(UserRequest ureq, Component source, Event event) {
if (source == segmentView) {
if (event instanceof SegmentViewEvent) {
SegmentViewEvent sve = (SegmentViewEvent) event;
String segmentCName = sve.getComponentName();
Component clickedLink = mainVC.getComponent(segmentCName);
if (clickedLink == coachLink) {
doOpenCoachView(ureq);
} else if (clickedLink == participantLink) {
doOpenParticipantsView(ureq);
}
}
}
}
use of org.olat.core.gui.components.segmentedview.SegmentViewEvent in project OpenOLAT by OpenOLAT.
the class TrashController method event.
@Override
protected void event(UserRequest ureq, Component source, Event event) {
if (source == segmentView) {
if (event instanceof SegmentViewEvent) {
SegmentViewEvent sve = (SegmentViewEvent) event;
String segmentCName = sve.getComponentName();
Component clickedLink = mainVC.getComponent(segmentCName);
if (clickedLink == pagesLink) {
doOpenPages(ureq);
} else if (clickedLink == bindersLink) {
doOpenBinders(ureq);
}
}
}
}
Aggregations