@Override public void setVocabulary(VocabularyDto vocabulary, JsArrayString locales) { name.setText(vocabulary.getName()); titles.setLocaleTexts(vocabulary.getTitleArray(), JsArrays.toList(locales)); descriptions.setLocaleTexts(vocabulary.getDescriptionArray(), JsArrays.toList(locales)); repeatable.setValue(vocabulary.hasRepeatable() && vocabulary.getRepeatable()); }
@UiHandler("save") void onSave(ClickEvent event) { getUiHandlers() .onSave( name.getText(), repeatable.getValue(), titles.getLocaleTexts(), descriptions.getLocaleTexts()); }