public class FormatTrackingHSSFListener extends Object implements HSSFListener
| Constructor and Description |
|---|
FormatTrackingHSSFListener(HSSFListener childListener)
Creates a format tracking wrapper around the given listener, using
the
default locale for the formats. |
FormatTrackingHSSFListener(HSSFListener childListener,
Locale locale)
Creates a format tracking wrapper around the given listener, using
the given locale for the formats.
|
| Modifier and Type | Method and Description |
|---|---|
String |
formatNumberDateCell(CellValueRecordInterface cell)
Formats the given numeric of date cells contents as a String, in as
close as we can to the way that Excel would do so.
|
int |
getFormatIndex(CellValueRecordInterface cell)
Returns the index of the format string, used by your cell, or -1 if none found
|
String |
getFormatString(CellValueRecordInterface cell)
Returns the format string, eg $##.##, used by your cell
|
String |
getFormatString(int formatIndex)
Returns the format string, eg $##.##, for the given number format index.
|
void |
processRecord(Record record)
Process this record ourselves, and then pass it on to our child listener
|
void |
processRecordInternally(Record record)
Process the record ourselves, but do not pass it on to the child
Listener.
|
public FormatTrackingHSSFListener(HSSFListener childListener)
default locale for the formats.childListener - the listener to be wrappedpublic FormatTrackingHSSFListener(HSSFListener childListener, Locale locale)
childListener - the listener to be wrappedlocale - the locale for the formatspublic void processRecord(Record record)
processRecord in interface HSSFListenerrecord - the record to be processedpublic void processRecordInternally(Record record)
record - the record to be processedpublic String formatNumberDateCell(CellValueRecordInterface cell)
cell - the cellpublic String getFormatString(int formatIndex)
formatIndex - the format indexpublic String getFormatString(CellValueRecordInterface cell)
cell - the cellpublic int getFormatIndex(CellValueRecordInterface cell)
cell - the cellCopyright © 2010 - 2020 Adobe. All Rights Reserved