use of org.olat.core.gui.components.segmentedview.SegmentViewEvent in project OpenOLAT by OpenOLAT.
the class OverviewRepositoryListController method event.
@Override
protected void event(UserRequest ureq, Component source, Event event) {
if (source == segmentView) {
if (event instanceof SegmentViewEvent) {
cleanUp();
SegmentViewEvent sve = (SegmentViewEvent) event;
String segmentCName = sve.getComponentName();
Component clickedLink = mainVC.getComponent(segmentCName);
if (clickedLink == favoriteLink) {
doOpenMark(ureq);
} else if (clickedLink == myCourseLink) {
doOpenMyCourses(ureq);
} else if (clickedLink == catalogLink) {
doOpenCatalog(ureq);
} else if (clickedLink == searchCourseLink) {
doOpenSearchCourses(ureq);
} else if (clickedLink == closedCourseLink) {
doOpenClosedCourses(ureq);
}
}
}
}
use of org.olat.core.gui.components.segmentedview.SegmentViewEvent in project OpenOLAT by OpenOLAT.
the class OverviewAuthoringController 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 == favoriteLink) {
doOpenMark(ureq);
} else if (clickedLink == myEntriesLink) {
doOpenMyEntries(ureq);
} else if (clickedLink == searchLink) {
doSearchEntries(ureq);
} else if (clickedLink == deletedLink) {
doOpenDeletedEntries(ureq);
}
}
}
}
use of org.olat.core.gui.components.segmentedview.SegmentViewEvent in project OpenOLAT by OpenOLAT.
the class GoToAdminController 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 == organizersLink) {
doOpenOrganizersList(ureq);
} else if (clickedLink == meetingsLink) {
doOpenMeetingsList(ureq);
}
}
}
}
use of org.olat.core.gui.components.segmentedview.SegmentViewEvent in project OpenOLAT by OpenOLAT.
the class SharedItemsOverviewController 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 == favoriteLink) {
doOpenMark(ureq);
} else if (clickedLink == pagesLink) {
doOpenPages(ureq);
} else if (clickedLink == bindersLink) {
doOpenBinders(ureq);
}
}
}
}
use of org.olat.core.gui.components.segmentedview.SegmentViewEvent in project OpenOLAT by OpenOLAT.
the class AssessedIdentityOverviewController 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 == checkListLink) {
doOpenCheckList(ureq);
} else if (clickedLink == assessmentLink) {
doOpenAssessment(ureq);
}
}
}
}
Aggregations