Пример #1
0
 @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());
 }
Пример #2
0
 @UiHandler("save")
 void onSave(ClickEvent event) {
   getUiHandlers()
       .onSave(
           name.getText(),
           repeatable.getValue(),
           titles.getLocaleTexts(),
           descriptions.getLocaleTexts());
 }