use of org.olat.core.gui.components.segmentedview.SegmentViewEvent in project openolat by klemens.
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 klemens.
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);
}
}
}
}
use of org.olat.core.gui.components.segmentedview.SegmentViewEvent in project openolat by klemens.
the class SelectItemController 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 == markedItemsLink) {
updateMarkedItems(ureq);
} else if (clickedLink == ownedItemsLink) {
updateOwnedGroups(ureq);
} else if (clickedLink == myListsLink) {
updateMyLists(ureq);
} else if (clickedLink == mySharesLink) {
updateMyShares(ureq);
} else if (clickedLink == myCompetencesLink) {
updateMyCompetences(ureq);
}
}
}
}
use of org.olat.core.gui.components.segmentedview.SegmentViewEvent in project openolat by klemens.
the class TaxonomyOverviewController 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) {
doOpenMetadata(ureq);
} else if (clickedLink == typesLink) {
doOpenTypes(ureq);
} else if (clickedLink == levelsLink) {
doOpenTaxonomyLevels(ureq);
} else if (clickedLink == lostFoundLink) {
doOpenLostFound(ureq);
}
}
}
}
use of org.olat.core.gui.components.segmentedview.SegmentViewEvent in project openolat by klemens.
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);
}
}
}
}
Aggregations