Пример #1
0
  @Override
  public void onSuccess(List<DocumentMetadata> result) {
    if (result == null || result.size() == 0) {
      collaborator.statusUpdate("No documents available.");
    } else {
      collaborator.statusUpdate("Document list updated.");
      GWT.log("Got " + result.size() + " documents.");
      collaborator.documentList.clear();

      for (DocumentMetadata meta : result) {
        collaborator.documentList.addItem(meta.getTitle(), meta.getKey());
      }
    }
    collaborator.refreshDoc.setEnabled(true);
  }