From fc2a7c5677fa33dd1db72a72a9567d2fa51dd90c Mon Sep 17 00:00:00 2001 From: Giancarlo Panichi Date: Wed, 5 Feb 2014 18:55:46 +0000 Subject: [PATCH] Minor Update git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/portlets/user/tabular-data-toolbox-widget@90953 82a268e6-3cf1-43bd-a215-b396298e98cf --- .../portlets/user/td/toolboxwidget/client/ToolBox.java | 7 ++++++- .../user/td/toolboxwidget/client/ToolBoxPanel.java | 9 +++++++++ 2 files changed, 15 insertions(+), 1 deletion(-) diff --git a/src/main/java/org/gcube/portlets/user/td/toolboxwidget/client/ToolBox.java b/src/main/java/org/gcube/portlets/user/td/toolboxwidget/client/ToolBox.java index daae519..612958e 100644 --- a/src/main/java/org/gcube/portlets/user/td/toolboxwidget/client/ToolBox.java +++ b/src/main/java/org/gcube/portlets/user/td/toolboxwidget/client/ToolBox.java @@ -51,7 +51,12 @@ public class ToolBox extends TabPanel { setActiveWidget(getWidget(0)); } - + + public void showHelpTab(){ + Log.debug("Show Help Tab"); + setActiveWidget(helpPanel); + } + public void openPropertiesTab() { Log.debug("Open Properties Tab"); if (trProperties == null) { diff --git a/src/main/java/org/gcube/portlets/user/td/toolboxwidget/client/ToolBoxPanel.java b/src/main/java/org/gcube/portlets/user/td/toolboxwidget/client/ToolBoxPanel.java index e0389ac..4a8218d 100644 --- a/src/main/java/org/gcube/portlets/user/td/toolboxwidget/client/ToolBoxPanel.java +++ b/src/main/java/org/gcube/portlets/user/td/toolboxwidget/client/ToolBoxPanel.java @@ -78,6 +78,8 @@ public class ToolBoxPanel extends ContentPanel { case PROPERTIES: doPropertiesOpenTab(); break; + case HELP: + doHelpTab(); default: break; } @@ -154,6 +156,13 @@ public class ToolBoxPanel extends ContentPanel { } + protected void doHelpTab(){ + Log.debug("ToolBoxPanel show help tab"); + enable(); + expand(); + toolBox.showHelpTab(); + } + public void closePanelOnly(){ collapse();