panel.setWidth("100%");
panel.setHeight("100%");
panel.setFrame(true);
panel.setCollapsible(false);
panel.setHeaderVisible(false);
panel.add(searchForm, new RowData(1, -1, new Margins(0)));
RpcProxy<PagingLoadResult<GWTJahiaNode>> proxy = new RpcProxy<PagingLoadResult<GWTJahiaNode>>() {
@Override
public void load(Object loadConfig, AsyncCallback<PagingLoadResult<GWTJahiaNode>> callback) {
doSearch((PagingLoadConfig) loadConfig, callback);
}
};
// loader
loader = new BasePagingLoader<PagingLoadResult<GWTJahiaNode>>(proxy);
loader.setRemoteSort(true);
final PagingToolBar toolBar = new PagingToolBar(numberResults);
toolBar.bind(loader);
contentStore = new ListStore<GWTJahiaNode>(loader);
List<GWTColumn> columnNames = new ArrayList<GWTColumn>();
columnNames.add(new GWTColumn("icon",Messages.get("label.icon", ""),40));
columnNames.add(new GWTColumn("displayName",Messages.get("label.name", "Name"),200));
final NodeColumnConfigList columnConfigList = new NodeColumnConfigList(columnNames);
columnConfigList.init();
final Grid<GWTJahiaNode> grid = new Grid<GWTJahiaNode>(contentStore, new ColumnModel(columnConfigList));
ContentPanel gridPanel = new ContentPanel();
gridPanel.setLayout(new FitLayout());
gridPanel.setBottomComponent(toolBar);
gridPanel.setHeaderVisible(false);
gridPanel.setFrame(false);
gridPanel.setBodyBorder(false);
gridPanel.setBorders(false);
gridPanel.add(grid);
panel.add(gridPanel, new RowData(1, 1, new Margins(0, 0, 20, 0)));
tab.add(panel);
displayGridSource = new DisplayGridDragSource(grid);
grid.addListener(Events.OnDoubleClick, new Listener<BaseEvent>() {
public void handleEvent(BaseEvent be) {
EngineLoader.showEditEngine(editLinker, (GWTJahiaNode) ((GridEvent)be).getModel());