Search in sources :

Example 51 with CloseableModalController

use of org.olat.core.gui.control.generic.closablewrapper.CloseableModalController in project OpenOLAT by OpenOLAT.

the class IQIdentityListCourseNodeController method doConfirmResetData.

private void doConfirmResetData(UserRequest ureq) {
    AssessmentToolOptions asOptions = getOptions();
    CourseEnvironment courseEnv = getCourseEnvironment();
    resetDataCtrl = new QTI21ResetDataController(ureq, getWindowControl(), courseEnv, asOptions, (IQTESTCourseNode) courseNode);
    listenTo(resetDataCtrl);
    String title = translate("tool.reset");
    cmc = new CloseableModalController(getWindowControl(), null, resetDataCtrl.getInitialComponent(), true, title, true);
    listenTo(cmc);
    cmc.activate();
}
Also used : IQTESTCourseNode(org.olat.course.nodes.IQTESTCourseNode) UserCourseEnvironment(org.olat.course.run.userview.UserCourseEnvironment) CourseEnvironment(org.olat.course.run.environment.CourseEnvironment) CloseableModalController(org.olat.core.gui.control.generic.closablewrapper.CloseableModalController) AssessmentToolOptions(org.olat.modules.assessment.AssessmentToolOptions) QTI21ResetDataController(org.olat.ims.qti21.ui.QTI21ResetDataController)

Example 52 with CloseableModalController

use of org.olat.core.gui.control.generic.closablewrapper.CloseableModalController in project OpenOLAT by OpenOLAT.

the class QTI21IdentityListCourseNodeToolsController method doConfirmExtraTime.

private void doConfirmExtraTime(UserRequest ureq) {
    List<AssessmentTestSession> testSessions = Collections.singletonList(lastSession);
    extraTimeCtrl = new ConfirmExtraTimeController(ureq, getWindowControl(), courseEntry, testSessions);
    listenTo(extraTimeCtrl);
    String title = translate("extra.time");
    cmc = new CloseableModalController(getWindowControl(), null, extraTimeCtrl.getInitialComponent(), true, title, true);
    listenTo(cmc);
    cmc.activate();
}
Also used : AssessmentTestSession(org.olat.ims.qti21.AssessmentTestSession) CloseableModalController(org.olat.core.gui.control.generic.closablewrapper.CloseableModalController)

Example 53 with CloseableModalController

use of org.olat.core.gui.control.generic.closablewrapper.CloseableModalController in project OpenOLAT by OpenOLAT.

the class QTI21IdentityListCourseNodeToolsController method doConfirmDeleteData.

private void doConfirmDeleteData(UserRequest ureq) {
    resetDataCtrl = new QTI21ResetDataController(ureq, getWindowControl(), courseEntry, (IQTESTCourseNode) courseNode, assessedIdentity);
    listenTo(resetDataCtrl);
    String title = translate("reset.test.data.title");
    cmc = new CloseableModalController(getWindowControl(), null, resetDataCtrl.getInitialComponent(), true, title, true);
    listenTo(cmc);
    cmc.activate();
}
Also used : IQTESTCourseNode(org.olat.course.nodes.IQTESTCourseNode) CloseableModalController(org.olat.core.gui.control.generic.closablewrapper.CloseableModalController) QTI21ResetDataController(org.olat.ims.qti21.ui.QTI21ResetDataController)

Example 54 with CloseableModalController

use of org.olat.core.gui.control.generic.closablewrapper.CloseableModalController in project OpenOLAT by OpenOLAT.

the class QTI21IdentityListCourseNodeToolsController method doConfirmReopenTest.

private void doConfirmReopenTest(UserRequest ureq) {
    reopenCtrl = new ConfirmReopenController(ureq, getWindowControl(), assessedUserCourseEnv.getCourseEnvironment(), testCourseNode, lastSession);
    listenTo(reopenCtrl);
    String title = translate("reopen.test");
    cmc = new CloseableModalController(getWindowControl(), null, reopenCtrl.getInitialComponent(), true, title, true);
    listenTo(cmc);
    cmc.activate();
}
Also used : CloseableModalController(org.olat.core.gui.control.generic.closablewrapper.CloseableModalController)

Example 55 with CloseableModalController

use of org.olat.core.gui.control.generic.closablewrapper.CloseableModalController in project OpenOLAT by OpenOLAT.

the class OpenMeetingsEditFormController method doEditRoom.

protected void doEditRoom(UserRequest ureq) {
    try {
        cleanupPopups();
        editController = new OpenMeetingsRoomEditController(ureq, getWindowControl(), null, course, courseNode.getIdent(), defaultSettings);
        listenTo(editController);
        cmc = new CloseableModalController(getWindowControl(), translate("close"), editController.getInitialComponent(), true, translate("edit.room"));
        listenTo(cmc);
        cmc.activate();
    } catch (Exception e) {
        showError(OpenMeetingsException.SERVER_NOT_I18N_KEY);
    }
}
Also used : CloseableModalController(org.olat.core.gui.control.generic.closablewrapper.CloseableModalController) OpenMeetingsRoomEditController(org.olat.modules.openmeetings.ui.OpenMeetingsRoomEditController) OpenMeetingsException(org.olat.modules.openmeetings.manager.OpenMeetingsException)

Aggregations

CloseableModalController (org.olat.core.gui.control.generic.closablewrapper.CloseableModalController)789 RepositoryEntry (org.olat.repository.RepositoryEntry)52 ArrayList (java.util.ArrayList)48 Identity (org.olat.core.id.Identity)42 ReferencableEntriesSearchController (org.olat.repository.controllers.ReferencableEntriesSearchController)38 VFSContainer (org.olat.core.util.vfs.VFSContainer)24 Component (org.olat.core.gui.components.Component)20 ContactMessage (org.olat.core.util.mail.ContactMessage)20 ContactFormController (org.olat.modules.co.ContactFormController)20 File (java.io.File)17 List (java.util.List)16 UserSearchController (org.olat.admin.user.UserSearchController)16 TableEvent (org.olat.core.gui.components.table.TableEvent)16 TableMultiSelectEvent (org.olat.core.gui.components.table.TableMultiSelectEvent)16 ContactList (org.olat.core.util.mail.ContactList)16 MailTemplate (org.olat.core.util.mail.MailTemplate)14 OLATResourceable (org.olat.core.id.OLATResourceable)12 MailNotificationEditController (org.olat.core.util.mail.MailNotificationEditController)12 OLATSecurityException (org.olat.core.logging.OLATSecurityException)10 Roles (org.olat.core.id.Roles)8