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

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.DateExcelCellData

public class DateExcelCellData
extends ExcelCellData

A Date excel cell.

Author:
Heiko Evermann

Constructor Summary
DateExcelCellData(java.awt.geom.Rectangle2D elementBounds, ExcelDataCellStyle style, java.util.Date value)
          Creates a new instance.
 
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

DateExcelCellData

public DateExcelCellData(java.awt.geom.Rectangle2D elementBounds,
                         ExcelDataCellStyle style,
                         java.util.Date value)
Creates a new instance.

Parameters:
elementBounds - the bounds of the cell.
style - the cell style.
value - the date 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.