com.jrefinery.report.targets.table.excel
Class DefaultExcelCellData
java.lang.Object
com.jrefinery.report.targets.table.TableCellData
com.jrefinery.report.targets.table.excel.ExcelCellData
com.jrefinery.report.targets.table.excel.DefaultExcelCellData
- public class DefaultExcelCellData
- extends ExcelCellData
The DefaultExcelCellData stores generic text data. The text data in the excel sheet
is not formated in any way. This implementation is used for POI 1.5.1, later versions
should use specific formats for the excel cells.
- Author:
- Heiko Evermann
Method Summary |
void |
applyContent(org.apache.poi.hssf.usermodel.HSSFCell cell)
Applies the cell data to the given Excel cell. |
boolean |
isEmpty()
Tests, whether this cell is empty. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
DefaultExcelCellData
public DefaultExcelCellData(java.awt.geom.Rectangle2D elementBounds,
ExcelDataCellStyle style,
java.lang.String value)
- Creates new DefaultExcelCellData. The cell data is placed in the grid
on the given bounds. The given ExcelDataCellStyle is assigned with this
data cell.
- Parameters:
elementBounds
- the element bounds within the grid.style
- the assigned cell style.value
- the value stored in the cell data object.
applyContent
public void applyContent(org.apache.poi.hssf.usermodel.HSSFCell cell)
- Applies the cell data to the given Excel cell.
- Specified by:
applyContent
in class ExcelCellData
- Parameters:
cell
- the generated excel cell, which should be filled with the data.
isEmpty
public boolean isEmpty()
- Tests, whether this cell is empty. The cell is empty, if the content is either
null or has a lenght of 0.
- Specified by:
isEmpty
in class ExcelCellData
- Returns:
- true, if the content is empty, false otherwise.