public interface Sheet extends BiffRec
| Modifier and Type | Field and Description |
|---|---|
static byte |
HIDDEN |
static byte |
TYPE_CHART |
static byte |
TYPE_SHEET_DIALOG |
static byte |
TYPE_VBMODULE |
static byte |
TYPE_XL4_MACRO |
static byte |
VERY_HIDDEN |
static byte |
VISIBLE |
| Modifier and Type | Method and Description |
|---|---|
void |
addCell(CellRec cell)
add a cell to the worksheet cell collection
associates with Row and Col
|
Chart |
addChart(byte[] inbytes,
String NewChartName,
short[] coords) |
void |
addColinfo(Colinfo c)
column formatting records
|
void |
addMergedCellsRec(Mergedcells r) |
void |
addRecord(BiffRec rec,
int[] rc)
Add an BiffRec to a WorkSheet
|
BiffRec |
addValue(Object obj,
String address)
Add a Value record to a WorkSheet.
|
BiffRec |
getCell(int row,
int col)
Returns a BiffRec for working with
the value of a BiffRec on a WorkSheet.
|
BiffRec |
getCell(String s)
get a cell by address from the worksheet
|
BiffRec[] |
getCells()
get an array of all cells for this worksheet
|
Colinfo |
getColInfo(int colin)
get a handle to a specific column of cells in this sheet
|
Colinfo |
getColinfo(String c)
get a colinfo by first col in range
|
Collection<Colinfo> |
getColinfos()
get the Collection of Colinfos
|
List |
getColNames()
get the List of columns defined on this sheet
|
Dimensions |
getDimensions()
the beginning of the Dimensions record
is the index of the RowBlocks
|
Footerrec |
getFooter() |
byte |
getGrbitChr() |
Guts |
getGuts() |
Headerrec |
getHeader() |
boolean |
getHidden()
get whether this sheet is hidden upon opening
|
BiffRec |
getLastCell()
get the last BiffRec added to this sheet
|
long |
getLbPlyPos()
return the pos of the Bof for this Sheet
|
List |
getLocalRecs() |
int |
getMaxCol() |
int |
getMaxRow() |
Mergedcells |
getMergedCellsRec() |
List |
getMergedCellsRecs() |
int |
getMinCol() |
int |
getMinRow() |
Bof |
getMyBof() |
Eof |
getMyEof() |
int |
getNumCells()
get the number of defined cells on this sheet
|
int |
getNumCols()
get the Number of columns defined on this sheet
|
int |
getNumRows()
get the number of defined rows on this sheet
|
Row |
getRowByNumber(int r)
get a handle to the Row at the specified
row index
|
List |
getRowNums()
get the List of rows defined on this sheet
|
Row[] |
getRows()
return an Array of the Rows in no particular order
|
byte[] |
getSheetBytes() |
String |
getSheetName()
get the name of the sheet
|
int |
getSheetNum()
set the numeric sheet number
|
List |
getSheetRecs() |
short |
getSheetType()
get the type of sheet as a short
|
String |
getSheetTypeString()
get the type of sheet as a string
|
Window2 |
getWindow2() |
WsBool |
getWsBool() |
void |
init()
initialize the SheetImpl with data from
the byte array.
|
boolean |
isChartOnlySheet()
remove rec from the vector, includes firing
a changeevent.
|
void |
preStream()
do all of the expensive updating here
only right before streaming record.
|
void |
removeAllRecords()
remove all Sheet records from Sheet.
|
void |
removeCell(BiffRec c)
Remove a BiffRec from this WorkSheet.
|
void |
removeCell(String celladdr)
Remove a BiffRec from this WorkSheet.
|
void |
removeMulrk(Rk thisrk)
Called from removeCell(), removeMulrk() handles the fact that you
are trying to delete a rk that is really just a part of a Mulrk.
|
void |
removeRecFromVec(BiffRec rec) |
boolean |
selected()
returns the selected sheet status
|
void |
setBOF(Bof b)
set the Bof record for this SheetImpl
|
void |
setCopyPriorCellFormats(boolean f) |
void |
setDimensions(Dimensions d) |
void |
setEOF(Eof f) |
void |
setFooter(BiffRec r) |
void |
setGrbitChr(byte b) |
void |
setGuts(Guts g) |
void |
setHeader(BiffRec hr) |
void |
setHidden(int gr)
set whether this sheet is hidden upon opening
|
void |
setLbPlyPos(long newpos)
set the pos of the Bof for this Sheet
|
void |
setLocalRecs() |
void |
setSelected(boolean b)
set whether this sheet is selected upon opening
|
void |
setSheetIDX(Index idx)
set the associated sheet index
|
void |
setSheetName(String newname)
change the displayed name of the sheet
Affects the following byte values:
10 cch 1 Length of sheet name
11 grbitChr 1 Compressed/Uncompressed Unicode
12 rgch var Sheet name
|
void |
setWindow2(Window2 w) |
void |
setWsBool(WsBool ws) |
String |
toString()
get the name of the sheet
|
void |
updateDimensions(int row,
int c)
update the INDEX record with the new max Row #
why we need so many redundant references to the Min/Max Row/Cols
is a question for the Redmond sages.
|
void |
updateMergedCells()
Shifts a row down
|
addContinue, copyFormat, getBooleanVal, getByteAt, getByteReader, getBytes, getBytesAt, getCellAddress, getColNumber, getContinueVect, getData, getDataType, getDblVal, getDefaultVal, getEncryptedByteReader, getFloatVal, getFont, getFormatPattern, getFormulaRec, getHyperlink, getInternalVal, getIntVal, getIxfe, getLength, getMergeRange, getOffset, getOpcode, getRecordIndex, getRow, getRowNumber, getSheet, getStreamer, getStringVal, getStringVal, getWorkBook, getXfRec, hasContinues, isReadOnly, isValueForCell, postStream, remove, removeContinues, setBooleanVal, setByteReader, setCol, setData, setDebugLevel, setDoubleVal, setEncryptedByteReader, setHyperlink, setIndex, setIntVal, setIsValueForCell, setIxfe, setLength, setMergeRange, setOffset, setOpcode, setRow, setRowCol, setRowNumber, setSheet, setStreamer, setStringVal, setWorkBook, setXFRecord, setXFRecord, toHexDumpstatic final byte VISIBLE
static final byte HIDDEN
static final byte VERY_HIDDEN
static final byte TYPE_SHEET_DIALOG
static final byte TYPE_XL4_MACRO
static final byte TYPE_CHART
static final byte TYPE_VBMODULE
List getSheetRecs()
Eof getMyEof()
Headerrec getHeader()
void setHeader(BiffRec hr)
Footerrec getFooter()
void setFooter(BiffRec r)
BiffRec getLastCell()
List getLocalRecs()
void preStream()
Bof getMyBof()
void setWindow2(Window2 w)
Window2 getWindow2()
void removeCell(String celladdr)
void removeCell(BiffRec c)
boolean isChartOnlySheet()
void removeRecFromVec(BiffRec rec)
void removeMulrk(Rk thisrk)
Colinfo getColInfo(int colin)
void removeAllRecords()
void setBOF(Bof b)
void setEOF(Eof f)
long getLbPlyPos()
void setLbPlyPos(long newpos)
Dimensions getDimensions()
void setDimensions(Dimensions d)
int getMinRow()
int getMaxRow()
int getMinCol()
int getMaxCol()
void updateDimensions(int row,
int c)
void setSheetIDX(Index idx)
int getSheetNum()
void updateMergedCells()
shiftamount - - number of rows shiftedboolean getHidden()
void setHidden(int gr)
boolean selected()
void setSelected(boolean b)
int getNumRows()
int getNumCells()
List getColNames()
int getNumCols()
Row getRowByNumber(int r)
List getRowNums()
Row[] getRows()
BiffRec addValue(Object obj, String address)
obj - the value of the new Celladdress - the address of the new Cellvoid addRecord(BiffRec rec, int[] rc)
void setCopyPriorCellFormats(boolean f)
void addCell(CellRec cell)
void addColinfo(Colinfo c)
Collection<Colinfo> getColinfos()
BiffRec getCell(int row, int col) throws CellNotFoundException
int - Row the integer row of the Cellint - Col the integer col of the CellCellNotFoundException - is thrown if there is no existing BiffRec at the specified address.BiffRec[] getCells()
void addMergedCellsRec(Mergedcells r)
List getMergedCellsRecs()
Mergedcells getMergedCellsRec()
String getSheetName()
void init()
byte getGrbitChr()
void setGrbitChr(byte b)
b - void setSheetName(String newname)
byte[] getSheetBytes()
throws IOException
IOExceptionvoid setLocalRecs()
short getSheetType()
String getSheetTypeString()
Guts getGuts()
void setGuts(Guts g)
void setWsBool(WsBool ws)
WsBool getWsBool()
Copyright © 2002–2019 Starter Inc.. All rights reserved.