use of org.olat.core.gui.components.segmentedview.SegmentViewEvent in project openolat by klemens.
the class QuestionPoolAdminController method event.
@Override
protected void event(UserRequest ureq, Component source, Event event) {
if (source == segmentView && event instanceof SegmentViewEvent) {
SegmentViewEvent sve = (SegmentViewEvent) event;
String segmentCName = sve.getComponentName();
Component clickedLink = mainVC.getComponent(segmentCName);
if (clickedLink == configurationLink) {
doOpenConfiguration(ureq);
} else if (clickedLink == infoPageLink) {
doOpenInfosPage(ureq);
} else if (clickedLink == reviewProcessLink) {
doOpenReviewProcess(ureq);
} else if (clickedLink == taxonomyLink) {
doOpenTaxonomy(ureq);
} else if (clickedLink == poolsLink) {
doOpenPools(ureq);
} else if (clickedLink == itemTypesLink) {
doOpenItemTypes(ureq);
} else if (clickedLink == educationalContextLink) {
doOpenEducationalContext(ureq);
}
}
}
use of org.olat.core.gui.components.segmentedview.SegmentViewEvent in project openolat by klemens.
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 klemens.
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 klemens.
the class EPArtefactPoolRunController 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 = vC.getComponent(segmentCName);
if (clickedLink == artefactsLink) {
initTPAllView(ureq);
} else if (clickedLink == browseLink) {
initTPBrowseView(ureq);
} else if (clickedLink == searchLink) {
initTPFilterView(ureq);
}
}
}
}
use of org.olat.core.gui.components.segmentedview.SegmentViewEvent in project openolat by klemens.
the class ProfileAndHomePageEditController method event.
@Override
public 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 = myContent.getComponent(segmentCName);
Controller selectedController = null;
if (clickedLink == profilLink) {
selectedController = doOpenProfile(ureq);
} else if (clickedLink == homePageLink) {
selectedController = doOpenHomePageSettings(ureq);
}
addToHistory(ureq, selectedController);
}
}
}
Aggregations