public final class PoiExcelHelper extends Object
| Modifier and Type | Method and Description |
|---|---|
static org.apache.poi.ss.usermodel.Font |
cloneFontFrom(org.apache.poi.ss.usermodel.Cell cell) |
static org.apache.poi.ss.usermodel.CellStyle |
cloneStyleFrom(org.apache.poi.ss.usermodel.Cell cell) |
static void |
copyCellStyle(org.apache.poi.ss.usermodel.Cell cellFrom,
org.apache.poi.ss.usermodel.Cell cellTo,
org.apache.poi.ss.usermodel.Sheet sheetTo) |
static void |
copyCellValue(org.apache.poi.ss.usermodel.Cell cellFrom,
org.apache.poi.ss.usermodel.Cell cellTo) |
static <T extends org.apache.poi.ss.usermodel.CellStyle> |
createCellStyle(org.apache.poi.ss.usermodel.Workbook workbook) |
static void |
evaluateFormula(org.apache.poi.ss.usermodel.Cell cell)
Evaluates formula in the cell to get new cell value.
|
static org.apache.poi.ss.usermodel.Cell |
getCell(int colIndex,
int rowIndex,
org.apache.poi.ss.usermodel.Sheet sheet) |
static short[][] |
getCellBorderColors(org.apache.poi.ss.usermodel.CellStyle style,
org.apache.poi.ss.usermodel.Workbook workbook) |
static org.apache.poi.ss.usermodel.BorderStyle[] |
getCellBorderStyles(org.apache.poi.ss.usermodel.CellStyle style) |
static org.apache.poi.ss.usermodel.Font |
getCellFont(org.apache.poi.ss.usermodel.Cell cell) |
static org.apache.poi.xssf.usermodel.XSSFColor |
getColor(short[] color,
org.apache.poi.xssf.usermodel.XSSFWorkbook workbook) |
static int |
getColumnWidth(int col,
org.apache.poi.ss.usermodel.Sheet sheet)
Some magic numbers here What is column width???
|
static short[] |
getFontColor(org.apache.poi.ss.usermodel.Font font,
org.apache.poi.ss.usermodel.Workbook workbook) |
static int |
getLastRowNum(org.apache.poi.ss.usermodel.Sheet sheet) |
static int |
getMaxColumnIndex(int rownum,
org.apache.poi.ss.usermodel.Sheet sheet)
Returns the index of the column.
|
static int |
getMaxRowIndex(org.apache.poi.ss.usermodel.Sheet sheet) |
static org.apache.poi.ss.util.CellRangeAddress |
getMergedRegionAt(int index,
org.apache.poi.ss.usermodel.Sheet sheet) |
static int |
getMinColumnIndex(int rownum,
org.apache.poi.ss.usermodel.Sheet sheet)
Returns the index of the column, the next column will be the first cell with data in given row.
|
static int |
getMinRowIndex(org.apache.poi.ss.usermodel.Sheet sheet) |
static int |
getNumberOfMergedRegions(org.apache.poi.ss.usermodel.Sheet sheet) |
static org.apache.poi.ss.usermodel.Cell |
getOrCreateCell(int colIndex,
int rowIndex,
org.apache.poi.ss.usermodel.Sheet sheet) |
static void |
setCellBorderColors(org.apache.poi.ss.usermodel.CellStyle style,
short[][] colors,
org.apache.poi.ss.usermodel.Workbook workbook) |
static void |
setCellFont(org.apache.poi.ss.usermodel.Cell cell,
boolean boldWeight,
short color,
short fontHeight,
String name,
boolean italic,
boolean strikeout,
short typeOffset,
byte underline) |
static void |
setCellFontBold(org.apache.poi.ss.usermodel.Cell cell,
boolean boldweight) |
static void |
setCellFontItalic(org.apache.poi.ss.usermodel.Cell cell,
boolean italic) |
static void |
setCellFontUnderline(org.apache.poi.ss.usermodel.Cell cell,
byte underline) |
static void |
setCellStringValue(int col,
int row,
String value,
org.apache.poi.ss.usermodel.Sheet sheet) |
static short[] |
toRgb(org.apache.poi.ss.usermodel.Color color) |
static short[] |
toRgb(short colorIndex,
org.apache.poi.hssf.usermodel.HSSFWorkbook workbook) |
public static void copyCellValue(org.apache.poi.ss.usermodel.Cell cellFrom,
org.apache.poi.ss.usermodel.Cell cellTo)
public static void copyCellStyle(org.apache.poi.ss.usermodel.Cell cellFrom,
org.apache.poi.ss.usermodel.Cell cellTo,
org.apache.poi.ss.usermodel.Sheet sheetTo)
public static org.apache.poi.ss.usermodel.Cell getCell(int colIndex,
int rowIndex,
org.apache.poi.ss.usermodel.Sheet sheet)
public static org.apache.poi.ss.usermodel.Cell getOrCreateCell(int colIndex,
int rowIndex,
org.apache.poi.ss.usermodel.Sheet sheet)
public static int getColumnWidth(int col,
org.apache.poi.ss.usermodel.Sheet sheet)
public static int getMaxColumnIndex(int rownum,
org.apache.poi.ss.usermodel.Sheet sheet)
rownum - index of the row on the sheetpublic static int getMaxRowIndex(org.apache.poi.ss.usermodel.Sheet sheet)
public static int getMinColumnIndex(int rownum,
org.apache.poi.ss.usermodel.Sheet sheet)
public static int getNumberOfMergedRegions(org.apache.poi.ss.usermodel.Sheet sheet)
public static int getMinRowIndex(org.apache.poi.ss.usermodel.Sheet sheet)
public static int getLastRowNum(org.apache.poi.ss.usermodel.Sheet sheet)
public static void setCellStringValue(int col,
int row,
String value,
org.apache.poi.ss.usermodel.Sheet sheet)
public static org.apache.poi.ss.util.CellRangeAddress getMergedRegionAt(int index,
org.apache.poi.ss.usermodel.Sheet sheet)
public static void evaluateFormula(org.apache.poi.ss.usermodel.Cell cell)
public static <T extends org.apache.poi.ss.usermodel.CellStyle> T createCellStyle(org.apache.poi.ss.usermodel.Workbook workbook)
public static org.apache.poi.ss.usermodel.CellStyle cloneStyleFrom(org.apache.poi.ss.usermodel.Cell cell)
public static org.apache.poi.ss.usermodel.Font cloneFontFrom(org.apache.poi.ss.usermodel.Cell cell)
public static org.apache.poi.ss.usermodel.Font getCellFont(org.apache.poi.ss.usermodel.Cell cell)
public static void setCellFont(org.apache.poi.ss.usermodel.Cell cell,
boolean boldWeight,
short color,
short fontHeight,
String name,
boolean italic,
boolean strikeout,
short typeOffset,
byte underline)
public static void setCellFontBold(org.apache.poi.ss.usermodel.Cell cell,
boolean boldweight)
public static void setCellFontItalic(org.apache.poi.ss.usermodel.Cell cell,
boolean italic)
public static void setCellFontUnderline(org.apache.poi.ss.usermodel.Cell cell,
byte underline)
public static short[] toRgb(org.apache.poi.ss.usermodel.Color color)
public static short[] toRgb(short colorIndex,
org.apache.poi.hssf.usermodel.HSSFWorkbook workbook)
public static short[] getFontColor(org.apache.poi.ss.usermodel.Font font,
org.apache.poi.ss.usermodel.Workbook workbook)
public static short[][] getCellBorderColors(org.apache.poi.ss.usermodel.CellStyle style,
org.apache.poi.ss.usermodel.Workbook workbook)
public static org.apache.poi.ss.usermodel.BorderStyle[] getCellBorderStyles(org.apache.poi.ss.usermodel.CellStyle style)
public static void setCellBorderColors(org.apache.poi.ss.usermodel.CellStyle style,
short[][] colors,
org.apache.poi.ss.usermodel.Workbook workbook)
public static org.apache.poi.xssf.usermodel.XSSFColor getColor(short[] color,
org.apache.poi.xssf.usermodel.XSSFWorkbook workbook)
Copyright © 2004–2019 OpenL Tablets. All rights reserved.