| Package | Description |
|---|---|
| org.apache.poi.hssf.usermodel |
The usermodel package maps HSSF low level structures to familiar workbook/sheet model
|
| org.apache.poi.ss.usermodel | |
| org.apache.poi.ss.util |
| Modifier and Type | Class and Description |
|---|---|
class |
HSSFCellStyle
High level representation of the style of a cell in a sheet of a workbook.
|
| Modifier and Type | Method and Description |
|---|---|
void |
HSSFCellStyle.cloneStyleFrom(CellStyle source)
Clones all the style information from another
HSSFCellStyle, onto this one.
|
void |
HSSFCell.setCellStyle(CellStyle style)
Set the style for the cell.
|
void |
HSSFSheet.setDefaultColumnStyle(int column,
CellStyle style)
Sets the default column style for a given column.
|
void |
HSSFRow.setRowStyle(CellStyle style)
Applies a whole-row cell styling to the row.
|
| Modifier and Type | Method and Description |
|---|---|
CellStyle |
Workbook.createCellStyle()
Create a new Cell style and add it to the workbook's style table
|
CellStyle |
Cell.getCellStyle()
Return the cell's style.
|
CellStyle |
Workbook.getCellStyleAt(int idx)
Get the cell style object at the given index
|
CellStyle |
Sheet.getColumnStyle(int column)
Returns the CellStyle that applies to the given
(0 based) column, or null if no style has been
set for that column
|
CellStyle |
CellCopyContext.getMappedStyle(CellStyle srcStyle) |
CellStyle |
Row.getRowStyle()
Returns the whole-row cell styles.
|
| Modifier and Type | Method and Description |
|---|---|
void |
CellStyle.cloneStyleFrom(CellStyle source)
Clones all the style information from another
CellStyle, onto this one.
|
static ExcelNumberFormat |
ExcelNumberFormat.from(CellStyle style) |
CellStyle |
CellCopyContext.getMappedStyle(CellStyle srcStyle) |
void |
CellCopyContext.putMappedStyle(CellStyle srcStyle,
CellStyle mappedStyle) |
void |
Cell.setCellStyle(CellStyle style)
Set the style for the cell.
|
void |
Sheet.setDefaultColumnStyle(int column,
CellStyle style)
Sets the default column style for a given column.
|
void |
Row.setRowStyle(CellStyle style)
Applies a whole-row cell styling to the row.
|
| Modifier and Type | Method and Description |
|---|---|
static void |
RangeCopier.cloneCellContent(Cell srcCell,
Cell destCell,
Map<Integer,CellStyle> styleMap) |
| Modifier and Type | Method and Description |
|---|---|
static Cell |
CellUtil.createCell(Row row,
int column,
String value,
CellStyle style)
Creates a cell, gives it a value, and applies a style if provided
|