CellUtil
instead.@Deprecated @Removal(version="3.17") public final class HSSFCellUtil extends java.lang.Object
public static HSSFRow getRow(int rowIndex, HSSFSheet sheet)
CellUtil.getRow(int, org.apache.poi.ss.usermodel.Sheet)
instead.rowIndex
- The 0 based row numbersheet
- The sheet that the row is part of.public static HSSFCell getCell(HSSFRow row, int columnIndex)
CellUtil.getCell(org.apache.poi.ss.usermodel.Row, int)
instead.row
- The row that the cell is part ofcolumnIndex
- The column index that the cell is in.public static HSSFCell createCell(HSSFRow row, int column, java.lang.String value, HSSFCellStyle style)
CellUtil.createCell(org.apache.poi.ss.usermodel.Row, int, java.lang.String, org.apache.poi.ss.usermodel.CellStyle)
instead.row
- the row to create the cell incolumn
- the column index to create the cell invalue
- The value of the cellstyle
- If the style is not null, then setpublic static HSSFCell createCell(HSSFRow row, int column, java.lang.String value)
CellUtil.createCell(org.apache.poi.ss.usermodel.Row, int, java.lang.String, org.apache.poi.ss.usermodel.CellStyle)
instead.row
- the row to create the cell incolumn
- the column index to create the cell invalue
- The value of the cellpublic static void setAlignment(HSSFCell cell, HSSFWorkbook workbook, short align)
CellUtil.setAlignment(org.apache.poi.ss.usermodel.Cell, org.apache.poi.ss.usermodel.Workbook, short)
instead.cell
- the cell to set the alignment forworkbook
- The workbook that is being worked with.align
- the column alignment to use.for alignment options
public static void setAlignment(HSSFCell cell, HorizontalAlignment align)
CellUtil.setAlignment(org.apache.poi.ss.usermodel.Cell, org.apache.poi.ss.usermodel.Workbook, short)
instead.cell
- the cell to set the alignment foralign
- the column alignment to use.for alignment options
public static void setFont(HSSFCell cell, HSSFWorkbook workbook, HSSFFont font)
CellUtil.setFont(org.apache.poi.ss.usermodel.Cell, org.apache.poi.ss.usermodel.Workbook, org.apache.poi.ss.usermodel.Font)
instead.cell
- the cell to set the alignment forworkbook
- The workbook that is being worked with.font
- The HSSFFont that you want to set.public static void setCellStyleProperty(HSSFCell cell, HSSFWorkbook workbook, java.lang.String propertyName, java.lang.Object propertyValue)
CellUtil.setCellStyleProperty(org.apache.poi.ss.usermodel.Cell, org.apache.poi.ss.usermodel.Workbook, java.lang.String, java.lang.Object)
instead.workbook
- The workbook that is being worked with.propertyName
- The name of the property that is to be changed.propertyValue
- The value of the property that is to be changed.cell
- The cell that needs it's style changespublic static HSSFCell translateUnicodeValues(HSSFCell cell)
CellUtil.translateUnicodeValues(org.apache.poi.ss.usermodel.Cell)
instead.cell
- The cell to check for unicode valuesCopyright 2017 The Apache Software Foundation or its licensors, as applicable.