use of org.olat.core.gui.components.segmentedview.SegmentViewEvent in project OpenOLAT by OpenOLAT.
the class CheckListRunForCoachController 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 == runLink) {
doOpenRun(ureq);
} else if (clickedLink == coachLink) {
doOpenCoach(ureq);
}
}
}
}
use of org.olat.core.gui.components.segmentedview.SegmentViewEvent in project OpenOLAT by OpenOLAT.
the class SelectBusinessGroupController 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 == markedGroupsLink) {
updateMarkedGroups(ureq);
} else if (clickedLink == ownedGroupsLink) {
updateOwnedGroups(ureq);
} else if (clickedLink == courseGroupsLink) {
updateCourseGroups(ureq);
} else if (clickedLink == searchOpenLink) {
updateSearch(ureq);
} else if (clickedLink == adminSearchOpenLink) {
updateAdminSearch(ureq);
}
}
} else if (createGroup == source) {
doCreate(ureq);
}
}
use of org.olat.core.gui.components.segmentedview.SegmentViewEvent in project OpenOLAT by OpenOLAT.
the class LecturesListSegmentController 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 == aggregatedListLink) {
doOpenAggregatedListController(ureq);
} else if (clickedLink == detailledListLink) {
doOpenDetailledListController(ureq);
}
} else if (source == exportLink) {
doExportStatistics(ureq);
}
}
use of org.olat.core.gui.components.segmentedview.SegmentViewEvent in project OpenOLAT by OpenOLAT.
the class OpenMeetingsAdminController 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 == accountLink) {
doOpenAccountSettings(ureq);
} else if (clickedLink == roomsLink) {
doOpenRooms(ureq);
}
}
}
}
use of org.olat.core.gui.components.segmentedview.SegmentViewEvent in project OpenOLAT by OpenOLAT.
the class OpenMeetingsAdminRoomInfosController 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 == infosLink) {
doOpenInfos(ureq);
} else if (clickedLink == membersLink) {
doOpenMembers(ureq);
}
}
}
}
Aggregations