Class AbstractExcelUtils
java.lang.Object
net.datenwerke.rs.jxlsreport.service.jxlsreport.utils.AbstractExcelUtils
Common class for
and
invalid reference
ExcelToFoConverter
invalid reference
ExcelToHtmlConverter
- Since:
- POI 3.8 beta 5
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidappendAlign(StringBuilder style, HorizontalAlignment alignment) static CellRangeAddress[][]buildMergedRangesMap(Sheet sheet) Creates a map (i.e.static StringgetAlign(HorizontalAlignment alignment) static StringgetBorderStyle(BorderStyle xlsBorder) static StringgetBorderWidth(BorderStyle xlsBorder) static StringgetColor(HSSFColor color) static intgetColumnWidthInPx(int widthUnits) See here for Xio explanation and detailsstatic CellRangeAddressgetMergedRange(CellRangeAddress[][] mergedRanges, int rowNumber, int columnNumber) static HSSFWorkbook
-
Constructor Details
-
AbstractExcelUtils
public AbstractExcelUtils()
-
-
Method Details
-
getAlign
-
getBorderStyle
-
getBorderWidth
-
getColor
-
getColumnWidthInPx
public static int getColumnWidthInPx(int widthUnits) See here for Xio explanation and details -
getMergedRange
public static CellRangeAddress getMergedRange(CellRangeAddress[][] mergedRanges, int rowNumber, int columnNumber) - Parameters:
mergedRanges- map of sheet merged ranges built withbuildMergedRangesMap(Sheet)- Returns:
-
from map if cell with specified row and column numbers contained in found range,
invalid reference
CellRangeAddressnullotherwise
-
loadXls
- Throws:
IOException
-
appendAlign
-
buildMergedRangesMap
public static CellRangeAddress[][] buildMergedRangesMap(Sheet sheet) Creates a map (i.e. two-dimensional array) filled with ranges. Allow fast retrievingof any cell, if cell is contained in range.invalid reference
CellRangeAddress- See Also:
-