Search in sources :

Example 41 with WindowControl

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);
    }
}
Also used : OLATResourceable(org.olat.core.id.OLATResourceable) CloseableModalController(org.olat.core.gui.control.generic.closablewrapper.CloseableModalController) WindowControl(org.olat.core.gui.control.WindowControl)

Example 42 with WindowControl

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;
}
Also used : OLATResourceable(org.olat.core.id.OLATResourceable) WindowControl(org.olat.core.gui.control.WindowControl)

Example 43 with WindowControl

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;
}
Also used : AbstractMemberListController(org.olat.group.ui.main.AbstractMemberListController) OLATResourceable(org.olat.core.id.OLATResourceable) SearchMembersParams(org.olat.group.ui.main.SearchMembersParams) WindowControl(org.olat.core.gui.control.WindowControl)

Example 44 with WindowControl

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;
}
Also used : AbstractMemberListController(org.olat.group.ui.main.AbstractMemberListController) OLATResourceable(org.olat.core.id.OLATResourceable) SearchMembersParams(org.olat.group.ui.main.SearchMembersParams) WindowControl(org.olat.core.gui.control.WindowControl)

Example 45 with WindowControl

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;
}
Also used : OLATResourceable(org.olat.core.id.OLATResourceable) SearchMembersParams(org.olat.group.ui.main.SearchMembersParams) WindowControl(org.olat.core.gui.control.WindowControl)

Aggregations

WindowControl (org.olat.core.gui.control.WindowControl)628 OLATResourceable (org.olat.core.id.OLATResourceable)300 UserRequest (org.olat.core.gui.UserRequest)136 Controller (org.olat.core.gui.control.Controller)70 ControllerCreator (org.olat.core.gui.control.creator.ControllerCreator)68 RepositoryEntry (org.olat.repository.RepositoryEntry)68 StepsMainRunController (org.olat.core.gui.control.generic.wizard.StepsMainRunController)64 ContextEntry (org.olat.core.id.context.ContextEntry)58 Step (org.olat.core.gui.control.generic.wizard.Step)56 StepRunnerCallback (org.olat.core.gui.control.generic.wizard.StepRunnerCallback)56 StepsRunContext (org.olat.core.gui.control.generic.wizard.StepsRunContext)56 BusinessControl (org.olat.core.id.context.BusinessControl)56 LayoutMain3ColsController (org.olat.core.commons.fullWebApp.LayoutMain3ColsController)46 ArrayList (java.util.ArrayList)42 Identity (org.olat.core.id.Identity)38 StateSite (org.olat.core.id.context.StateSite)32 PopupBrowserWindow (org.olat.core.gui.control.generic.popup.PopupBrowserWindow)28 AssertException (org.olat.core.logging.AssertException)24 QuestionsController (org.olat.modules.qpool.ui.QuestionsController)22 List (java.util.List)20