From dac74c1c8e3ba17591308475ffa1c78f3f57b95f Mon Sep 17 00:00:00 2001 From: Giancarlo Panichi Date: Fri, 5 Jun 2015 16:41:31 +0000 Subject: [PATCH] 209: TDM - Show the resources through a ListView widget Task-Url: https://support.d4science.org/issues/209 Moved Resources to MainPanel git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/portlets/user/tabular-data-information-widget@115245 82a268e6-3cf1-43bd-a215-b396298e98cf --- .../client/TabularResourceProperties.java | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/src/main/java/org/gcube/portlets/user/td/informationwidget/client/TabularResourceProperties.java b/src/main/java/org/gcube/portlets/user/td/informationwidget/client/TabularResourceProperties.java index 8436def..fb083be 100644 --- a/src/main/java/org/gcube/portlets/user/td/informationwidget/client/TabularResourceProperties.java +++ b/src/main/java/org/gcube/portlets/user/td/informationwidget/client/TabularResourceProperties.java @@ -44,6 +44,7 @@ import com.sencha.gxt.data.shared.ListStore; import com.sencha.gxt.widget.core.client.FramedPanel; import com.sencha.gxt.widget.core.client.button.TextButton; import com.sencha.gxt.widget.core.client.container.BoxLayoutContainer.BoxLayoutData; +import com.sencha.gxt.widget.core.client.container.BoxLayoutContainer.BoxLayoutPack; import com.sencha.gxt.widget.core.client.container.HBoxLayoutContainer; import com.sencha.gxt.widget.core.client.container.VerticalLayoutContainer; import com.sencha.gxt.widget.core.client.container.VerticalLayoutContainer.VerticalLayoutData; @@ -96,7 +97,7 @@ public class TabularResourceProperties extends FramedPanel { private TextButton saveButton; private TextButton validationsButton; - private TextButton resourcesButton; + //private TextButton resourcesButton; private ArrayList licencesList; @@ -289,7 +290,7 @@ public class TabularResourceProperties extends FramedPanel { validationsButton.addSelectHandler(validationsHandler); // Resources Button - resourcesButton = new TextButton(msgs.resourcesButton()); + /*resourcesButton = new TextButton(msgs.resourcesButton()); resourcesButton.setIcon(ResourceBundle.INSTANCE.resources()); resourcesButton.setIconAlign(IconAlign.RIGHT); resourcesButton.setToolTip(msgs.resourcesButtonToolTip()); @@ -301,15 +302,16 @@ public class TabularResourceProperties extends FramedPanel { } }; - resourcesButton.addSelectHandler(resourcesHandler); + resourcesButton.addSelectHandler(resourcesHandler);*/ // HBoxLayoutContainer hBox = new HBoxLayoutContainer(); + hBox.setPack(BoxLayoutPack.CENTER); hBox.add(saveButton, new BoxLayoutData(new Margins(2, 5, 2, 5))); hBox.add(validationsButton, new BoxLayoutData(new Margins(2, 5, 2, 5))); - hBox.add(resourcesButton, new BoxLayoutData(new Margins(2, 5, 2, 5))); + //hBox.add(resourcesButton, new BoxLayoutData(new Margins(2, 5, 2, 5))); - layoutTabularResource.add(hBox, new VerticalLayoutData(-1, -1, + layoutTabularResource.add(hBox, new VerticalLayoutData(1, -1, new Margins(2))); @@ -476,7 +478,8 @@ public class TabularResourceProperties extends FramedPanel { } } - protected void openResources() { + /* + protected void openResources() { Log.debug("Request Resources Tab"); if (trId != null) { WidgetRequestEvent e = new WidgetRequestEvent( @@ -487,6 +490,7 @@ public class TabularResourceProperties extends FramedPanel { Log.error("TRId is null"); } } + */ protected void updateTable(TableData tableData) {