| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.poi.hssf.eventusermodel.HSSFRequest
public class HSSFRequest
An HSSFRequest object should be constructed registering an instance or multiple instances of HSSFListener with each Record.sid you wish to listen for.
HSSFEventFactory, 
HSSFListener, 
HSSFUserException| Constructor Summary | |
|---|---|
| HSSFRequest()Creates a new instance of HSSFRequest | |
| Method Summary | |
|---|---|
|  void | addListener(HSSFListener lsnr,
            short sid)add an event listener for a particular record type. | 
|  void | addListenerForAllRecords(HSSFListener lsnr)This is the equivalent of calling addListener(myListener, sid) for EVERY record in the org.apache.poi.hssf.record package. | 
| protected  short | processRecord(Record rec)Called by HSSFEventFactory, passes the Record to each listener associated with a record.sid. | 
| Methods inherited from class java.lang.Object | 
|---|
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Constructor Detail | 
|---|
public HSSFRequest()
| Method Detail | 
|---|
public void addListener(HSSFListener lsnr,
                        short sid)
lsnr - for the eventsid - identifier for the record type this is the .sid static member on the individual records
        for example req.addListener(myListener, BOFRecord.sid)addListenerForAllRecords(HSSFListener)public void addListenerForAllRecords(HSSFListener lsnr)
lsnr - a single listener to associate with ALL records
protected short processRecord(Record rec)
                       throws HSSFUserException
HSSFUserException - User exception condition| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||