use of org.olat.core.gui.control.generic.closablewrapper.CloseableCalloutWindowController in project OpenOLAT by OpenOLAT.
the class TeacherLecturesTableController method doOpenTools.
private void doOpenTools(UserRequest ureq, LectureBlockRow row, FormLink link) {
if (toolsCtrl != null)
return;
removeAsListenerAndDispose(toolsCtrl);
removeAsListenerAndDispose(toolsCalloutCtrl);
LectureBlock block = lectureService.getLectureBlock(row);
if (block == null) {
tableEl.reloadData();
showWarning("lecture.blocks.not.existing");
} else {
toolsCtrl = new ToolsController(ureq, getWindowControl(), row);
listenTo(toolsCtrl);
toolsCalloutCtrl = new CloseableCalloutWindowController(ureq, getWindowControl(), toolsCtrl.getInitialComponent(), link.getFormDispatchId(), "", true, "");
listenTo(toolsCalloutCtrl);
toolsCalloutCtrl.activate();
}
}
use of org.olat.core.gui.control.generic.closablewrapper.CloseableCalloutWindowController in project OpenOLAT by OpenOLAT.
the class QuestionListController method doShare.
protected void doShare(UserRequest ureq) {
String title = translate("filter.view");
removeAsListenerAndDispose(shareTargetCtrl);
shareTargetCtrl = new ShareTargetController(ureq, getWindowControl(), getSecurityCallback());
listenTo(shareTargetCtrl);
removeAsListenerAndDispose(calloutCtrl);
calloutCtrl = new CloseableCalloutWindowController(ureq, getWindowControl(), shareTargetCtrl.getInitialComponent(), shareItem, title, true, null);
listenTo(calloutCtrl);
calloutCtrl.activate();
}
use of org.olat.core.gui.control.generic.closablewrapper.CloseableCalloutWindowController in project OpenOLAT by OpenOLAT.
the class QuestionListController method doOpenImport.
private void doOpenImport(UserRequest ureq) {
String title = translate("import");
removeAsListenerAndDispose(importSourcesCtrl);
importSourcesCtrl = new ImportSourcesController(ureq, getWindowControl());
listenTo(importSourcesCtrl);
removeAsListenerAndDispose(calloutCtrl);
calloutCtrl = new CloseableCalloutWindowController(ureq, getWindowControl(), importSourcesCtrl.getInitialComponent(), importItem, title, true, null);
listenTo(calloutCtrl);
calloutCtrl.activate();
}
use of org.olat.core.gui.control.generic.closablewrapper.CloseableCalloutWindowController in project OpenOLAT by OpenOLAT.
the class QuestionListController method doChooseTestFormat.
private void doChooseTestFormat(UserRequest ureq, Set<ExportFormatOptions> exportFormatOptions) {
removeAsListenerAndDispose(createTestTargetCtrl);
createTestTargetCtrl = new CreateTestTargetController(ureq, getWindowControl(), exportFormatOptions);
listenTo(createTestTargetCtrl);
removeAsListenerAndDispose(calloutCtrl);
calloutCtrl = new CloseableCalloutWindowController(ureq, getWindowControl(), createTestTargetCtrl.getInitialComponent(), createTest, null, true, null);
listenTo(calloutCtrl);
calloutCtrl.activate();
}
use of org.olat.core.gui.control.generic.closablewrapper.CloseableCalloutWindowController in project openolat by klemens.
the class TeacherRollCallController method doCalloutReasonAbsence.
private void doCalloutReasonAbsence(UserRequest ureq, String elementId, TeacherRollCallRow row) {
boolean canEdit = secCallback.canEdit() && secCallback.canEditAuthorizedAbsences();
reasonCtrl = new ReasonController(ureq, getWindowControl(), row, canEdit);
listenTo(reasonCtrl);
reasonCalloutCtrl = new CloseableCalloutWindowController(ureq, getWindowControl(), reasonCtrl.getInitialComponent(), elementId, "", true, "");
listenTo(reasonCalloutCtrl);
reasonCalloutCtrl.activate();
}
Aggregations