Class ExcelSheetWriter
java.lang.Object
com.xebialabs.xlrelease.reports.excel.ExcelSheetWriter
This is an abstraction of the actual excel writer
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Integerstatic final org.joda.time.format.PeriodFormatter -
Constructor Summary
ConstructorsConstructorDescriptionExcelSheetWriter(ReportWorkbook reportWorkbook, org.apache.poi.xssf.usermodel.XSSFSheet sheet, com.xebialabs.xlrelease.reports.excel.ExcelStyles styles) -
Method Summary
Modifier and TypeMethodDescriptionaddBottomBorderToCell(org.apache.poi.xssf.usermodel.XSSFCell cell) protected ExcelSheetWriteraddCell(org.apache.poi.xssf.usermodel.XSSFRichTextString text, org.apache.poi.xssf.usermodel.XSSFCellStyle style) addCell(org.joda.time.Duration duration) addEmptyCell(org.apache.poi.xssf.usermodel.XSSFCellStyle style) addFullText(String text) addHeaderCell(com.xebialabs.xlrelease.reports.excel.ExcelHeaderColumn header) addHeaderCell(com.xebialabs.xlrelease.reports.excel.ExcelHeaderColumn header, org.apache.poi.xssf.usermodel.XSSFCellStyle style) addHeaderCell(String text, int width) addHeaderCell(String text, int width, org.apache.poi.xssf.usermodel.XSSFCellStyle style) addHeaderFilter(int numberOfColumns) addHeaderFilter(int numberOfColumns, boolean freezePane) addHyperlink(String text, String url, org.apache.poi.common.usermodel.HyperlinkType type, org.apache.poi.xssf.usermodel.XSSFCellStyle hyperlinkStyle) addHyperlink(String text, String url, org.apache.poi.xssf.usermodel.XSSFCellStyle hyperlinkStyle) protected ExcelSheetWriteraddProperty(String key, String value) applyPhaseColor(com.xebialabs.xlrelease.domain.Phase phase) protected ExcelSheetWriterendGroup()intorg.apache.poi.xssf.usermodel.XSSFCellStyleorg.apache.poi.xssf.usermodel.XSSFCellStyleintorg.apache.poi.xssf.usermodel.XSSFSheetgetSheet()org.apache.poi.xssf.usermodel.XSSFWorkbookindent()insertImage(URL imageResource, int rowIndex, int colIndex, int magicWidth, int magicHeight) booleanbooleanmergeCells(org.apache.poi.ss.util.CellRangeAddress range) newRow()replaceWithHyperlink(int srcRow, int srcCol, String targetSheet, int targetRow, int targetCol, org.apache.poi.xssf.usermodel.XSSFCellStyle hyperlinkStyle) setCellHyperlink(org.apache.poi.xssf.usermodel.XSSFHyperlink hyperlink) voidsetPhaseRow(boolean isPhaseRow) setRowHeight(float points) voidsetWrappedRow(boolean wrapped) protected ExcelSheetWriterstatic String
-
Field Details
-
MAXIMUM_CELL_LENGTH
-
PERIOD_FORMATTER
public static final org.joda.time.format.PeriodFormatter PERIOD_FORMATTER
-
-
Constructor Details
-
ExcelSheetWriter
public ExcelSheetWriter(ReportWorkbook reportWorkbook, org.apache.poi.xssf.usermodel.XSSFSheet sheet, com.xebialabs.xlrelease.reports.excel.ExcelStyles styles)
-
-
Method Details
-
newRow
-
setRowHeight
-
indent
-
goToStartOfLine
-
newColumn
-
addHeaderCell
-
addHeaderCell
public ExcelSheetWriter addHeaderCell(com.xebialabs.xlrelease.reports.excel.ExcelHeaderColumn header) -
addHeaderCell
public ExcelSheetWriter addHeaderCell(com.xebialabs.xlrelease.reports.excel.ExcelHeaderColumn header, org.apache.poi.xssf.usermodel.XSSFCellStyle style) -
addHeaderCell
public ExcelSheetWriter addHeaderCell(String text, int width, org.apache.poi.xssf.usermodel.XSSFCellStyle style) -
addCell
-
addCell
-
addCell
-
addCell
-
addCell
-
setCellHyperlink
-
addCell
public ExcelSheetWriter addCell(org.apache.poi.xssf.usermodel.XSSFRichTextString text, org.apache.poi.xssf.usermodel.XSSFCellStyle style) -
addCell
-
addCell
-
addCell
-
addCell
-
addEmptyCell
-
addHyperlink
public ExcelSheetWriter addHyperlink(String text, String url, org.apache.poi.xssf.usermodel.XSSFCellStyle hyperlinkStyle) -
addHyperlink
public ExcelSheetWriter addHyperlink(String text, String url, org.apache.poi.common.usermodel.HyperlinkType type, org.apache.poi.xssf.usermodel.XSSFCellStyle hyperlinkStyle) -
addFullText
-
addProperty
-
mergeCells
-
applyPhaseColor
-
startGroup
-
endGroup
-
addHeaderFilter
-
addHeaderFilter
-
getDefaultStyle
public org.apache.poi.xssf.usermodel.XSSFCellStyle getDefaultStyle() -
getDateStyle
public org.apache.poi.xssf.usermodel.XSSFCellStyle getDateStyle() -
insertImage
public ExcelSheetWriter insertImage(URL imageResource, int rowIndex, int colIndex, int magicWidth, int magicHeight) -
replaceWithHyperlink
public ExcelSheetWriter replaceWithHyperlink(int srcRow, int srcCol, String targetSheet, int targetRow, int targetCol, org.apache.poi.xssf.usermodel.XSSFCellStyle hyperlinkStyle) -
addBottomBorderToCell
-
getWorkbook
public org.apache.poi.xssf.usermodel.XSSFWorkbook getWorkbook() -
getSheet
public org.apache.poi.xssf.usermodel.XSSFSheet getSheet() -
getRowIndex
public int getRowIndex() -
getColumnIndex
public int getColumnIndex() -
isWrappedRow
public boolean isWrappedRow() -
setWrappedRow
public void setWrappedRow(boolean wrapped) -
isPhaseRow
public boolean isPhaseRow() -
setPhaseRow
public void setPhaseRow(boolean isPhaseRow) -
getReportWorkbook
-
truncate
-