Search in sources :

Example 1 with TextInput

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

the class TextInputHandler method createPageElement.

@Override
public PageElement createPageElement(Locale locale) {
    TextInput part = new TextInput();
    part.setId(UUID.randomUUID().toString());
    part.setRows(12);
    return part;
}
Also used : TextInput(org.olat.modules.forms.model.xml.TextInput)

Example 2 with TextInput

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

the class EvaluationFormController method forgeElement.

private EvaluationFormElementWrapper forgeElement(UserRequest ureq, AbstractElement element) {
    EvaluationFormElementWrapper wrapper = null;
    String type = element.getType();
    switch(type) {
        case "formhtitle":
        case "formhr":
        case "formhtmlraw":
            wrapper = new EvaluationFormElementWrapper(element);
            break;
        case "formrubric":
            wrapper = forgeRubric((Rubric) element);
            break;
        case "formtextinput":
            wrapper = forgeTextInput((TextInput) element);
            break;
        case "formfileupload":
            wrapper = forgeFileUpload(ureq, (FileUpload) element);
            break;
    }
    return wrapper;
}
Also used : Rubric(org.olat.modules.forms.model.xml.Rubric) EvaluationFormElementWrapper(org.olat.modules.forms.ui.model.EvaluationFormElementWrapper) TextInput(org.olat.modules.forms.model.xml.TextInput) FileUpload(org.olat.modules.forms.model.xml.FileUpload)

Example 3 with TextInput

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

the class TextInputHandler method createPageElement.

@Override
public PageElement createPageElement(Locale locale) {
    TextInput part = new TextInput();
    part.setId(UUID.randomUUID().toString());
    part.setRows(12);
    return part;
}
Also used : TextInput(org.olat.modules.forms.model.xml.TextInput)

Example 4 with TextInput

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

the class EvaluationFormController method forgeElement.

private EvaluationFormElementWrapper forgeElement(UserRequest ureq, AbstractElement element) {
    EvaluationFormElementWrapper wrapper = null;
    String type = element.getType();
    switch(type) {
        case "formhtitle":
        case "formhr":
        case "formhtmlraw":
            wrapper = new EvaluationFormElementWrapper(element);
            break;
        case "formrubric":
            wrapper = forgeRubric((Rubric) element);
            break;
        case "formtextinput":
            wrapper = forgeTextInput((TextInput) element);
            break;
        case "formfileupload":
            wrapper = forgeFileUpload(ureq, (FileUpload) element);
            break;
    }
    return wrapper;
}
Also used : Rubric(org.olat.modules.forms.model.xml.Rubric) EvaluationFormElementWrapper(org.olat.modules.forms.ui.model.EvaluationFormElementWrapper) TextInput(org.olat.modules.forms.model.xml.TextInput) FileUpload(org.olat.modules.forms.model.xml.FileUpload)

Aggregations

TextInput (org.olat.modules.forms.model.xml.TextInput)4 FileUpload (org.olat.modules.forms.model.xml.FileUpload)2 Rubric (org.olat.modules.forms.model.xml.Rubric)2 EvaluationFormElementWrapper (org.olat.modules.forms.ui.model.EvaluationFormElementWrapper)2