use of org.olat.core.gui.components.segmentedview.SegmentViewEvent in project OpenOLAT by OpenOLAT.
the class SitesAdminController 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 == orderLink) {
doOpenAccountSettings(ureq);
} else if (clickedLink == courseSite1Link) {
doCourseSite1Settings(ureq);
} else if (clickedLink == courseSite2Link) {
doCourseSite2Settings(ureq);
} else if (clickedLink == courseSite3Link) {
doCourseSite3Settings(ureq);
} else if (clickedLink == courseSite4Link) {
doCourseSite4Settings(ureq);
}
}
}
}
use of org.olat.core.gui.components.segmentedview.SegmentViewEvent in project OpenOLAT by OpenOLAT.
the class DatabaseController method event.
@Override
protected void event(UserRequest ureq, Component source, Event event) {
Statistics statistics = dbInstance.getStatistics();
if (source == enableLink) {
statistics.setStatisticsEnabled(true);
mainVC.contextPut("isStatisticsEnabled", statistics.isStatisticsEnabled());
getWindowControl().setInfo("Hibernate statistics enabled.");
} else if (source == disableLink) {
statistics.setStatisticsEnabled(false);
mainVC.contextPut("isStatisticsEnabled", statistics.isStatisticsEnabled());
getWindowControl().setInfo("Hibernate statistics disabled.");
} else if (source == clearLink) {
statistics.clear();
getWindowControl().setInfo("Hibernate statistics clear done.");
} else if (source == segmentView) {
if (event instanceof SegmentViewEvent) {
SegmentViewEvent sve = (SegmentViewEvent) event;
String segmentCName = sve.getComponentName();
Component clickedLink = mainVC.getComponent(segmentCName);
if (clickedLink == statisticsLink) {
doOpenStatistics(ureq);
} else if (clickedLink == queriesLink) {
doOpenQueries(ureq);
} else if (clickedLink == entitiesLink) {
doOpenEntities(ureq);
}
}
}
}
use of org.olat.core.gui.components.segmentedview.SegmentViewEvent in project openolat by klemens.
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 klemens.
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 klemens.
the class ViteroAdminController 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 == bookingsLink) {
doOpenBookings(ureq);
}
}
}
}
Aggregations