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));
}
Aggregations