public interface IExcelBuilder
Modifier and Type | Method and Description |
---|---|
org.apache.poi.ss.usermodel.Comment |
addComment(org.apache.poi.ss.usermodel.Cell cell,
String text,
int row,
int col,
int colWidth,
int rowHeight) |
Collection<org.apache.poi.ss.usermodel.Sheet> |
getAllSheets() |
org.apache.poi.ss.usermodel.Font |
getBoldFont() |
org.apache.poi.hssf.util.HSSFColor |
getColor(ByteColor color) |
org.apache.poi.ss.usermodel.Sheet |
getCurrentSheet() |
int |
getCurrentSheetId() |
org.apache.poi.ss.usermodel.Workbook |
getWorkbook() |
org.apache.poi.ss.usermodel.Workbook |
load(File file) |
org.apache.poi.ss.usermodel.Workbook |
load(String file) |
int |
loadPicture(String image) |
void |
mergeRange(int firstRow,
int firstColumn,
int lastRow,
int lastColumn) |
org.apache.poi.ss.usermodel.CellStyle |
newCellStyle() |
org.apache.poi.ss.usermodel.CellStyle |
newColoredCellStyle(ByteColor color) |
org.apache.poi.ss.usermodel.Font |
newFont() |
org.apache.poi.ss.usermodel.Font |
newFont(int size) |
int |
newSheet(int index,
String name) |
void |
save(File file) |
void |
save(String file) |
org.apache.poi.ss.usermodel.Cell |
setCell(int row,
int column,
String content)
Set a cell text content with no styling information.
|
org.apache.poi.ss.usermodel.Cell |
setCell(int row,
int column,
String content,
org.apache.poi.ss.usermodel.CellStyle style)
Set a cell content at the given indices, and apply the style if it is not null.
|
void |
setColumnWidth(int column,
int width)
Set the width (in units of 1/256th of a character width)
|
void |
setColumnWidthAuto(int column) |
void |
setCurrentSheetId(int s) |
void |
setFreezePane(int colSplit,
int rowSplit) |
void |
setFreezePane(int colSplit,
int rowSplit,
int leftmostColumn,
int topRow) |
void |
setPicture(int pictureIdx,
int col1,
int row1,
boolean resize) |
void |
setRowHeight(int row,
int height) |
void |
setSplitPane(int xSplitPos,
int ySplitPos,
int leftmostColumn,
int topRow,
int activePane) |
org.apache.poi.ss.usermodel.Cell setCell(int row, int column, String content, org.apache.poi.ss.usermodel.CellStyle style)
row
- row indexcolumn
- column indexcontent
- a string to display in the cellstyle
- a style to apply to the cellorg.apache.poi.ss.usermodel.Cell setCell(int row, int column, String content)
setCell(int i, int j, String content, CellStyle style)}
org.apache.poi.ss.usermodel.Sheet getCurrentSheet()
Collection<org.apache.poi.ss.usermodel.Sheet> getAllSheets()
int getCurrentSheetId()
void setCurrentSheetId(int s)
int newSheet(int index, String name)
void setRowHeight(int row, int height)
void setColumnWidth(int column, int width)
void setColumnWidthAuto(int column)
void setFreezePane(int colSplit, int rowSplit)
void setFreezePane(int colSplit, int rowSplit, int leftmostColumn, int topRow)
void setSplitPane(int xSplitPos, int ySplitPos, int leftmostColumn, int topRow, int activePane)
void mergeRange(int firstRow, int firstColumn, int lastRow, int lastColumn)
org.apache.poi.ss.usermodel.Comment addComment(org.apache.poi.ss.usermodel.Cell cell, String text, int row, int col, int colWidth, int rowHeight)
org.apache.poi.ss.usermodel.CellStyle newColoredCellStyle(ByteColor color)
void save(String file) throws IOException
IOException
void save(File file) throws IOException
IOException
org.apache.poi.ss.usermodel.Workbook load(String file) throws org.apache.poi.openxml4j.exceptions.InvalidFormatException, IOException
org.apache.poi.openxml4j.exceptions.InvalidFormatException
IOException
org.apache.poi.ss.usermodel.Workbook load(File file) throws org.apache.poi.openxml4j.exceptions.InvalidFormatException, IOException
org.apache.poi.openxml4j.exceptions.InvalidFormatException
IOException
org.apache.poi.ss.usermodel.Font newFont(int size)
org.apache.poi.ss.usermodel.Font newFont()
org.apache.poi.ss.usermodel.Font getBoldFont()
org.apache.poi.ss.usermodel.CellStyle newCellStyle()
org.apache.poi.ss.usermodel.Workbook getWorkbook()
org.apache.poi.hssf.util.HSSFColor getColor(ByteColor color)
int loadPicture(String image) throws IOException
IOException
void setPicture(int pictureIdx, int col1, int row1, boolean resize)
Copyright © 2015 Nuxeo SA. All rights reserved.