use of org.olat.core.gui.control.generic.wizard.StepRunnerCallback 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());
}
use of org.olat.core.gui.control.generic.wizard.StepRunnerCallback in project openolat by klemens.
the class RepositoryMembersController method doChooseMembers.
private void doChooseMembers(UserRequest ureq) {
removeAsListenerAndDispose(importMembersWizard);
Step start = new ImportMember_1b_ChooseMemberStep(ureq, repoEntry, null, false);
StepRunnerCallback finish = new StepRunnerCallback() {
@Override
public Step execute(UserRequest uureq, WindowControl wControl, StepsRunContext runContext) {
addMembers(uureq, runContext);
return StepsMainRunController.DONE_MODIFIED;
}
};
importMembersWizard = new StepsMainRunController(ureq, getWindowControl(), start, finish, null, translate("add.member"), "o_sel_group_import_1_wizard");
listenTo(importMembersWizard);
getWindowControl().pushAsModalDialog(importMembersWizard.getInitialComponent());
}
use of org.olat.core.gui.control.generic.wizard.StepRunnerCallback in project openolat by klemens.
the class EPAddArtefactController method prepareNewLiveBlogArtefactWizzard.
private void prepareNewLiveBlogArtefactWizzard(UserRequest ureq) {
EPArtefactHandler<?> artHandler = portfolioModule.getArtefactHandler(LiveBlogArtefact.TYPE);
AbstractArtefact artefact1 = artHandler.createArtefact();
artefact1.setAuthor(getIdentity());
artefact1.setCollectionDate(new Date());
// preset as signed by 60%
artefact1.setSignature(60);
Step start = new EPCreateLiveBlogArtefactStep00(ureq, preSelectedStruct, artefact1);
// no vfsTemp!, blog doesn't need a directory
StepRunnerCallback finish = new EPArtefactWizzardStepCallback();
collectStepsCtrl = new StepsMainRunController(ureq, getWindowControl(), start, finish, null, translate("create.blog.artefact.wizzard.title"), "o_sel_artefact_add_wizard o_sel_artefact_add_blog_wizard");
listenTo(collectStepsCtrl);
getWindowControl().pushAsModalDialog(collectStepsCtrl.getInitialComponent());
}
use of org.olat.core.gui.control.generic.wizard.StepRunnerCallback in project openolat by klemens.
the class GroupController method doImportUsers.
private void doImportUsers(UserRequest ureq) {
removeAsListenerAndDispose(userToGroupWizard);
Step start = new UsersToGroupWizardStep00(ureq, addUserMailDefaultTempl, mandatoryEmail);
StepRunnerCallback finish = new StepRunnerCallback() {
@Override
public Step execute(UserRequest uureq, WindowControl wControl, StepsRunContext runContext) {
@SuppressWarnings("unchecked") List<Identity> choosenIdentities = (List<Identity>) runContext.get("members");
MailTemplate customTemplate = (MailTemplate) runContext.get("mailTemplate");
if (choosenIdentities == null || choosenIdentities.size() == 0) {
showError("msg.selectionempty");
} else {
doAddIdentitiesToGroup(uureq, choosenIdentities, customTemplate);
}
return StepsMainRunController.DONE_MODIFIED;
}
};
userToGroupWizard = new StepsMainRunController(ureq, getWindowControl(), start, finish, null, translate("overview.addusers"), "o_sel_secgroup_import_logins_wizard");
listenTo(userToGroupWizard);
getWindowControl().pushAsModalDialog(userToGroupWizard.getInitialComponent());
}
use of org.olat.core.gui.control.generic.wizard.StepRunnerCallback in project openolat by klemens.
the class EditorMainController method launchChecklistsWizard.
private void launchChecklistsWizard(UserRequest ureq) {
removeAsListenerAndDispose(checklistWizard);
Step start = new CheckList_1_CheckboxStep(ureq, ores);
StepRunnerCallback finish = new CheckListStepRunnerCallback(ores);
checklistWizard = new StepsMainRunController(ureq, getWindowControl(), start, finish, null, translate("checklist.wizard"), "o_sel_checklist_wizard", "Assessment#_checklist_multiple");
listenTo(checklistWizard);
getWindowControl().pushAsModalDialog(checklistWizard.getInitialComponent());
}
Aggregations