Save This Page
Home » poi-src-3.2-FINAL-20081019 » org.apache » poi » hssf » eventusermodel » [javadoc | source]
org.apache.poi.hssf.eventusermodel
public class: FormatTrackingHSSFListener [javadoc | source]
java.lang.Object
   org.apache.poi.hssf.eventusermodel.FormatTrackingHSSFListener

All Implemented Interfaces:
    HSSFListener

A proxy HSSFListener that keeps track of the document formatting records, and provides an easy way to look up the format strings used by cells from their ids.
Constructor:
 public FormatTrackingHSSFListener(HSSFListener childListener) 
Method from org.apache.poi.hssf.eventusermodel.FormatTrackingHSSFListener Summary:
getFormatIndex,   getFormatString,   getFormatString,   processRecord,   processRecordInternally
Methods from java.lang.Object:
equals,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.apache.poi.hssf.eventusermodel.FormatTrackingHSSFListener Detail:
 public int getFormatIndex(CellValueRecordInterface cell) 
    Returns the index of the format string, used by your cell, or -1 if none found
 public String getFormatString(int formatIndex) 
    Returns the format string, eg $##.##, for the given number format index.
 public String getFormatString(CellValueRecordInterface cell) 
    Returns the format string, eg $##.##, used by your cell
 public  void processRecord(Record record) 
    Process this record ourselves, and then pass it on to our child listener
 public  void processRecordInternally(Record record) 
    Process the record ourselves, but do not pass it on to the child Listener.