use of org.olat.core.gui.components.segmentedview.SegmentViewEvent in project openolat by klemens.
the class MailBoxOverviewController 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 == inboxLink) {
doOpenInbox(ureq);
} else if (clickedLink == outboxLink) {
doOpenOutbox(ureq);
}
}
}
}
use of org.olat.core.gui.components.segmentedview.SegmentViewEvent in project openolat by klemens.
the class MembersOverviewController method event.
@Override
protected void event(UserRequest ureq, Component source, Event event) {
if (event instanceof SegmentViewEvent) {
SegmentViewEvent sve = (SegmentViewEvent) event;
String segmentCName = sve.getComponentName();
Component clickedLink = mainVC.getComponent(segmentCName);
if (clickedLink == allMembersLink) {
selectedCtrl = updateAllMembers(ureq);
} else if (clickedLink == ownersLink) {
selectedCtrl = updateOwners(ureq);
} else if (clickedLink == tutorsLink) {
selectedCtrl = updateTutors(ureq);
} else if (clickedLink == participantsLink) {
selectedCtrl = updateParticipants(ureq);
} else if (clickedLink == waitingListLink) {
selectedCtrl = updateWaitingList(ureq);
} else if (clickedLink == searchLink) {
updateSearch(ureq);
selectedCtrl = null;
}
} else if (source == addMemberLink) {
doChooseMembers(ureq);
} else if (source == importMemberLink) {
doImportMembers(ureq);
} else if (source == dedupLink) {
doDedupMembers(ureq);
} else if (source == overrideLink) {
doOverrideManagedResource(ureq);
} else if (source == unOverrideLink) {
doUnOverrideManagedResource(ureq);
}
}
use of org.olat.core.gui.components.segmentedview.SegmentViewEvent in project openolat by klemens.
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 VideoAdminController 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 = mainVC.getComponent(segmentCName);
if (clickedLink == adminSetLink) {
doOpenAdminConfig(ureq);
} else if (clickedLink == adminListLink) {
doOpenAdminList(ureq);
} else if (clickedLink == adminTranscodingLink) {
doOpenTranscodingAdmin(ureq);
} else if (clickedLink == adminErrorLink) {
doOpenErrorAdmin(ureq);
}
}
}
}
use of org.olat.core.gui.components.segmentedview.SegmentViewEvent in project OpenOLAT by OpenOLAT.
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);
}
}
}
}
Aggregations