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