Search in sources :

Example 6 with ClosePartEvent

use of org.olat.modules.portfolio.ui.editor.event.ClosePartEvent in project openolat by klemens.

the class TextInputEditorController method formOK.

@Override
protected void formOK(UserRequest ureq) {
    if (StringHelper.containsNonWhitespace(rowsEl.getValue())) {
        try {
            int rows = Integer.parseInt(rowsEl.getValue());
            textInput.setRows(rows);
        } catch (NumberFormatException e) {
            logError("Cannot parse integer: " + rowsEl.getValue(), null);
        }
    }
    textInputCtrl.update();
    fireEvent(ureq, new ChangePartEvent(textInput));
    fireEvent(ureq, new ClosePartEvent(textInput));
}
Also used : ClosePartEvent(org.olat.modules.portfolio.ui.editor.event.ClosePartEvent) ChangePartEvent(org.olat.modules.portfolio.ui.editor.event.ChangePartEvent)

Aggregations

ChangePartEvent (org.olat.modules.portfolio.ui.editor.event.ChangePartEvent)6 ClosePartEvent (org.olat.modules.portfolio.ui.editor.event.ClosePartEvent)6 SliderType (org.olat.modules.forms.model.xml.Rubric.SliderType)2 Slider (org.olat.modules.forms.model.xml.Slider)2 AddElementEvent (org.olat.modules.portfolio.ui.editor.event.AddElementEvent)2