/** * Close drop down, ignoring all changes. */ @EventHandler(value = "click", target = "popup.btnCancel", onFailure = OnFailure.IGNORE) private void onClick$btnCancel() { ok = false; setOpen(false); }
/** * Close drop down and update input box if validation successful */ @EventHandler(value = "click", target = "popup.btnOK", onFailure = OnFailure.IGNORE) private void onClick$btnOK() { if (validateInput()) { setOpen(false); } }
/** * Automatic drop down when input box receives focus. */ @EventHandler("focus") public void onFocus() { if (!isOpen()) { setOpen(true); update(true); } }