use of org.olat.core.gui.control.WindowControl in project OpenOLAT by OpenOLAT.
the class OrdersController method doSelectOrder.
private void doSelectOrder(UserRequest ureq, OrderTableItem order) {
removeAsListenerAndDispose(detailController);
OLATResourceable ores = OresHelper.createOLATResourceableInstance(Order.class, order.getOrderKey());
WindowControl bwControl = addToHistory(ureq, ores, null);
detailController = new OrderDetailController(ureq, bwControl, order.getOrderKey());
detailController.hideBackLink();
listenTo(detailController);
if (stackPanel != null) {
stackPanel.pushController(order.getOrderNr(), detailController);
} else {
cmc = new CloseableModalController(getWindowControl(), translate("close"), detailController.getInitialComponent(), true, translate("order.booking"));
cmc.activate();
listenTo(cmc);
}
}
use of org.olat.core.gui.control.WindowControl in project OpenOLAT by OpenOLAT.
the class MembersOverviewController method updateSearch.
private AbstractMemberListController updateSearch(UserRequest ureq) {
if (searchCtrl == null) {
OLATResourceable ores = OresHelper.createOLATResourceableInstance(SEG_SEARCH_MEMBERS, 0l);
ThreadLocalUserActivityLogger.addLoggingResourceInfo(LoggingResourceable.wrapBusinessPath(ores));
WindowControl bwControl = BusinessControlFactory.getInstance().createBusinessWindowControl(ores, null, getWindowControl());
searchCtrl = new MemberSearchController(ureq, bwControl, toolbarPanel, repoEntry, coachCourseEnv);
listenTo(searchCtrl);
}
searchCtrl.overrideManaged(ureq, overrideManaged);
mainVC.put("membersCmp", searchCtrl.getInitialComponent());
addToHistory(ureq, searchCtrl);
return searchCtrl;
}
use of org.olat.core.gui.control.WindowControl in project OpenOLAT by OpenOLAT.
the class MembersOverviewController method updateWaitingList.
private AbstractMemberListController updateWaitingList(UserRequest ureq) {
if (waitingCtrl == null) {
OLATResourceable ores = OresHelper.createOLATResourceableInstance(SEG_WAITING_MEMBERS, 0l);
ThreadLocalUserActivityLogger.addLoggingResourceInfo(LoggingResourceable.wrapBusinessPath(ores));
WindowControl bwControl = BusinessControlFactory.getInstance().createBusinessWindowControl(ores, null, getWindowControl());
SearchMembersParams searchParams = new SearchMembersParams(false, false, false, false, false, true, false);
String infos = translate("waiting.infos");
waitingCtrl = new MemberListController(ureq, bwControl, toolbarPanel, repoEntry, coachCourseEnv, searchParams, infos);
listenTo(waitingCtrl);
}
waitingCtrl.reloadModel();
waitingCtrl.overrideManaged(ureq, overrideManaged);
mainVC.put("membersCmp", waitingCtrl.getInitialComponent());
addToHistory(ureq, waitingCtrl);
return waitingCtrl;
}
use of org.olat.core.gui.control.WindowControl in project OpenOLAT by OpenOLAT.
the class MembersOverviewController method updateOwners.
private AbstractMemberListController updateOwners(UserRequest ureq) {
if (ownersCtrl == null) {
OLATResourceable ores = OresHelper.createOLATResourceableInstance(SEG_OWNERS_MEMBERS, 0l);
ThreadLocalUserActivityLogger.addLoggingResourceInfo(LoggingResourceable.wrapBusinessPath(ores));
WindowControl bwControl = BusinessControlFactory.getInstance().createBusinessWindowControl(ores, null, getWindowControl());
SearchMembersParams searchParams = new SearchMembersParams(true, false, false, false, false, false, false);
String infos = translate("owners.infos");
ownersCtrl = new MemberListController(ureq, bwControl, toolbarPanel, repoEntry, coachCourseEnv, searchParams, infos);
listenTo(ownersCtrl);
}
ownersCtrl.reloadModel();
ownersCtrl.overrideManaged(ureq, overrideManaged);
mainVC.put("membersCmp", ownersCtrl.getInitialComponent());
addToHistory(ureq, ownersCtrl);
return ownersCtrl;
}
use of org.olat.core.gui.control.WindowControl in project OpenOLAT by OpenOLAT.
the class MembersOverviewController method updateAllMembers.
private AbstractMemberListController updateAllMembers(UserRequest ureq) {
if (allMemberListCtrl == null) {
OLATResourceable ores = OresHelper.createOLATResourceableInstance(SEG_ALL_MEMBERS, 0l);
ThreadLocalUserActivityLogger.addLoggingResourceInfo(LoggingResourceable.wrapBusinessPath(ores));
WindowControl bwControl = BusinessControlFactory.getInstance().createBusinessWindowControl(ores, null, getWindowControl());
SearchMembersParams searchParams = new SearchMembersParams(true, true, true, true, true, false, true);
allMemberListCtrl = new MemberListWithOriginFilterController(ureq, bwControl, toolbarPanel, repoEntry, coachCourseEnv, searchParams, null);
listenTo(allMemberListCtrl);
}
allMemberListCtrl.reloadModel();
allMemberListCtrl.overrideManaged(ureq, overrideManaged);
mainVC.put("membersCmp", allMemberListCtrl.getInitialComponent());
addToHistory(ureq, allMemberListCtrl);
return allMemberListCtrl;
}
Aggregations