コード例 #1
0
 /**
  * @param cell
  * @return
  */
 private int calculateRowIdx(IExportDataCell cell) {
   if (this.withHeader) {
     return cell.getRowIndex() + 1;
   } else {
     return cell.getRowIndex();
   }
 }
コード例 #2
0
 /**
  * @see
  *     net.sourceforge.squirrel_sql.fw.gui.action.exportData.AbstractDataExportFileWriter#addCell(net.sourceforge.squirrel_sql.fw.gui.action.TableExportCsvController,
  *     int, int, net.sourceforge.squirrel_sql.fw.gui.action.exportData.IExportDataCell)
  */
 @Override
 protected void addCell(IExportDataCell cell) throws Exception {
   Cell xlsCell;
   if (getCtrl().useGloablPrefsFormatting()) {
     xlsCell =
         getXlsCell(
             cell.getColumnDisplayDefinition(),
             cell.getColumnIndex(),
             calculateRowIdx(cell),
             cell.getObject());
   } else {
     xlsCell = getXlsCell(null, cell.getColumnIndex(), calculateRowIdx(cell), cell.getObject());
   }
 }