use of org.olat.core.gui.control.creator.ControllerCreator in project openolat by klemens.
the class OlatFooterController method doOpenImpressum.
protected void doOpenImpressum(UserRequest ureq) {
ControllerCreator impressumControllerCreator = new ControllerCreator() {
@Override
public Controller createController(UserRequest lureq, WindowControl lwControl) {
return new ImpressumMainController(lureq, lwControl);
}
};
PopupBrowserWindow popupBrowserWindow;
if (ureq.getUserSession().isAuthenticated()) {
popupBrowserWindow = Windows.getWindows(ureq).getWindowManager().createNewPopupBrowserWindowFor(ureq, impressumControllerCreator);
} else {
popupBrowserWindow = Windows.getWindows(ureq).getWindowManager().createNewUnauthenticatedPopupWindowFor(ureq, impressumControllerCreator);
}
popupBrowserWindow.open(ureq);
}
use of org.olat.core.gui.control.creator.ControllerCreator in project openolat by klemens.
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 klemens.
the class AssessmentResultController method doPrint.
private void doPrint(UserRequest ureq) {
ControllerCreator creator = (uureq, wwControl) -> {
AssessmentResultController printViewCtrl = new AssessmentResultController(uureq, wwControl, assessedIdentity, anonym, candidateSession, fUnzippedDirRoot, mapperUri, submissionMapperUri, options, false, true, false);
printViewCtrl.flc.contextPut("printCommand", Boolean.TRUE);
listenTo(printViewCtrl);
return printViewCtrl;
};
openInNewBrowserWindow(ureq, creator);
}
use of org.olat.core.gui.control.creator.ControllerCreator in project openolat by klemens.
the class QTI21AssessmentTestStatisticsController method printPages.
private void printPages(UserRequest ureq) {
ControllerCreator printControllerCreator = new ControllerCreator() {
@Override
public Controller createController(UserRequest lureq, WindowControl lwControl) {
return new QTI21PrintController(lureq, lwControl, resourceResult);
}
};
ControllerCreator layoutCtrlr = BaseFullWebappPopupLayoutFactory.createPrintPopupLayout(printControllerCreator);
openInNewBrowserWindow(ureq, layoutCtrlr);
}
use of org.olat.core.gui.control.creator.ControllerCreator in project openolat by klemens.
the class AuthBFWCParts 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.HeaderControllerCreator")) {
ControllerCreator headerControllerCreator = (ControllerCreator) CoreSpringFactory.getBean("fullWebApp.HeaderControllerCreator");
headerCtr = headerControllerCreator.createController(ureq, wControl);
}
return headerCtr;
}
Aggregations