Updated Multi Tab
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/portlets/user/tabular-data-widgetx@100737 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
parent
7c99aa5412
commit
2ead4a02eb
|
@ -171,12 +171,25 @@ public class TabularDataX {
|
||||||
* @param i index of column in ColumnModel
|
* @param i index of column in ColumnModel
|
||||||
* @return id of column and equals to column name on service
|
* @return id of column and equals to column name on service
|
||||||
*/
|
*/
|
||||||
public String getColumnId(int i){
|
public String getColumnName(int i){
|
||||||
String columnId=null;
|
String columnId=null;
|
||||||
if(gridPanel!=null){
|
if(gridPanel!=null){
|
||||||
columnId=gridPanel.getColumnId(i);
|
columnId=gridPanel.getColumnName(i);
|
||||||
}
|
}
|
||||||
return columnId;
|
return columnId;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* @param i index of column in ColumnModel
|
||||||
|
* @return id of column and equals to column name on service
|
||||||
|
*/
|
||||||
|
public String getColumnLocalId(int i){
|
||||||
|
String columnLocalId=null;
|
||||||
|
if(gridPanel!=null){
|
||||||
|
columnLocalId=gridPanel.getColumnLocalId(i);
|
||||||
|
}
|
||||||
|
return columnLocalId;
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -937,22 +937,46 @@ public class TabularDataXGridPanel extends ContentPanel {
|
||||||
* index of column in ColumnModel
|
* index of column in ColumnModel
|
||||||
* @return id of column and equals to column name on service
|
* @return id of column and equals to column name on service
|
||||||
*/
|
*/
|
||||||
public String getColumnId(int i) {
|
public String getColumnName(int i) {
|
||||||
Log.debug("Retrive Column Id of column:" + i);
|
Log.debug("Retrive Column Id of column:" + i);
|
||||||
String columnId = null;
|
String columnName = null;
|
||||||
if (grid != null) {
|
if (grid != null) {
|
||||||
ColumnModel<DataRow> columnModel = grid.getColumnModel();
|
ColumnModel<DataRow> columnModel = grid.getColumnModel();
|
||||||
List<ColumnConfig<DataRow, ?>> columns = columnModel.getColumns();
|
List<ColumnConfig<DataRow, ?>> columns = columnModel.getColumns();
|
||||||
|
|
||||||
DataRowColumnConfig<?> dc = (DataRowColumnConfig<?>) columns.get(i);
|
DataRowColumnConfig<?> dc = (DataRowColumnConfig<?>) columns.get(i);
|
||||||
|
|
||||||
columnId = dc.getDefinition().getId();
|
columnName = dc.getDefinition().getId();
|
||||||
Log.debug("Column - Definition: Id: " + columnId);
|
Log.debug("Column - Definition: Id: " + columnName);
|
||||||
|
|
||||||
}
|
}
|
||||||
return columnId;
|
return columnName;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* @param i
|
||||||
|
* index of column in ColumnModel
|
||||||
|
* @return id of column and equals to column name on service
|
||||||
|
*/
|
||||||
|
public String getColumnLocalId(int i) {
|
||||||
|
Log.debug("Retrive Column Local Id of column:" + i);
|
||||||
|
String columnLocalId = null;
|
||||||
|
if (grid != null) {
|
||||||
|
ColumnModel<DataRow> columnModel = grid.getColumnModel();
|
||||||
|
List<ColumnConfig<DataRow, ?>> columns = columnModel.getColumns();
|
||||||
|
|
||||||
|
DataRowColumnConfig<?> dc = (DataRowColumnConfig<?>) columns.get(i);
|
||||||
|
|
||||||
|
columnLocalId = dc.getDefinition().getColumnLocalId();
|
||||||
|
Log.debug("Column - Definition: Column Local Id: " + columnLocalId);
|
||||||
|
|
||||||
|
}
|
||||||
|
return columnLocalId;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @param rows
|
* @param rows
|
||||||
|
|
Loading…
Reference in New Issue