jxl.write.biff
Class ExternalSheetRecord

java.lang.Object
  |
  +--jxl.biff.RecordData
        |
        +--jxl.biff.WritableRecordData
              |
              +--jxl.write.biff.ExternalSheetRecord
All Implemented Interfaces:
ByteData

class ExternalSheetRecord
extends WritableRecordData

An external sheet record, used to maintain integrity when formulas are copied from read databases


Inner Class Summary
private static class ExternalSheetRecord.XTI
          An XTI structure.
 
Field Summary
private  byte[] data
          The underlying external sheet data
private  java.util.ArrayList xtis
          The list of XTI structures
 
Fields inherited from class jxl.biff.RecordData
code, record
 
Constructor Summary
ExternalSheetRecord()
          Constructor used for writable workbooks
ExternalSheetRecord(ExternalSheetRecord esf)
          Constructor
 
Method Summary
 byte[] getData()
          Gets the binary data for output to file
 int getFirstTabIndex(int index)
          Gets the first tab index for the specified external sheet
(package private)  int getIndex(int supbookind, int sheetind)
          Gets the extern sheet index for the specified parameters, creating a new xti record if necessary
 int getLastTabIndex(int index)
          Gets the last tab index for the specified external sheet
 int getSupbookIndex(int index)
          Gets the supbook index for the specified external sheet
 
Methods inherited from class jxl.biff.WritableRecordData
getBytes
 
Methods inherited from class jxl.biff.RecordData
getCode, getRecord
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait
 

Field Detail

data

private byte[] data
The underlying external sheet data

xtis

private java.util.ArrayList xtis
The list of XTI structures
Constructor Detail

ExternalSheetRecord

public ExternalSheetRecord(ExternalSheetRecord esf)
Constructor
Parameters:
esf - the external sheet record to copy

ExternalSheetRecord

public ExternalSheetRecord()
Constructor used for writable workbooks
Method Detail

getIndex

int getIndex(int supbookind,
             int sheetind)
Gets the extern sheet index for the specified parameters, creating a new xti record if necessary
Parameters:
supbookind - the internal supbook reference
sheetind - the sheet index

getData

public byte[] getData()
Gets the binary data for output to file
Overrides:
getData in class WritableRecordData
Returns:
the binary data

getSupbookIndex

public int getSupbookIndex(int index)
Gets the supbook index for the specified external sheet
Parameters:
the - index of the supbook record
Returns:
the supbook index

getFirstTabIndex

public int getFirstTabIndex(int index)
Gets the first tab index for the specified external sheet
Parameters:
the - index of the supbook record
Returns:
the first tab index

getLastTabIndex

public int getLastTabIndex(int index)
Gets the last tab index for the specified external sheet
Parameters:
the - index of the supbook record
Returns:
the last tab index