209: TDM - Show the resources through a ListView widget

Task-Url: https://support.d4science.org/issues/209

Updated Resources

git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/portlets/user/tabular-data-mainbox-widget@115246 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
Giancarlo Panichi 2015-06-05 16:41:59 +00:00 committed by Giancarlo Panichi
parent e4c04497aa
commit b605765544
10 changed files with 25 additions and 28 deletions

View File

@ -7,7 +7,6 @@ import com.google.gwt.core.client.GWT;
import com.google.gwt.resources.client.ClientBundle;
import com.google.gwt.resources.client.ImageResource;
/**
*
* @author "Giancarlo Panichi" <a
@ -60,19 +59,18 @@ public interface MainboxResources extends ClientBundle {
@Source("column-reorder.png")
ImageResource columnReorder();
@Source("column-replace.png")
ImageResource columnReplace();
@Source("column-replace_32.png")
ImageResource columnReplace32();
@Source("column-replace-all.png")
ImageResource columnReplaceAll();
@Source("column-replace-all_32.png")
ImageResource columnReplaceAll32();
@Source("column-replace-batch.png")
ImageResource columnReplaceBatch();
@ -97,7 +95,7 @@ public interface MainboxResources extends ClientBundle {
@Source("table-row-delete.png")
ImageResource tableRowDelete();
@Source("table-row-delete-selected_32.png")
ImageResource tableRowDeleteSelected32();
@ -127,7 +125,7 @@ public interface MainboxResources extends ClientBundle {
@Source("page-white.png")
ImageResource tabularResource();
@Source("table-replace-by-external-col_32.png")
ImageResource columnReplaceByExternal32();
@ -139,6 +137,17 @@ public interface MainboxResources extends ClientBundle {
@Source("downscale-csquare.png")
ImageResource downscaleCSquare();
@Source("resources_32.png")
ImageResource resources32();
@Source("resources.png")
ImageResource resources();
@Source("table_32.png")
ImageResource table32();
@Source("table.png")
ImageResource table();
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 769 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 479 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 788 B

View File

@ -1,12 +1,12 @@
package org.gcube.portlets.user.td.mainboxwidget.client.tdx;
import org.gcube.portlets.user.td.mainboxwidget.client.resources.MainboxResources;
import org.gcube.portlets.user.td.resourceswidget.client.ResourcesListViewPanel;
import org.gcube.portlets.user.td.widgetcommonevent.shared.dataview.TabularResourceDataView;
import org.gcube.portlets.user.tdwx.client.TabularDataX;
import com.allen_sauer.gwt.log.client.Log;
import com.google.web.bindery.event.shared.EventBus;
import com.sencha.gxt.core.client.dom.XElement;
import com.sencha.gxt.widget.core.client.TabItemConfig;
import com.sencha.gxt.widget.core.client.TabPanel;
@ -36,36 +36,24 @@ public class TDXTabPanel extends TabPanel {
setResizeTabs(true);
setTabWidth(TAB_WIDTH);
XElement barElement=getAppearance().getBar(getElement());
XElement bodyElement=getAppearance().getBody(getElement());
barElement.getStyle().setFloat(com.google.gwt.dom.client.Style.Float.RIGHT);
bodyElement.getStyle().setFloat(com.google.gwt.dom.client.Style.Float.LEFT);
/*
addStyleName(ThemeStyles.get().style().);
getElement().getStyle().setFloat(Float.R);setBackgroundColor("white");
.x-tab {
position:initial !important;
float:right;
}
*/
}
protected void create() {
TabItemConfig gridItemConf = new TabItemConfig("Grid", false);
gridItemConf.setIcon(MainboxResources.INSTANCE
.table());
gridPanel = new TDXGridPanel(eventBus);
add(gridPanel, gridItemConf);
TabItemConfig resourcesItemConf = new TabItemConfig("Resources", false);
resourcesItemConf.setIcon(MainboxResources.INSTANCE
.resources());
resourcesPanel = new ResourcesListViewPanel(eventBus);
add(resourcesPanel, resourcesItemConf);

Binary file not shown.

After

Width:  |  Height:  |  Size: 769 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 479 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 788 B