for (int colIdx = 0; colIdx < nbrSelCols; ++colIdx)
{
TableColumn col = _table.getColumnModel().getColumn(selCols[colIdx]);
ColumnDisplayDefinition colDef = null;
if(col instanceof ExtTableColumn)
{
colDef = ((ExtTableColumn) col).getColumnDisplayDefinition();
}
else
{
continue;
}
if (firstCol)
{
firstCol = false;
colNames.append("INSERT INTO PressCtrlH (");
vals.append("(");
}
else
{
colNames.append(",");
vals.append(",");
}
Object cellObj = _table.getValueAt(selRows[rowIdx], selCols[colIdx]);
colNames.append(colDef.getColumnName());
vals.append(getData(colDef, cellObj, StatType.IN));
}
colNames.append(")");
vals.append(")");