@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