Search in sources :

Example 1 with AbstractElement

use of org.olat.modules.forms.model.xml.AbstractElement in project OpenOLAT by OpenOLAT.

the class CompareEvaluationsFormController method updateElements.

private void updateElements(UserRequest ureq) {
    List<EvaluationFormElementWrapper> elementWrappers = new ArrayList<>();
    for (AbstractElement element : form.getElements()) {
        appendsElement(ureq, element, elementWrappers);
    }
    flc.contextPut("elements", elementWrappers);
}
Also used : AbstractElement(org.olat.modules.forms.model.xml.AbstractElement) EvaluationFormElementWrapper(org.olat.modules.forms.ui.model.EvaluationFormElementWrapper) ArrayList(java.util.ArrayList)

Example 2 with AbstractElement

use of org.olat.modules.forms.model.xml.AbstractElement in project OpenOLAT by OpenOLAT.

the class EvaluationFormController method updateElements.

private void updateElements(UserRequest ureq) {
    List<EvaluationFormElementWrapper> elementWrappers = new ArrayList<>();
    for (AbstractElement element : form.getElements()) {
        EvaluationFormElementWrapper wrapper = forgeElement(ureq, element);
        if (wrapper != null) {
            elementWrappers.add(wrapper);
        }
    }
    elementWrapperList = elementWrappers;
    flc.contextPut("elements", elementWrappers);
}
Also used : AbstractElement(org.olat.modules.forms.model.xml.AbstractElement) EvaluationFormElementWrapper(org.olat.modules.forms.ui.model.EvaluationFormElementWrapper) ArrayList(java.util.ArrayList)

Example 3 with AbstractElement

use of org.olat.modules.forms.model.xml.AbstractElement in project openolat by klemens.

the class CompareEvaluationsFormController method updateElements.

private void updateElements(UserRequest ureq) {
    List<EvaluationFormElementWrapper> elementWrappers = new ArrayList<>();
    for (AbstractElement element : form.getElements()) {
        appendsElement(ureq, element, elementWrappers);
    }
    flc.contextPut("elements", elementWrappers);
}
Also used : AbstractElement(org.olat.modules.forms.model.xml.AbstractElement) EvaluationFormElementWrapper(org.olat.modules.forms.ui.model.EvaluationFormElementWrapper) ArrayList(java.util.ArrayList)

Example 4 with AbstractElement

use of org.olat.modules.forms.model.xml.AbstractElement in project openolat by klemens.

the class EvaluationFormController method updateElements.

private void updateElements(UserRequest ureq) {
    List<EvaluationFormElementWrapper> elementWrappers = new ArrayList<>();
    for (AbstractElement element : form.getElements()) {
        EvaluationFormElementWrapper wrapper = forgeElement(ureq, element);
        if (wrapper != null) {
            elementWrappers.add(wrapper);
        }
    }
    elementWrapperList = elementWrappers;
    flc.contextPut("elements", elementWrappers);
}
Also used : AbstractElement(org.olat.modules.forms.model.xml.AbstractElement) EvaluationFormElementWrapper(org.olat.modules.forms.ui.model.EvaluationFormElementWrapper) ArrayList(java.util.ArrayList)

Aggregations

ArrayList (java.util.ArrayList)4 AbstractElement (org.olat.modules.forms.model.xml.AbstractElement)4 EvaluationFormElementWrapper (org.olat.modules.forms.ui.model.EvaluationFormElementWrapper)4