Example #1
0
 @UiHandler("delete")
 public void onDeleteReference(ClickEvent event) {
   if (parent.removeStandard(getText())) {
     this.removeFromParent();
   } else {
     MaterialToast.fireToast("Error in removing standard keyword: " + getText());
   }
 }
Example #2
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 #3
0
 public boolean removeKeyword(String keyword) {
   MaterialToast.fireToast("removeKeyword");
   return parent.removeSynonymFromStandard(getText(), keyword);
 }