Fixed Column Key

git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/portlets/user/tabular-data-widgetx@93841 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
Giancarlo Panichi 2014-03-28 19:43:59 +00:00 committed by Giancarlo Panichi
parent 8d15b40a5e
commit 2748b0adde
1 changed files with 6 additions and 5 deletions

View File

@ -261,10 +261,10 @@ public class TabularDataXGridPanel extends ContentPanel {
DataRowColumnConfig<?> cSelected = (DataRowColumnConfig<?>) colSelected;
ColumnDefinition cdSelected = cSelected.getDefinition();
String cellValue = row
.getFieldAsText(cdSelected.getLabel());
.getFieldAsText(cdSelected.getColumnLocalId());
String columnIdValue = row.getFieldAsText(columnIdSelected
.getLabel());
.getColumnLocalId());
CellData tdCell = new CellData(cellValue,
cdSelected.getId(), cdSelected.getColumnLocalId(),
@ -373,7 +373,7 @@ public class TabularDataXGridPanel extends ContentPanel {
ArrayList<String> rows = new ArrayList<String>();
if (rowsSelected != null) {
for (Row row : rowsSelected) {
rowS = row.getFieldAsText(cd.getLabel());
rowS = row.getFieldAsText(cd.getColumnLocalId());
Log.debug("Selected Row:" + rowS);
rows.add(rowS);
}
@ -420,7 +420,7 @@ public class TabularDataXGridPanel extends ContentPanel {
ArrayList<String> rows = new ArrayList<String>();
if (rowsSelected != null) {
for (Row row : rowsSelected) {
rowS = row.getFieldAsText(cd.getLabel());
rowS = row.getFieldAsText(cd.getColumnLocalId());
Log.debug("Selected Row:" + rowS);
rows.add(rowS);
}
@ -476,7 +476,7 @@ public class TabularDataXGridPanel extends ContentPanel {
this.currentTableDefinition = definition;
keys = new HashMap<String, ColumnKey>();
for (ColumnDefinition column : definition.getColumnsAsList())
keys.put(column.getLabel(), column.getKey());
keys.put(column.getColumnLocalId(), column.getKey());
unmask();
}
@ -576,6 +576,7 @@ public class TabularDataXGridPanel extends ContentPanel {
loader.setRemoteSort(true);
liveGridView = new ExtendedLiveGridView();
// liveGridView.setRowHeight(19);
grid = new Grid<DataRow>(store, columnModel);