Package com.taobao.zeus.web.platform.shared.rpc

Examples of com.taobao.zeus.web.platform.shared.rpc.FileManagerServiceAsync


            @Override
            public String getKey(FileModel item) {
              return item.getId();
            }
          });
      final FileManagerServiceAsync fileService = com.google.gwt.core.shared.GWT
          .create(FileManagerService.class);
      RpcProxy<FileModel, List<FileModel>> proxy = new RpcProxy<FileModel, List<FileModel>>() {
        @Override
        public void load(FileModel loadConfig,
            AsyncCallback<List<FileModel>> callback) {
          fileService.getCommonFiles(loadConfig, callback);
        }
      };
      final TreeLoader<FileModel> loader = new TreeLoader<FileModel>(
          proxy) {
        @Override
View Full Code Here


            public String getKey(FileModel item) {
              return item.getId();
            }
          });
      myTreeStore.setAutoCommit(true);
      FileManagerServiceAsync fileService = com.google.gwt.core.shared.GWT
          .create(FileManagerService.class);
      fileService
          .getUserFiles(new AbstractAsyncCallback<FileClientBean>() {
            @Override
            public void onSuccess(FileClientBean bean) {
              for (FileClientBean sub : bean.getSubFiles()) {
                myTreeStore.add(sub.getFileModel());
View Full Code Here

TOP

Related Classes of com.taobao.zeus.web.platform.shared.rpc.FileManagerServiceAsync

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.