use of org.olat.core.gui.components.segmentedview.SegmentViewEvent in project openolat by klemens.
the class DocumentPoolAdminController 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 == configurationLink) {
doOpenConfiguration(ureq);
} else if (clickedLink == permissionsLink) {
doOpenPermissions(ureq);
} else if (clickedLink == infosPageLink) {
doOpenInfosPage(ureq);
}
}
}
}
use of org.olat.core.gui.components.segmentedview.SegmentViewEvent in project openolat by klemens.
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 klemens.
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 klemens.
the class LectureAdminController 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 == settingsLink) {
doOpenSettings(ureq);
} else if (clickedLink == reasonsLink) {
doOpenReasons(ureq);
}
}
}
}
use of org.olat.core.gui.components.segmentedview.SegmentViewEvent in project openolat by klemens.
the class OverviewBusinessGroupListController 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);
Controller selectedController = null;
if (clickedLink == markedGroupsLink) {
selectedController = updateMarkedGroups(ureq);
} else if (clickedLink == myGroupsLink) {
selectedController = updateMyGroups(ureq);
} else if (clickedLink == openGroupsLink) {
selectedController = updateOpenGroups(ureq);
} else if (clickedLink == searchOpenLink) {
selectedController = updateSearch(ureq);
}
addToHistory(ureq, selectedController);
}
}
}
Aggregations