protected void onRender(Element parent, int index) {
super.onRender(parent, index);
setLayout(new FlowLayout(10));
final FileServiceAsync service = (FileServiceAsync) Registry.get(Examples.FILE_SERVICE);
// data proxy
RpcProxy<List<FileModel>> proxy = new RpcProxy<List<FileModel>>() {
@Override
protected void load(Object loadConfig, AsyncCallback<List<FileModel>> callback) {
service.getFolderChildren((RemoteSortTreeLoadConfig) loadConfig, callback);
}
};
// tree loader
final RemoteSortTreeLoader<FileModel> loader = new BaseRemoteSortTreeLoader<FileModel>(proxy) {