use of org.olat.core.gui.components.segmentedview.SegmentViewEvent in project openolat by klemens.
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 klemens.
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 klemens.
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);
}
}
}
}
use of org.olat.core.gui.components.segmentedview.SegmentViewEvent in project openolat by klemens.
the class GTARunController 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);
} else if (clickedLink == markedLink) {
doOpenMarked(ureq);
} else if (clickedLink == manageLink) {
doManage(ureq);
}
}
}
}
use of org.olat.core.gui.components.segmentedview.SegmentViewEvent in project openolat by klemens.
the class MailAdminController 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 == templateLink) {
doOpenTemplate(ureq);
}
}
}
}
Aggregations