예제 #1
0
 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());
 }
예제 #2
0
 /**
  * Checks if is valid.
  *
  * @return true, if is valid
  */
 public boolean isValid() {
   return textField.isValid();
 }