use of org.olat.core.gui.components.segmentedview.SegmentViewEvent in project OpenOLAT by OpenOLAT.
the class ViteroBookingsRunController 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 == bookingsLink) {
doOpenBookings(ureq);
} else if (clickedLink == adminLink) {
doOpenAdmin(ureq);
}
}
}
}
use of org.olat.core.gui.components.segmentedview.SegmentViewEvent in project OpenOLAT by OpenOLAT.
the class ViteroAdminBookingInfosController 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 OpenOLAT.
the class CertificatesAdminController 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 == certificatesLink) {
doOpenCertificatesList(ureq);
}
}
}
}
use of org.olat.core.gui.components.segmentedview.SegmentViewEvent in project OpenOLAT by OpenOLAT.
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);
}
}
}
use of org.olat.core.gui.components.segmentedview.SegmentViewEvent in project OpenOLAT by OpenOLAT.
the class MultiEvaluationFormController 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 == ownerLink) {
doOpenEvalutationForm(ureq, owner);
} else if (clickedLink == compareLink) {
doOpenOverview(ureq);
} else if (clickedLink instanceof Link) {
Link link = (Link) clickedLink;
Object uobject = link.getUserObject();
if (uobject instanceof Identity) {
doOpenEvalutationForm(ureq, (Identity) uobject);
}
}
}
}
}
Aggregations