com.jrefinery.report.targets.table.excel
Class NumericExcelCellData

java.lang.Object
  extended bycom.jrefinery.report.targets.table.TableCellData
      extended bycom.jrefinery.report.targets.table.excel.ExcelCellData
          extended bycom.jrefinery.report.targets.table.excel.NumericExcelCellData

public class NumericExcelCellData
extends ExcelCellData

A excel cell that stores a number.

Author:
Heiko Evermann

Constructor Summary
NumericExcelCellData(java.awt.geom.Rectangle2D elementBounds, ExcelDataCellStyle style, java.lang.Number value)
          Creates a new NumericExcelCellData.
 
Method Summary
 void applyContent(org.apache.poi.hssf.usermodel.HSSFCell cell)
          Applies the cells content and formats to the given HSSFCell.
 boolean isEmpty()
          Tests, whether the cell is empty.
 
Methods inherited from class com.jrefinery.report.targets.table.excel.ExcelCellData
getExcelCellStyle, isBackground, toString
 
Methods inherited from class com.jrefinery.report.targets.table.TableCellData
getBounds
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

NumericExcelCellData

public NumericExcelCellData(java.awt.geom.Rectangle2D elementBounds,
                            ExcelDataCellStyle style,
                            java.lang.Number value)
Creates a new NumericExcelCellData.

Parameters:
elementBounds - the bounds of the cell.
style - the cell style.
value - the number value.
Method Detail

applyContent

public void applyContent(org.apache.poi.hssf.usermodel.HSSFCell cell)
Applies the cells content and formats to the given HSSFCell.

Specified by:
applyContent in class ExcelCellData
Parameters:
cell - the cell, that should be formated.

isEmpty

public boolean isEmpty()
Tests, whether the cell is empty. Empty cells may transport a format, but they don't contain data.

Specified by:
isEmpty in class ExcelCellData
Returns:
true, if the cell is empty, false otherwise.