Search in sources :

Example 86 with ControllerCreator

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

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 87 with ControllerCreator

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

the class DmzBFWCParts method createHeaderController.

@Override
public Controller createHeaderController(UserRequest ureq, WindowControl wControl) {
    Controller headerCtr = null;
    // ----------- header, optional (e.g. for logo, advertising ) ------------------
    if (CoreSpringFactory.containsBean("fullWebApp.DMZHeaderControllerCreator")) {
        ControllerCreator headerControllerCreator = (ControllerCreator) CoreSpringFactory.getBean("fullWebApp.DMZHeaderControllerCreator");
        headerCtr = headerControllerCreator.createController(ureq, wControl);
    }
    return headerCtr;
}
Also used : LockableController(org.olat.core.commons.fullWebApp.LockableController) Controller(org.olat.core.gui.control.Controller) OlatFooterController(org.olat.gui.control.OlatFooterController) ControllerCreator(org.olat.core.gui.control.creator.ControllerCreator)

Example 88 with ControllerCreator

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

the class DmzBFWCParts method createFooterController.

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

Example 89 with ControllerCreator

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

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)

Example 90 with ControllerCreator

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

the class GuestBFWCParts method createHeaderController.

/**
 * @see org.olat.core.commons.fullWebApp.BaseFullWebappControllerParts#createHeaderController(org.olat.core.gui.UserRequest, org.olat.core.gui.control.WindowControl)
 */
@Override
public Controller createHeaderController(UserRequest ureq, WindowControl wControl) {
    Controller headerCtr = null;
    // ----------- header, optional (e.g. for logo, advertising ) ------------------
    if (CoreSpringFactory.containsBean("fullWebApp.GuestHeaderControllerCreator")) {
        ControllerCreator headerControllerCreator = (ControllerCreator) CoreSpringFactory.getBean("fullWebApp.GuestHeaderControllerCreator");
        headerCtr = headerControllerCreator.createController(ureq, wControl);
    }
    return headerCtr;
}
Also used : Controller(org.olat.core.gui.control.Controller) OlatFooterController(org.olat.gui.control.OlatFooterController) 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