@UiHandler("btnGetAllContacts")
 void onGetAllContacts(ClickEvent e) {
   List<String> listItems = acWithImage.getItemValues();
   for (String item : listItems) {
     MaterialToast.alert(item);
   }
 }
 @UiHandler("btnGetAll")
 void onGetAll(ClickEvent e) {
   List<String> listItems = acList.getItemValues();
   for (String item : listItems) {
     MaterialToast.alert(item);
   }
   acWithImage.setError("P");
 }
Example #3
0
 @UiHandler("delete")
 public void onDeleteReference(ClickEvent event) {
   if (parent.removeStandard(getText())) {
     this.removeFromParent();
   } else {
     MaterialToast.fireToast("Error in removing standard keyword: " + getText());
   }
 }
Example #4
0
 @UiHandler("newKeywordButton")
 void onNewKeywordButton(ClickEvent event) {
   if (parent.addSynonymToStandard(getText(), newKeywordText.getText())) {
     addSynonymToPanel(newKeywordText.getText());
   } else {
     MaterialToast.fireToast(
         "Error in adding keyword: " + getText() + ": " + newKeywordText.getText());
   }
 }
Example #5
0
 public boolean removeKeyword(String keyword) {
   MaterialToast.fireToast("removeKeyword");
   return parent.removeSynonymFromStandard(getText(), keyword);
 }