Minor updated

git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/portlets/user/tabular-data-portlet@86968 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
Giancarlo Panichi 2013-12-16 12:08:05 +00:00
parent 4ffc09f39b
commit ca009c08cc
4 changed files with 9 additions and 14 deletions

View File

@ -13,9 +13,6 @@
<dependent-module archiveName="tabular-data-widget-common-event-1.0.0-SNAPSHOT.jar" deploy-path="/WEB-INF/lib" handle="module:/resource/tabular-data-widget-common-event/tabular-data-widget-common-event">
<dependency-type>uses</dependency-type>
</dependent-module>
<dependent-module archiveName="tabular-data-toolbox-widget-1.0.0-SNAPSHOT.jar" deploy-path="/WEB-INF/lib" handle="module:/resource/tabular-data-toolbox-widget/tabular-data-toolbox-widget">
<dependency-type>uses</dependency-type>
</dependent-module>
<property name="context-root" value="tabular-data-portlet"/>
<property name="java-output-path" value="/tabular-data-portlet/target/tabular-data-portlet-2.0.0-SNAPSHOT/WEB-INF/classes"/>
</wb-module>

View File

@ -9,7 +9,6 @@ import org.gcube.portlets.user.td.gwtservice.client.rpc.TDGWTServiceAsync;
import org.gcube.portlets.user.td.openwidget.client.TDOpen;
import org.gcube.portlets.user.td.sdmxexportwidget.client.SDMXExportWizardTD;
import org.gcube.portlets.user.td.sdmximportwidget.client.SDMXImportWizardTD;
import org.gcube.portlets.user.td.widgetcommonevent.client.event.GridHeaderColumnMenuItemEvent;
import org.gcube.portlets.user.td.widgetcommonevent.client.event.RibbonEvent;
import org.gcube.portlets.user.td.widgetcommonevent.client.event.UIStateEvent;
import org.gcube.portlets.user.td.widgetcommonevent.client.type.RibbonType;
@ -91,7 +90,7 @@ public class TabularDataController {
}
protected void bindToEvents() {
eventBus.addHandler(
/*eventBus.addHandler(
GridHeaderColumnMenuItemEvent.TYPE,
new GridHeaderColumnMenuItemEvent.GridHeaderColumnMenuItemEventHandler() {
@ -113,7 +112,7 @@ public class TabularDataController {
}
});
*/
eventBus.addHandler(RibbonEvent.TYPE,
new RibbonEvent.RibbonEventHandler() {

View File

@ -8,6 +8,7 @@ import org.gcube.portlets.user.td.client.ribbon.TabularDataRibbon;
import org.gcube.portlets.user.td.client.rpc.TabularDataService;
import org.gcube.portlets.user.td.client.rpc.TabularDataServiceAsync;
import org.gcube.portlets.user.td.toolboxwidget.client.ToolBoxPanel;
import org.gcube.portlets.user.td.widgetcommonevent.shared.GridHeaderColumnMenuItemOperationId;
import org.gcube.portlets.user.tdwx.client.TabularDataX;
import org.gcube.portlets.user.tdwx.client.TabularDataXGridPanel;
import org.gcube.portlets.user.tdwx.client.config.Row;
@ -17,6 +18,7 @@ import org.gcube.portlets.user.tdwx.client.model.grid.DataRowColumnConfig;
import org.gcube.portlets.user.tdwx.shared.model.DataRow;
import com.allen_sauer.gwt.log.client.Log;
import com.google.gwt.core.client.EntryPoint;
import com.google.gwt.core.client.GWT;
@ -138,12 +140,9 @@ public class TabularDataPortlet implements EntryPoint {
// Grid Panel
final TabularDataXGridPanel gridPanel = tabularData.getGridPanel();
gridPanel.setHeaderVisible(false);
ColumnHeaderMenu columnHeaderMenu=new ColumnHeaderMenu();
gridPanel.addGridHeaderContextMenuItems(columnHeaderMenu.getMenu(),eventBus);
gridPanel.addGridHeaderContextMenuItems(columnHeaderMenu.getMenu(), eventBus);
MarginData gridData = new MarginData();
mainPanelLayout.setCenterWidget(gridPanel, gridData);
@ -203,7 +202,7 @@ public class TabularDataPortlet implements EntryPoint {
Log.error("Error in attach viewport:" + e.getLocalizedMessage());
}
}
/*
protected void menu(final TabularDataXGridPanel gridPanel) {
Log.debug("Add Menu to tabular data widget");
final HideHandler hideHandler = new HideHandler() {
@ -269,7 +268,7 @@ public class TabularDataPortlet implements EntryPoint {
gridPanel.setContextMenu(menu);
}
*/
/*
* private void configPanel(final Portlet panel) {

View File

@ -9,7 +9,7 @@ import com.sencha.gxt.widget.core.client.menu.MenuItem;
public class ColumnHeaderMenu {
ArrayList<MenuItem> menuItems;
protected final ArrayList<MenuItem> menuItems;
public ColumnHeaderMenu() {
menuItems = new ArrayList<MenuItem>();