/** * Create a cell, and give it a value. * *@param row the row to create the cell in *@param column the column index to create the cell in *@param value The value of the cell *@return A new Cell. */ public static Cell createCell(Row row, int column, String value) { return createCell(row, column, value, null); }
/** * Create a cell, and give it a value. * *@param row the row to create the cell in *@param column the column index to create the cell in *@param value The value of the cell *@return A new Cell. */ public static Cell createCell(Row row, int column, String value) { return createCell(row, column, value, null); }
/** * Create a cell, and give it a value. * *@param row the row to create the cell in *@param column the column index to create the cell in *@param value The value of the cell *@return A new Cell. */ public static Cell createCell(Row row, int column, String value) { return createCell(row, column, value, null); }
/** * Creates a cell, gives it a value, and applies a style if provided * * @param row the row to create the cell in * @param column the column index to create the cell in * @param value The value of the cell * @param style If the style is not null, then set * @return A new HSSFCell */ public static HSSFCell createCell(HSSFRow row, int column, String value, HSSFCellStyle style) { return (HSSFCell) CellUtil.createCell(row, column, value, style); }
/** * Create a cell, and give it a value. * *@param row the row to create the cell in *@param column the column index to create the cell in *@param value The value of the cell *@return A new Cell. */ public static Cell createCell(Row row, int column, String value) { return createCell(row, column, value, null); }
/** * Creates a cell, gives it a value, and applies a style if provided * * @param row the row to create the cell in * @param column the column index to create the cell in * @param value The value of the cell * @param style If the style is not null, then set * @return A new HSSFCell */ public static HSSFCell createCell(HSSFRow row, int column, String value, HSSFCellStyle style) { return (HSSFCell) CellUtil.createCell(row, column, value, style); }
Cell cell = createCell(sxssfRow, jRow, labelName[k]); setMergedRegion(sxssfSheet, 0, 0, 0, list.get(0).length - 1); setExcelStyles(cell, sxssfWorkbook, sxssfRow, 16, true, true, false, false, false, null, 399); for (int j = 0; j < listValue.length; j++) { Cell cells = sxssfRow.createCell(j); Cell cell = createCell(sxssfRow, columnIndex, listValue[j]); columnIndex++;