Minor Update
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/portlets/user/tabular-data-mainbox-widget@111326 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
parent
e5040fe8e9
commit
6934081480
|
@ -338,7 +338,13 @@ public class MainBox extends TabPanel {
|
||||||
}
|
}
|
||||||
return rowsId;
|
return rowsId;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Retrieve ColumnName of column selected
|
||||||
|
*
|
||||||
|
* @param columnSelected
|
||||||
|
* @return
|
||||||
|
*/
|
||||||
public String getColumnName(int columnSelected) {
|
public String getColumnName(int columnSelected) {
|
||||||
String columnName = null;
|
String columnName = null;
|
||||||
Widget active = getActiveWidget();
|
Widget active = getActiveWidget();
|
||||||
|
@ -349,6 +355,23 @@ public class MainBox extends TabPanel {
|
||||||
}
|
}
|
||||||
return columnName;
|
return columnName;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Retrieve ColumnLocalId of column selected
|
||||||
|
*
|
||||||
|
* @param columnSelected
|
||||||
|
* @return
|
||||||
|
*/
|
||||||
|
public String getColumnLocalId(int columnSelected){
|
||||||
|
String columnName = null;
|
||||||
|
Widget active = getActiveWidget();
|
||||||
|
if (active instanceof TDXPanel) {
|
||||||
|
TDXPanel tdxPanel = (TDXPanel) active;
|
||||||
|
columnName = tdxPanel.getTabularData()
|
||||||
|
.getColumnLocalId(columnSelected);
|
||||||
|
}
|
||||||
|
return columnName;
|
||||||
|
}
|
||||||
|
|
||||||
protected void retrieveTRName(
|
protected void retrieveTRName(
|
||||||
final TabularResourceDataView tabularResourceDataView) {
|
final TabularResourceDataView tabularResourceDataView) {
|
||||||
|
|
|
@ -221,4 +221,8 @@ public class MainBoxPanel extends ContentPanel {
|
||||||
public String getColumnName(int columnSelected) {
|
public String getColumnName(int columnSelected) {
|
||||||
return mainBox.getColumnName(columnSelected);
|
return mainBox.getColumnName(columnSelected);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public String getColumnLocalId(int columnSelected) {
|
||||||
|
return mainBox.getColumnLocalId(columnSelected);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -64,10 +64,11 @@ public class GridContextMenu {
|
||||||
Log.debug("gridPanel is: " + gridPanel);
|
Log.debug("gridPanel is: " + gridPanel);
|
||||||
if (gridPanel != null) {
|
if (gridPanel != null) {
|
||||||
|
|
||||||
RowRaw row = gridPanel.getSelectedRowAsRaw();
|
ArrayList<RowRaw> rows = gridPanel.getSelectedRowsAsRaw();
|
||||||
if (row != null) {
|
if (rows != null) {
|
||||||
GridContextMenuItemEvent eventGridContextMenu = new GridContextMenuItemEvent(
|
GridContextMenuItemEvent eventGridContextMenu = new GridContextMenuItemEvent(
|
||||||
GridOperationId.ROWEDIT, row);
|
GridOperationId.ROWEDIT);
|
||||||
|
eventGridContextMenu.setRowsRaw(rows);
|
||||||
eventBus.fireEvent(eventGridContextMenu);
|
eventBus.fireEvent(eventGridContextMenu);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -86,7 +87,8 @@ public class GridContextMenu {
|
||||||
if (gridPanel != null) {
|
if (gridPanel != null) {
|
||||||
ArrayList<String> rows = gridPanel.getSelectedRowsId();
|
ArrayList<String> rows = gridPanel.getSelectedRowsId();
|
||||||
GridContextMenuItemEvent eventGridContextMenu = new GridContextMenuItemEvent(
|
GridContextMenuItemEvent eventGridContextMenu = new GridContextMenuItemEvent(
|
||||||
GridOperationId.ROWDELETE, rows);
|
GridOperationId.ROWDELETE);
|
||||||
|
eventGridContextMenu.setRows(rows);
|
||||||
eventBus.fireEvent(eventGridContextMenu);
|
eventBus.fireEvent(eventGridContextMenu);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue