Search in sources :

Example 1 with ConditionEditController

use of org.olat.course.condition.ConditionEditController in project OpenOLAT by OpenOLAT.

the class ENEditController method init.

/**
 * @param config
 * @param ureq
 * @param enCourseNode
 * @param course
 * @param euce
 */
private void init(ModuleConfiguration config, UserRequest ureq, ENCourseNode enCourseNode, ICourse courseP, UserCourseEnvironment euceP) {
    this.moduleConfiguration = config;
    this.courseNode = enCourseNode;
    this.euce = euceP;
    myContent = createVelocityContainer("edit");
    doFormInit(ureq);
    // Accessibility precondition
    Condition accessCondition = courseNode.getPreConditionAccess();
    accessibilityCondContr = new ConditionEditController(ureq, getWindowControl(), euceP, accessCondition, AssessmentHelper.getAssessableNodes(courseP.getEditorTreeModel(), enCourseNode));
    listenTo(accessibilityCondContr);
// not needed: setInitialComponent(myContent) since tabbable controller
}
Also used : Condition(org.olat.course.condition.Condition) ConditionEditController(org.olat.course.condition.ConditionEditController)

Example 2 with ConditionEditController

use of org.olat.course.condition.ConditionEditController in project OpenOLAT by OpenOLAT.

the class IQEditController method init.

private void init(UserRequest ureq) {
    configurationCtrl = new IQConfigurationController(ureq, getWindowControl(), stackPanel, course, courseNode, type);
    listenTo(configurationCtrl);
    layoutConfigurationCtrl = new IQLayoutConfigurationController(ureq, getWindowControl(), course, courseNode, type);
    listenTo(layoutConfigurationCtrl);
    if (AssessmentInstance.QMD_ENTRY_TYPE_ASSESS.equals(type)) {
        highScoreNodeConfigController = new HighScoreEditController(ureq, getWindowControl(), moduleConfiguration);
        listenTo(highScoreNodeConfigController);
    }
    Condition accessCondition = courseNode.getPreConditionAccess();
    accessibilityCondContr = new ConditionEditController(ureq, getWindowControl(), euce, accessCondition, AssessmentHelper.getAssessableNodes(course.getEditorTreeModel(), courseNode));
    listenTo(accessibilityCondContr);
}
Also used : Condition(org.olat.course.condition.Condition) HighScoreEditController(org.olat.course.highscore.ui.HighScoreEditController) ConditionEditController(org.olat.course.condition.ConditionEditController)

Example 3 with ConditionEditController

use of org.olat.course.condition.ConditionEditController in project openolat by klemens.

the class ENEditController method init.

/**
 * @param config
 * @param ureq
 * @param enCourseNode
 * @param course
 * @param euce
 */
private void init(ModuleConfiguration config, UserRequest ureq, ENCourseNode enCourseNode, ICourse courseP, UserCourseEnvironment euceP) {
    this.moduleConfiguration = config;
    this.courseNode = enCourseNode;
    this.euce = euceP;
    myContent = createVelocityContainer("edit");
    doFormInit(ureq);
    // Accessibility precondition
    Condition accessCondition = courseNode.getPreConditionAccess();
    accessibilityCondContr = new ConditionEditController(ureq, getWindowControl(), euceP, accessCondition, AssessmentHelper.getAssessableNodes(courseP.getEditorTreeModel(), enCourseNode));
    listenTo(accessibilityCondContr);
// not needed: setInitialComponent(myContent) since tabbable controller
}
Also used : Condition(org.olat.course.condition.Condition) ConditionEditController(org.olat.course.condition.ConditionEditController)

Example 4 with ConditionEditController

use of org.olat.course.condition.ConditionEditController in project openolat by klemens.

the class IQEditController method init.

private void init(UserRequest ureq) {
    configurationCtrl = new IQConfigurationController(ureq, getWindowControl(), stackPanel, course, courseNode, type);
    listenTo(configurationCtrl);
    layoutConfigurationCtrl = new IQLayoutConfigurationController(ureq, getWindowControl(), course, courseNode, type);
    listenTo(layoutConfigurationCtrl);
    if (AssessmentInstance.QMD_ENTRY_TYPE_ASSESS.equals(type)) {
        highScoreNodeConfigController = new HighScoreEditController(ureq, getWindowControl(), moduleConfiguration);
        listenTo(highScoreNodeConfigController);
    }
    Condition accessCondition = courseNode.getPreConditionAccess();
    accessibilityCondContr = new ConditionEditController(ureq, getWindowControl(), euce, accessCondition, AssessmentHelper.getAssessableNodes(course.getEditorTreeModel(), courseNode));
    listenTo(accessibilityCondContr);
}
Also used : Condition(org.olat.course.condition.Condition) HighScoreEditController(org.olat.course.highscore.ui.HighScoreEditController) ConditionEditController(org.olat.course.condition.ConditionEditController)

Aggregations

Condition (org.olat.course.condition.Condition)4 ConditionEditController (org.olat.course.condition.ConditionEditController)4 HighScoreEditController (org.olat.course.highscore.ui.HighScoreEditController)2