}
});
tree.setContextMenu(createContextMenu(config.getTreeContextMenu(), tree.getSelectionModel()));
final ThumbsListView listView = new ThumbsListView(true);
listView.setStyleAttribute("overflow-x", "hidden");
listView.setStore(contentStore);
contentStore.setSortField("display");
contentContainer.add(listView);
VBoxLayoutData contentVBoxData = new VBoxLayoutData();
contentVBoxData.setFlex(2);
tab.add(contentContainer, contentVBoxData);
listView.addListener(Events.DoubleClick, new Listener<ListViewEvent<GWTJahiaNode>>() {
public void handleEvent(ListViewEvent<GWTJahiaNode> be) {
Window w = new Window();
GWTJahiaNode node = listView.getSelectionModel().getSelectedItem();
final String text = "Preview of " + node.getDisplayName();
w.setHeading(text);
w.setScrollMode(Style.Scroll.AUTO);
w.setModal(true);
w.setClosable(true);
w.setMaximizable(true);
w.setSize(Math.max(Integer.parseInt((String)node.get("j:width")) + 60, 400), Math.max(Integer.parseInt((String)node.get("j:height")) + 80, 50));
w.setBlinkModal(true);
w.setPlain(true);
w.setToolTip(text);
w.setLayout(new CenterLayout());
w.add(new Image(listView.getSelectionModel().getSelectedItem().getUrl()));
w.show();
}
});
listView.setContextMenu(createContextMenu(config.getTableContextMenu(), listView.getSelectionModel()));
dragSource = new ImageDragSource(listView);
return tab;
}