use of org.olat.core.gui.components.segmentedview.SegmentViewEvent in project openolat by klemens.
the class OverviewAuthoringController 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 == myEntriesLink) {
doOpenMyEntries(ureq);
} else if (clickedLink == searchLink) {
doSearchEntries(ureq);
} else if (clickedLink == deletedLink) {
doOpenDeletedEntries(ureq);
}
}
}
}
use of org.olat.core.gui.components.segmentedview.SegmentViewEvent in project openolat by klemens.
the class LecturesListSegmentController 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 == aggregatedListLink) {
doOpenAggregatedListController(ureq);
} else if (clickedLink == detailledListLink) {
doOpenDetailledListController(ureq);
}
} else if (source == exportLink) {
doExportStatistics(ureq);
}
}
use of org.olat.core.gui.components.segmentedview.SegmentViewEvent in project openolat by klemens.
the class UserOrderController 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 == ordersLink) {
doOpenOrders(ureq);
} else if (clickedLink == advanceOrdersLink) {
doOpenAdvanceOrders(ureq);
}
}
}
}
use of org.olat.core.gui.components.segmentedview.SegmentViewEvent in project openolat by klemens.
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 klemens.
the class JavaVMController 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 == memoryLink) {
doOpenMemory(ureq);
} else if (clickedLink == threadsLink) {
doOpenThreads(ureq);
} else if (clickedLink == envPropsLink) {
doOpenEnvProps(ureq);
}
}
}
}
Aggregations