protected void onFieldKeyUp(FieldEvent fe) { int key = fe.getKeyCode(); if (key == KeyCodes.KEY_ENTER && field.isValid()) { fe.stopEvent(); menu.hide(true); return; } updateTask.delay(getUpdateBuffer()); }
/** * Checks if is valid. * * @return true, if is valid */ public boolean isValid() { return textField.isValid(); }