Minor Update
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/portlets/user/tabular-data-portlet@95648 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
parent
6f635b9c58
commit
b815457f52
|
@ -40,6 +40,9 @@
|
|||
<dependent-module archiveName="tabular-data-table-widget-1.0.0-SNAPSHOT.jar" deploy-path="/WEB-INF/lib" handle="module:/resource/tabular-data-table-widget/tabular-data-table-widget">
|
||||
<dependency-type>uses</dependency-type>
|
||||
</dependent-module>
|
||||
<dependent-module archiveName="tabular-data-information-widget-2.1.0-SNAPSHOT.jar" deploy-path="/WEB-INF/lib" handle="module:/resource/tabular-data-information-widget/tabular-data-information-widget">
|
||||
<dependency-type>uses</dependency-type>
|
||||
</dependent-module>
|
||||
<dependent-module archiveName="tabular-data-column-widget-1.1.0-SNAPSHOT.jar" deploy-path="/WEB-INF/lib" handle="module:/resource/tabular-data-column-widget/tabular-data-column-widget">
|
||||
<dependency-type>uses</dependency-type>
|
||||
</dependent-module>
|
||||
|
|
16
pom.xml
16
pom.xml
|
@ -71,6 +71,17 @@
|
|||
<version>1.0.1</version>
|
||||
<scope>runtime</scope>
|
||||
</dependency>
|
||||
<!-- Storage for CSV temp -->
|
||||
<dependency>
|
||||
<groupId>org.gcube.contentmanagement</groupId>
|
||||
<artifactId>storage-manager-core</artifactId>
|
||||
<version>[2.0.0-SNAPSHOT, 3.0.0-SNAPSHOT)</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.gcube.contentmanagement</groupId>
|
||||
<artifactId>storage-manager-wrapper</artifactId>
|
||||
<version>[2.0.0-SNAPSHOT, 3.0.0-SNAPSHOT)</version>
|
||||
</dependency>
|
||||
</dependencies>
|
||||
</profile>
|
||||
</profiles>
|
||||
|
@ -132,6 +143,7 @@
|
|||
<artifactId>gcube-widgets</artifactId>
|
||||
</dependency>
|
||||
|
||||
|
||||
<!-- WSLT dependencies -->
|
||||
<dependency>
|
||||
<groupId>org.gcube.portlets.widgets</groupId>
|
||||
|
@ -142,7 +154,7 @@
|
|||
<dependency>
|
||||
<groupId>org.gcube.common</groupId>
|
||||
<artifactId>home-library</artifactId>
|
||||
<version>[1.0.0-SNAPSHOT, 2.0.0-SNAPSHOT)</version>
|
||||
<!-- <version>[1.0.0-SNAPSHOT, 2.0.0-SNAPSHOT)</version> -->
|
||||
<scope>provided</scope>
|
||||
</dependency>
|
||||
|
||||
|
@ -189,7 +201,7 @@
|
|||
<dependency>
|
||||
<groupId>org.gcube.common</groupId>
|
||||
<artifactId>csv4j</artifactId>
|
||||
<version>[1.2.0-SNAPSHOT, 2.0.0-common)</version>
|
||||
<!-- <version>[1.2.0-SNAPSHOT, 2.0.0-common)</version> -->
|
||||
</dependency>
|
||||
|
||||
<!-- Session Checker -->
|
||||
|
|
|
@ -22,6 +22,7 @@ import org.gcube.portlets.user.td.sharewidget.client.TRShare;
|
|||
import org.gcube.portlets.user.td.tablewidget.client.CloneTabularResource;
|
||||
import org.gcube.portlets.user.td.tablewidget.client.history.HistoryDiscard;
|
||||
import org.gcube.portlets.user.td.tablewidget.client.rows.DeleteRows;
|
||||
import org.gcube.portlets.user.td.tablewidget.client.rows.EditRowDialog;
|
||||
import org.gcube.portlets.user.td.tablewidget.client.util.UtilsGXT3;
|
||||
import org.gcube.portlets.user.td.taskswidget.client.TdTaskController;
|
||||
import org.gcube.portlets.user.td.widgetcommonevent.client.event.ChangeTableRequestEvent;
|
||||
|
@ -955,8 +956,18 @@ public class TabularDataController {
|
|||
}
|
||||
}
|
||||
|
||||
private void onRowsEdit(ArrayList<String> rows) {
|
||||
if (rows == null || rows.size() == 0) {
|
||||
UtilsGXT3.alert("No rows selected", "No rows selected");
|
||||
} else {
|
||||
EditRowDialog editRowDialog = new EditRowDialog(trId, rows, eventBus);
|
||||
editRowDialog.show();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
private void onRowsAdd(ArrayList<String> rows) {
|
||||
tabularData.addRow(rows);
|
||||
//tabularData.addRow(rows);
|
||||
}
|
||||
|
||||
protected void doGridContextMenuCommand(GridContextMenuItemEvent event) {
|
||||
|
@ -971,6 +982,7 @@ public class TabularDataController {
|
|||
onRowsAdd(rows);
|
||||
break;
|
||||
case ROWEDIT:
|
||||
onRowsEdit(rows);
|
||||
break;
|
||||
case ROWDELETE:
|
||||
onRowsDelete(rows);
|
||||
|
|
|
@ -51,24 +51,27 @@ public class GridContextMenu {
|
|||
*
|
||||
* } }); tableContextMenu.add(addRowItem);
|
||||
*/
|
||||
|
||||
/*
|
||||
* MenuItem editRowItem = new MenuItem("Edit Row");
|
||||
* editRowItem.setId(GridOperationId.ROWEDIT.toString());
|
||||
* editRowItem.setIcon(TabularDataResources.INSTANCE.rowEdit());
|
||||
* editRowItem.addSelectionHandler(new SelectionHandler<Item>() {
|
||||
*
|
||||
* @Override public void onSelection(SelectionEvent<Item> event) {
|
||||
* Log.debug("gridPanel is: " + gridPanel); if (gridPanel != null) {
|
||||
*
|
||||
* ArrayList<String> rows=gridPanel.getSelectedRowsId();
|
||||
* GridContextMenuItemEvent eventGridContextMenu = new
|
||||
* GridContextMenuItemEvent( GridOperationId.ROWEDIT, rows);
|
||||
* eventBus.fireEvent(eventGridContextMenu);
|
||||
*
|
||||
* } } }); tableContextMenu.add(editRowItem);
|
||||
*/
|
||||
MenuItem editRowItem = new MenuItem("Edit Row");
|
||||
editRowItem.setId(GridOperationId.ROWEDIT.toString());
|
||||
editRowItem.setIcon(TabularDataResources.INSTANCE.rowEdit());
|
||||
editRowItem.addSelectionHandler(new SelectionHandler<Item>() {
|
||||
|
||||
@Override
|
||||
public void onSelection(SelectionEvent<Item> event) {
|
||||
Log.debug("gridPanel is: " + gridPanel);
|
||||
if (gridPanel != null) {
|
||||
|
||||
ArrayList<String> rows = gridPanel.getSelectedRowsId();
|
||||
GridContextMenuItemEvent eventGridContextMenu = new GridContextMenuItemEvent(
|
||||
GridOperationId.ROWEDIT, rows);
|
||||
eventBus.fireEvent(eventGridContextMenu);
|
||||
|
||||
}
|
||||
}
|
||||
});
|
||||
tableContextMenu.add(editRowItem);
|
||||
*/
|
||||
MenuItem deleteRowItem = new MenuItem("Delete Row");
|
||||
deleteRowItem.setId(GridOperationId.ROWDELETE.toString());
|
||||
deleteRowItem.setIcon(TabularDataResources.INSTANCE.rowRemove());
|
||||
|
|
|
@ -45,17 +45,17 @@
|
|||
|
||||
<!-- Specify the app entry point class. -->
|
||||
<entry-point class='org.gcube.portlets.user.td.client.TabularDataPortlet' />
|
||||
<!--
|
||||
<!--
|
||||
<set-property name="log_DivLogger" value="ENABLED" /> <set-property
|
||||
name="log_ConsoleLogger" value="ENABLED" /> <set-property name="log_FirebugLogger"
|
||||
value="ENABLED" /> <set-property name="log_GWTLogger" value="ENABLED" />
|
||||
<set-property name="log_SystemLogger" value="ENABLED" /> -->
|
||||
|
||||
<set-property name="log_SystemLogger" value="ENABLED" /> -->
|
||||
|
||||
<set-property name="log_DivLogger" value="DISABLED" />
|
||||
<set-property name="log_ConsoleLogger" value="DISABLED" />
|
||||
<set-property name="log_FirebugLogger" value="DISABLED" />
|
||||
<set-property name="log_GWTLogger" value="DISABLED" />
|
||||
<set-property name="log_SystemLogger" value="DISABLED" />
|
||||
<set-property name="log_SystemLogger" value="DISABLED" />
|
||||
<!-- Specify the paths for translatable code -->
|
||||
<source path='client' />
|
||||
<source path='shared' />
|
||||
|
|
Loading…
Reference in New Issue