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);
}
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);
}
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;
}
}
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;
}
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;
}
}
Aggregations