Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on Jun 20th, 2012  |  syntax: None  |  size: 0.32 KB  |  hits: 17  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. remote pupulation of GWT listbox
  2. AsyncCallback<List<Option>> callback = new AsyncCallback<List<Option>>() {
  3.   public void onFailure(Throwable caught) {
  4.     processError(caught);
  5.   }
  6.  
  7.   public void onSuccess(List<Option> result) {
  8.     updateListBox(result);
  9.     showListBox();
  10.   }
  11. };
  12. myRemoteService.getOptions(callback);