Search in sources :

Example 1 with ImportAuthor_1_ChooseMemberStep

use of org.olat.modules.qpool.ui.wizard.ImportAuthor_1_ChooseMemberStep in project OpenOLAT by OpenOLAT.

the class QuestionListController method doChooseAuthors.

private void doChooseAuthors(UserRequest ureq, List<QuestionItemShort> items) {
    removeAsListenerAndDispose(importAuthorsWizard);
    Step start = new ImportAuthor_1_ChooseMemberStep(ureq, items);
    StepRunnerCallback finish = new StepRunnerCallback() {

        @Override
        public Step execute(UserRequest uureq, WindowControl wControl, StepsRunContext runContext) {
            addAuthors(runContext);
            return StepsMainRunController.DONE_MODIFIED;
        }
    };
    importAuthorsWizard = new StepsMainRunController(ureq, getWindowControl(), start, finish, null, translate("author.item"), "o_sel_qpool_import_1_wizard");
    listenTo(importAuthorsWizard);
    getWindowControl().pushAsModalDialog(importAuthorsWizard.getInitialComponent());
}
Also used : ImportAuthor_1_ChooseMemberStep(org.olat.modules.qpool.ui.wizard.ImportAuthor_1_ChooseMemberStep) StepsMainRunController(org.olat.core.gui.control.generic.wizard.StepsMainRunController) QImport_1_InputStep(org.olat.ims.qti21.questionimport.QImport_1_InputStep) Step(org.olat.core.gui.control.generic.wizard.Step) Export_1_TypeStep(org.olat.modules.qpool.ui.wizard.Export_1_TypeStep) ImportAuthor_1_ChooseMemberStep(org.olat.modules.qpool.ui.wizard.ImportAuthor_1_ChooseMemberStep) WindowControl(org.olat.core.gui.control.WindowControl) StepsRunContext(org.olat.core.gui.control.generic.wizard.StepsRunContext) StepRunnerCallback(org.olat.core.gui.control.generic.wizard.StepRunnerCallback) UserRequest(org.olat.core.gui.UserRequest)

Example 2 with ImportAuthor_1_ChooseMemberStep

use of org.olat.modules.qpool.ui.wizard.ImportAuthor_1_ChooseMemberStep in project openolat by klemens.

the class QuestionListController method doChooseAuthors.

private void doChooseAuthors(UserRequest ureq, List<QuestionItemShort> items) {
    removeAsListenerAndDispose(importAuthorsWizard);
    Step start = new ImportAuthor_1_ChooseMemberStep(ureq, items);
    StepRunnerCallback finish = new StepRunnerCallback() {

        @Override
        public Step execute(UserRequest uureq, WindowControl wControl, StepsRunContext runContext) {
            addAuthors(runContext);
            return StepsMainRunController.DONE_MODIFIED;
        }
    };
    importAuthorsWizard = new StepsMainRunController(ureq, getWindowControl(), start, finish, null, translate("author.item"), "o_sel_qpool_import_1_wizard");
    listenTo(importAuthorsWizard);
    getWindowControl().pushAsModalDialog(importAuthorsWizard.getInitialComponent());
}
Also used : ImportAuthor_1_ChooseMemberStep(org.olat.modules.qpool.ui.wizard.ImportAuthor_1_ChooseMemberStep) StepsMainRunController(org.olat.core.gui.control.generic.wizard.StepsMainRunController) QImport_1_InputStep(org.olat.ims.qti21.questionimport.QImport_1_InputStep) Step(org.olat.core.gui.control.generic.wizard.Step) Export_1_TypeStep(org.olat.modules.qpool.ui.wizard.Export_1_TypeStep) ImportAuthor_1_ChooseMemberStep(org.olat.modules.qpool.ui.wizard.ImportAuthor_1_ChooseMemberStep) WindowControl(org.olat.core.gui.control.WindowControl) StepsRunContext(org.olat.core.gui.control.generic.wizard.StepsRunContext) StepRunnerCallback(org.olat.core.gui.control.generic.wizard.StepRunnerCallback) UserRequest(org.olat.core.gui.UserRequest)

Aggregations

UserRequest (org.olat.core.gui.UserRequest)2 WindowControl (org.olat.core.gui.control.WindowControl)2 Step (org.olat.core.gui.control.generic.wizard.Step)2 StepRunnerCallback (org.olat.core.gui.control.generic.wizard.StepRunnerCallback)2 StepsMainRunController (org.olat.core.gui.control.generic.wizard.StepsMainRunController)2 StepsRunContext (org.olat.core.gui.control.generic.wizard.StepsRunContext)2 QImport_1_InputStep (org.olat.ims.qti21.questionimport.QImport_1_InputStep)2 Export_1_TypeStep (org.olat.modules.qpool.ui.wizard.Export_1_TypeStep)2 ImportAuthor_1_ChooseMemberStep (org.olat.modules.qpool.ui.wizard.ImportAuthor_1_ChooseMemberStep)2