Search in sources :

Example 51 with ControllerCreator

use of org.olat.core.gui.control.creator.ControllerCreator in project OpenOLAT by OpenOLAT.

the class OlatDmzTopNavController method doImpressum.

private void doImpressum(UserRequest ureq) {
    ControllerCreator impressumControllerCreator = new ControllerCreator() {

        @Override
        public Controller createController(UserRequest lureq, WindowControl lwControl) {
            return new ImpressumDmzMainController(lureq, lwControl);
        }
    };
    PopupBrowserWindow popupBrowserWindow = Windows.getWindows(ureq).getWindowManager().createNewUnauthenticatedPopupWindowFor(ureq, impressumControllerCreator);
    popupBrowserWindow.open(ureq);
}
Also used : ImpressumDmzMainController(org.olat.core.commons.controllers.impressum.ImpressumDmzMainController) PopupBrowserWindow(org.olat.core.gui.control.generic.popup.PopupBrowserWindow) WindowControl(org.olat.core.gui.control.WindowControl) ControllerCreator(org.olat.core.gui.control.creator.ControllerCreator) UserRequest(org.olat.core.gui.UserRequest)

Example 52 with ControllerCreator

use of org.olat.core.gui.control.creator.ControllerCreator in project OpenOLAT by OpenOLAT.

the class QTI12AssessmentStatisticsController method printPages.

private void printPages(UserRequest ureq) {
    ControllerCreator printControllerCreator = new ControllerCreator() {

        public Controller createController(UserRequest lureq, WindowControl lwControl) {
            return new QTI12PrintController(lureq, lwControl, resourceResult);
        }
    };
    ControllerCreator layoutCtrlr = BaseFullWebappPopupLayoutFactory.createPrintPopupLayout(printControllerCreator);
    openInNewBrowserWindow(ureq, layoutCtrlr);
}
Also used : WindowControl(org.olat.core.gui.control.WindowControl) ControllerCreator(org.olat.core.gui.control.creator.ControllerCreator) UserRequest(org.olat.core.gui.UserRequest)

Example 53 with ControllerCreator

use of org.olat.core.gui.control.creator.ControllerCreator in project OpenOLAT by OpenOLAT.

the class GuestBFWCParts method createTopNavController.

/**
 * @see org.olat.core.commons.fullWebApp.BaseFullWebappControllerParts#createTopNavController(org.olat.core.gui.UserRequest, org.olat.core.gui.control.WindowControl)
 */
@Override
public LockableController createTopNavController(UserRequest ureq, WindowControl wControl) {
    if (showTopNav) {
        LockableController topNavCtr = null;
        if (CoreSpringFactory.containsBean("fullWebApp.GuestTopNavControllerCreator")) {
            ControllerCreator headerControllerCreator = (ControllerCreator) CoreSpringFactory.getBean("fullWebApp.GuestTopNavControllerCreator");
            topNavCtr = (LockableController) headerControllerCreator.createController(ureq, wControl);
        }
        return topNavCtr;
    } else {
        return null;
    }
}
Also used : LockableController(org.olat.core.commons.fullWebApp.LockableController) ControllerCreator(org.olat.core.gui.control.creator.ControllerCreator)

Example 54 with ControllerCreator

use of org.olat.core.gui.control.creator.ControllerCreator in project OpenOLAT by OpenOLAT.

the class AuthBFWCParts method createFooterController.

/**
 * @see org.olat.core.commons.fullWebApp.BaseFullWebappControllerParts#createFooterController(org.olat.core.gui.UserRequest, org.olat.core.gui.control.WindowControl)
 */
@Override
public LockableController createFooterController(UserRequest ureq, WindowControl wControl) {
    Controller footerCtr = null;
    // ----------- footer, optional (e.g. for copyright, powerd by) ------------------
    if (CoreSpringFactory.containsBean("fullWebApp.FooterControllerCreator")) {
        ControllerCreator footerCreator = (ControllerCreator) CoreSpringFactory.getBean("fullWebApp.FooterControllerCreator");
        footerCtr = footerCreator.createController(ureq, wControl);
    }
    return (LockableController) footerCtr;
}
Also used : LockableController(org.olat.core.commons.fullWebApp.LockableController) LockableController(org.olat.core.commons.fullWebApp.LockableController) Controller(org.olat.core.gui.control.Controller) ControllerCreator(org.olat.core.gui.control.creator.ControllerCreator)

Example 55 with ControllerCreator

use of org.olat.core.gui.control.creator.ControllerCreator in project OpenOLAT by OpenOLAT.

the class DmzBFWCParts method createTopNavController.

@Override
public LockableController createTopNavController(UserRequest ureq, WindowControl wControl) {
    if (showTopNav) {
        LockableController topNavCtr = null;
        if (CoreSpringFactory.containsBean("fullWebApp.DMZTopNavControllerCreator")) {
            ControllerCreator headerControllerCreator = (ControllerCreator) CoreSpringFactory.getBean("fullWebApp.DMZTopNavControllerCreator");
            topNavCtr = (LockableController) headerControllerCreator.createController(ureq, wControl);
        }
        return topNavCtr;
    } else {
        return null;
    }
}
Also used : LockableController(org.olat.core.commons.fullWebApp.LockableController) ControllerCreator(org.olat.core.gui.control.creator.ControllerCreator)

Aggregations

ControllerCreator (org.olat.core.gui.control.creator.ControllerCreator)92 UserRequest (org.olat.core.gui.UserRequest)72 WindowControl (org.olat.core.gui.control.WindowControl)72 Controller (org.olat.core.gui.control.Controller)42 LayoutMain3ColsController (org.olat.core.commons.fullWebApp.LayoutMain3ColsController)28 PopupBrowserWindow (org.olat.core.gui.control.generic.popup.PopupBrowserWindow)28 LockableController (org.olat.core.commons.fullWebApp.LockableController)20 CloseableModalController (org.olat.core.gui.control.generic.closablewrapper.CloseableModalController)12 Identity (org.olat.core.id.Identity)12 ArrayList (java.util.ArrayList)10 List (java.util.List)10 FormBasicController (org.olat.core.gui.components.form.flexible.impl.FormBasicController)10 TableEvent (org.olat.core.gui.components.table.TableEvent)10 AssertException (org.olat.core.logging.AssertException)10 UserInfoMainController (org.olat.user.UserInfoMainController)10 OlatFooterController (org.olat.gui.control.OlatFooterController)8 HashMap (java.util.HashMap)6 SingleIdentityChosenEvent (org.olat.basesecurity.events.SingleIdentityChosenEvent)6 TableMultiSelectEvent (org.olat.core.gui.components.table.TableMultiSelectEvent)6 Event (org.olat.core.gui.control.Event)6