use of org.olat.core.gui.components.segmentedview.SegmentViewEvent in project OpenOLAT by OpenOLAT.
the class VideoSettingsController 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 == metaDataLink) {
doOpenMetaDataConfig(ureq);
} else if (clickedLink == posterEditLink) {
doOpenPosterConfig(ureq);
} else if (clickedLink == trackEditLink) {
doOpenTrackConfig(ureq);
} else if (clickedLink == qualityConfig) {
doOpenQualityConfig(ureq);
} else if (clickedLink == chapterEditLink) {
doOpenChapterConfig(ureq);
}
}
}
}
use of org.olat.core.gui.components.segmentedview.SegmentViewEvent in project OpenOLAT by OpenOLAT.
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 OpenOLAT.
the class EPOverviewController 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 == myArtefactLink) {
doOpenMyArtefacts(ureq);
} else if (clickedLink == myMapLink) {
doOpenMyMaps(ureq);
} else if (clickedLink == myTaskLink) {
doOpenMyTasks(ureq);
} else if (clickedLink == publicMapLink) {
doOpenPublicMaps(ureq);
}
}
}
}
use of org.olat.core.gui.components.segmentedview.SegmentViewEvent in project OpenOLAT by OpenOLAT.
the class PaypalAdminController 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 == masterAccountLink) {
doOpenMasterAccountSettings(ureq);
} else if (clickedLink == transactionsLink) {
doOpenTransactions(ureq);
}
}
}
}
use of org.olat.core.gui.components.segmentedview.SegmentViewEvent in project OpenOLAT by OpenOLAT.
the class UserSettingsController method event.
/**
* @see org.olat.core.gui.control.DefaultController#event(org.olat.core.gui.UserRequest, org.olat.core.gui.components.Component, org.olat.core.gui.control.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 = mainVC.getComponent(segmentCName);
if (clickedLink == preferencesLink) {
doOpenPreferences(ureq);
} else if (clickedLink == webdavLink) {
doOpenWebDAV(ureq);
} else if (clickedLink == imLink) {
doOpenIM(ureq);
} else if (clickedLink == disclaimerLink) {
doOpenDisclaimer(ureq);
}
}
}
}
Aggregations