Class ExcelSheetWriter

java.lang.Object
com.xebialabs.xlrelease.reports.excel.ExcelSheetWriter

public class ExcelSheetWriter extends Object
This is an abstraction of the actual excel writer
  • Field Details

    • MAXIMUM_CELL_LENGTH

      public static final Integer 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

      public ExcelSheetWriter newRow()
    • setRowHeight

      public ExcelSheetWriter setRowHeight(float points)
    • indent

      public ExcelSheetWriter indent()
    • goToStartOfLine

      public ExcelSheetWriter goToStartOfLine()
    • newColumn

      public ExcelSheetWriter newColumn()
    • addHeaderCell

      public ExcelSheetWriter addHeaderCell(String text, int width)
    • 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

      public ExcelSheetWriter addCell(Object entry)
    • addCell

      protected ExcelSheetWriter addCell(Object entry, org.apache.poi.xssf.usermodel.XSSFCellStyle style)
    • addCell

      public ExcelSheetWriter addCell(Integer entry, org.apache.poi.xssf.usermodel.XSSFCellStyle style)
    • addCell

      public ExcelSheetWriter addCell(String text, org.apache.poi.xssf.usermodel.XSSFCellStyle style)
    • addCell

      public ExcelSheetWriter addCell(String text)
    • setCellHyperlink

      public ExcelSheetWriter setCellHyperlink(org.apache.poi.xssf.usermodel.XSSFHyperlink hyperlink)
    • addCell

      public ExcelSheetWriter addCell(org.apache.poi.xssf.usermodel.XSSFRichTextString text, org.apache.poi.xssf.usermodel.XSSFCellStyle style)
    • addCell

      public ExcelSheetWriter addCell(Date date, org.apache.poi.xssf.usermodel.XSSFCellStyle style)
    • addCell

      public ExcelSheetWriter addCell(Date date)
    • addCell

      public ExcelSheetWriter addCell(org.joda.time.Duration duration)
    • addCell

      public ExcelSheetWriter addCell(String text, Color color)
    • addEmptyCell

      public ExcelSheetWriter addEmptyCell(org.apache.poi.xssf.usermodel.XSSFCellStyle style)
    • 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

      public ExcelSheetWriter addFullText(String text)
    • addProperty

      protected ExcelSheetWriter addProperty(String key, String value)
    • mergeCells

      public ExcelSheetWriter mergeCells(org.apache.poi.ss.util.CellRangeAddress range)
    • applyPhaseColor

      public ExcelSheetWriter applyPhaseColor(com.xebialabs.xlrelease.domain.Phase phase)
    • startGroup

      protected ExcelSheetWriter startGroup()
    • endGroup

      protected ExcelSheetWriter endGroup()
    • addHeaderFilter

      public ExcelSheetWriter addHeaderFilter(int numberOfColumns, boolean freezePane)
    • addHeaderFilter

      public ExcelSheetWriter addHeaderFilter(int numberOfColumns)
    • 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

      public ExcelSheetWriter addBottomBorderToCell(org.apache.poi.xssf.usermodel.XSSFCell cell)
    • 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

      public ReportWorkbook getReportWorkbook()
    • truncate

      public static String truncate(String text)