Updated Border

git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/portlets/user/tabular-data-widgetx@100615 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
Giancarlo Panichi 2014-10-10 15:59:07 +00:00 committed by Giancarlo Panichi
parent 3b7275bcb4
commit 7c99aa5412
1 changed files with 13 additions and 5 deletions

View File

@ -62,6 +62,7 @@ import com.sencha.gxt.data.shared.loader.LoadResultListStoreBinding;
import com.sencha.gxt.data.shared.loader.PagingLoadResult; import com.sencha.gxt.data.shared.loader.PagingLoadResult;
import com.sencha.gxt.data.shared.loader.PagingLoader; import com.sencha.gxt.data.shared.loader.PagingLoader;
import com.sencha.gxt.widget.core.client.ContentPanel; import com.sencha.gxt.widget.core.client.ContentPanel;
import com.sencha.gxt.widget.core.client.container.MarginData;
import com.sencha.gxt.widget.core.client.container.VerticalLayoutContainer; import com.sencha.gxt.widget.core.client.container.VerticalLayoutContainer;
import com.sencha.gxt.widget.core.client.container.VerticalLayoutContainer.VerticalLayoutData; import com.sencha.gxt.widget.core.client.container.VerticalLayoutContainer.VerticalLayoutData;
import com.sencha.gxt.widget.core.client.event.HeaderContextMenuEvent; import com.sencha.gxt.widget.core.client.event.HeaderContextMenuEvent;
@ -137,10 +138,16 @@ public class TabularDataXGridPanel extends ContentPanel {
super(); super();
this.tdSessionId = tdSessionId; this.tdSessionId = tdSessionId;
this.eventBus = eventBus; this.eventBus = eventBus;
setBodyBorder(false);
setBorders(false);
setHeaderVisible(false);
forceLayoutOnResize=true;
setResize(true);
bindEventBus(); bindEventBus();
container = new VerticalLayoutContainer(); container = new VerticalLayoutContainer();
container.setBorders(false);
setWidget(container); add(container,new MarginData(0));
//setWidget(container);
} }
/** /**
@ -743,7 +750,8 @@ public class TabularDataXGridPanel extends ContentPanel {
grid.setLoadMask(true); grid.setLoadMask(true);
grid.setLoader(loader); grid.setLoader(loader);
grid.setView(liveGridView); grid.setView(liveGridView);
grid.setBorders(false);
// TODO disabled editing rows // TODO disabled editing rows
/* /*
* editing = new GridInlineEditing<DataRow>(grid); * editing = new GridInlineEditing<DataRow>(grid);
@ -769,14 +777,14 @@ public class TabularDataXGridPanel extends ContentPanel {
// //
container.add(grid, new VerticalLayoutData(1, 1, new Margins(0))); container.add(grid, new VerticalLayoutData(1, 1, new Margins(0)));
toolBar = new ToolBar(); toolBar = new ToolBar();
toolBar.add(new LiveToolItem(grid)); toolBar.add(new LiveToolItem(grid));
toolBar.addStyleName(ThemeStyles.getStyle().borderTop()); toolBar.addStyleName(ThemeStyles.getStyle().borderTop());
toolBar.getElement().getStyle().setProperty("borderBottom", "none"); toolBar.getElement().getStyle().setProperty("borderBottom", "none");
container.add(toolBar, container.add(toolBar,
new VerticalLayoutData(1, 25, new Margins(0))); new VerticalLayoutData(1, 24, new Margins(0)));
container.forceLayout(); container.forceLayout();