From e108cb95c7afe3d8da9b79ef967148ba6d3578d3 Mon Sep 17 00:00:00 2001 From: Giancarlo Panichi Date: Wed, 11 Dec 2013 08:43:57 +0000 Subject: [PATCH] Minor updated git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/portlets/user/tabular-data-toolbox-widget@86810 82a268e6-3cf1-43bd-a215-b396298e98cf --- pom.xml | 8 +++++++- .../portlets/user/td/toolboxwidget/client/ToolBox.java | 8 ++++++-- .../user/td/toolboxwidget/client/ToolBoxEntry.java | 10 ++++------ .../portlets/user/td/toolboxwidget/ToolBox.gwt.xml | 2 ++ 4 files changed, 19 insertions(+), 9 deletions(-) diff --git a/pom.xml b/pom.xml index 7dcfa5d..c0e9b4f 100644 --- a/pom.xml +++ b/pom.xml @@ -103,7 +103,13 @@ gxt 3.0.1 - + + + + org.gcube.portlets.user + tabular-data-widget-common-event + 1.0.0-SNAPSHOT + 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 bfb0b66..b925c4e 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 @@ -1,12 +1,16 @@ package org.gcube.portlets.user.td.toolboxwidget.client; import com.google.web.bindery.event.shared.EventBus; -import com.sencha.gxt.widget.core.client.FramedPanel; +import com.sencha.gxt.widget.core.client.TabPanel; +import org.gcube.portlets.user.td.toolboxwidget.client.ToolBox; -public class ToolBox extends FramedPanel { +public class ToolBox extends TabPanel { + + private EventBus eventBus; public ToolBox(String name, EventBus eventBus) { super(); + this.eventBus=eventBus; setId(name); diff --git a/src/main/java/org/gcube/portlets/user/td/toolboxwidget/client/ToolBoxEntry.java b/src/main/java/org/gcube/portlets/user/td/toolboxwidget/client/ToolBoxEntry.java index b600bd5..72a5f08 100644 --- a/src/main/java/org/gcube/portlets/user/td/toolboxwidget/client/ToolBoxEntry.java +++ b/src/main/java/org/gcube/portlets/user/td/toolboxwidget/client/ToolBoxEntry.java @@ -14,12 +14,10 @@ public class ToolBoxEntry implements EntryPoint { EventBus eventBus = new SimpleEventBus(); - ToolBox trProperties = new ToolBox( - "TRProperties", eventBus); - - trProperties.setHeadingText("Tabular Resource Properties"); - RootPanel.get().add(trProperties); - Log.info("" + trProperties); + ToolBox toolBox = new ToolBox("ToolBox", eventBus); + + RootPanel.get().add(toolBox); + Log.info("" + toolBox); } } diff --git a/src/main/resources/org/gcube/portlets/user/td/toolboxwidget/ToolBox.gwt.xml b/src/main/resources/org/gcube/portlets/user/td/toolboxwidget/ToolBox.gwt.xml index e7f2437..d157f94 100644 --- a/src/main/resources/org/gcube/portlets/user/td/toolboxwidget/ToolBox.gwt.xml +++ b/src/main/resources/org/gcube/portlets/user/td/toolboxwidget/ToolBox.gwt.xml @@ -18,6 +18,8 @@ + +