Example #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());
 }
Example #2
0
 protected boolean loadLiveStore(int offset) {
   if (loaderTask == null) {
     loaderTask =
         new DelayedTask(
             new Listener<BaseEvent>() {
               public void handleEvent(BaseEvent be) {
                 doLoad();
               }
             });
   }
   loaderOffset = offset;
   loaderTask.delay(loadDelay);
   if (isLoading) {
     return true;
   } else {
     isLoading = true;
     return false;
   }
 }