From 8e153b84f03d2f2d8fb0cc4ad369ab1ed16c77d5 Mon Sep 17 00:00:00 2001 From: Giancarlo Panichi Date: Fri, 25 Oct 2013 17:29:08 +0000 Subject: [PATCH] Fixed hide window git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/portlets/user/tabular-data-portlet@84401 82a268e6-3cf1-43bd-a215-b396298e98cf --- .../user/td/client/TabularDataController.java | 30 +++++++++---------- .../user/td/client/ribbon/FileToolBar.java | 2 +- .../user/td/TabularDataPortlet.gwt.xml | 2 +- 3 files changed, 17 insertions(+), 17 deletions(-) diff --git a/src/main/java/org/gcube/portlets/user/td/client/TabularDataController.java b/src/main/java/org/gcube/portlets/user/td/client/TabularDataController.java index b479ea9..e6fd41f 100644 --- a/src/main/java/org/gcube/portlets/user/td/client/TabularDataController.java +++ b/src/main/java/org/gcube/portlets/user/td/client/TabularDataController.java @@ -189,6 +189,19 @@ public class TabularDataController { eventBus.fireEvent(new UIStateEvent(UIStateType.TR_OPEN)); } + protected void closeTabularResources() { + if (uiState == UIStateType.TR_OPEN) { + tabularData.closeTable(); + uiState = UIStateType.TR_CLOSE; + eventBus.fireEvent(new UIStateEvent(UIStateType.TR_CLOSE)); + if (uiProperties == UIProperties.OPENED) { + functionalityPanel.collapse(); + functionalityPanel.disable(); + uiProperties = UIProperties.CLOSED; + functionalityTab.remove(trProperties); + } + } + } protected void openWizard(){ eventBus.fireEvent(new UIStateEvent(UIStateType.WIZARD_OPEN)); } @@ -424,21 +437,8 @@ public class TabularDataController { */ } - /** - * - */ - protected void closeTabularResources() { - if (uiState == UIStateType.TR_OPEN) { - tabularData.closeTable(); - uiState = UIStateType.TR_CLOSE; - if (uiProperties == UIProperties.OPENED) { - functionalityPanel.collapse(); - functionalityPanel.disable(); - uiProperties = UIProperties.CLOSED; - functionalityTab.remove(trProperties); - } - } - } + + /** * diff --git a/src/main/java/org/gcube/portlets/user/td/client/ribbon/FileToolBar.java b/src/main/java/org/gcube/portlets/user/td/client/ribbon/FileToolBar.java index 5b6e9df..bd3c580 100644 --- a/src/main/java/org/gcube/portlets/user/td/client/ribbon/FileToolBar.java +++ b/src/main/java/org/gcube/portlets/user/td/client/ribbon/FileToolBar.java @@ -120,7 +120,7 @@ public class FileToolBar { closeButton = new TextButton("Close", TabularDataResources.INSTANCE.close()); - propertiesButton.disable(); + closeButton.disable(); closeButton.setId("closeButton"); closeButton.setToolTip("Close table"); diff --git a/src/main/resources/org/gcube/portlets/user/td/TabularDataPortlet.gwt.xml b/src/main/resources/org/gcube/portlets/user/td/TabularDataPortlet.gwt.xml index 6cd3a46..18dd258 100644 --- a/src/main/resources/org/gcube/portlets/user/td/TabularDataPortlet.gwt.xml +++ b/src/main/resources/org/gcube/portlets/user/td/TabularDataPortlet.gwt.xml @@ -27,7 +27,7 @@ - +