Esempio n. 1
0
 @Override
 public void onBrowserEvent(Event event) {
   super.onBrowserEvent(event);
   int type = DOM.eventGetType(event);
   if (type == Event.ONKEYDOWN && actionHandler != null) {
     actionHandler.handleKeyboardEvent(event);
     return;
   }
 }
Esempio n. 2
0
 /*
  * (non-Javadoc)
  *
  * @see com.google.gwt.user.client.ui.Widget#onBrowserEvent(com.google.gwt
  * .user.client.Event)
  */
 @Override
 public void onBrowserEvent(Event event) {
   super.onBrowserEvent(event);
   if (DOM.eventGetType(event) == Event.ONLOAD && icon.getElement() == DOM.eventGetTarget(event)) {
     if (layout.getLayoutManager() != null) {
       layout.getLayoutManager().layoutLater();
     } else {
       layout.updateCaptionOffset(caption);
     }
   }
 }