Package org.wicketstuff.poi.excel
Class GeneralPurposeExporter
- java.lang.Object
-
- org.wicketstuff.poi.excel.GeneralPurposeExporter
-
- All Implemented Interfaces:
CellExporter
public class GeneralPurposeExporter extends Object implements CellExporter
First try to get the most nested component in the table data tag, if not possible set the most nested value in markup as aString.- Author:
- Pedro Santos
-
-
Constructor Summary
Constructors Constructor Description GeneralPurposeExporter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidexportCell(XmlTag tag, XmlPullParser parser, org.apache.poi.ss.usermodel.Cell cell, Component gridComponent)protected ComponentgetLinkInnerComponent(Link<?> link)protected voidhandleCalendar(org.apache.poi.ss.usermodel.Cell cell, Calendar calendar)protected voidhandleDate(org.apache.poi.ss.usermodel.Cell cell, Date date)protected voidhandleNumber(org.apache.poi.ss.usermodel.Cell cell, Number number)
-
-
-
Method Detail
-
exportCell
public void exportCell(XmlTag tag, XmlPullParser parser, org.apache.poi.ss.usermodel.Cell cell, Component gridComponent) throws ParseException
- Specified by:
exportCellin interfaceCellExporter- Parameters:
tag-HTML tag parser- theXmlPullParserin use, can be useful to parse nested elementscell- the target cell, where the value needs to be setgridComponent- the table components being parsed- Throws:
ParseException-
handleNumber
protected void handleNumber(org.apache.poi.ss.usermodel.Cell cell, Number number)
-
handleCalendar
protected void handleCalendar(org.apache.poi.ss.usermodel.Cell cell, Calendar calendar)
-
handleDate
protected void handleDate(org.apache.poi.ss.usermodel.Cell cell, Date date)
-
-