|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.poi.hssf.record.RecordBase
org.apache.poi.hssf.record.Record
org.apache.poi.hssf.record.SharedValueRecordBase
public abstract class SharedValueRecordBase
Common base class for SharedFormulaRecord
, ArrayRecord
and
TableRecord
which are have similarities.
Constructor Summary | |
---|---|
protected |
SharedValueRecordBase()
|
protected |
SharedValueRecordBase(CellRangeAddress8Bit range)
|
|
SharedValueRecordBase(RecordInputStream in)
reads only the range (1 CellRangeAddress8Bit ) from the stream |
Method Summary | |
---|---|
protected void |
fillFields(RecordInputStream in)
called by the constructor, should set class level fields. |
protected abstract int |
getExtraDataSize()
|
int |
getFirstColumn()
|
int |
getFirstRow()
|
int |
getLastColumn()
|
int |
getLastRow()
|
CellRangeAddress8Bit |
getRange()
|
int |
getRecordSize()
gives the current serialized size of the record. |
boolean |
isFirstCell(int rowIx,
int colIx)
|
boolean |
isInRange(int rowIx,
int colIx)
|
boolean |
isInValueSection()
Mirroring formula records so it is registered in the ValueRecordsAggregate |
boolean |
isValue()
Register it in the ValueRecordsAggregate so it can go into the FormulaRecordAggregate |
int |
serialize(int offset,
byte[] data)
called by the class that is responsible for writing this sucker. |
protected abstract void |
serializeExtraData(int offset,
byte[] data)
|
protected void |
validateSid(short id)
called by constructor, should throw runtime exception in the event of a record passed with a differing ID. |
Methods inherited from class org.apache.poi.hssf.record.Record |
---|
clone, cloneViaReserialise, getSid, serialize, toString |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
protected SharedValueRecordBase(CellRangeAddress8Bit range)
protected SharedValueRecordBase()
public SharedValueRecordBase(RecordInputStream in)
CellRangeAddress8Bit
) from the stream
Method Detail |
---|
protected final void validateSid(short id)
Record
validateSid
in class Record
id
- alleged id for this recordpublic final CellRangeAddress8Bit getRange()
public final int getFirstRow()
public final int getLastRow()
public final int getFirstColumn()
public final int getLastColumn()
public final int getRecordSize()
Record
getRecordSize
in class Record
protected abstract int getExtraDataSize()
protected abstract void serializeExtraData(int offset, byte[] data)
public final int serialize(int offset, byte[] data)
RecordBase
serialize
in class RecordBase
offset
- to begin writing atdata
- byte array containing instance data
protected final void fillFields(RecordInputStream in)
Record
fillFields
in class Record
in
- the RecordInputstream to read the record frompublic final boolean isInRange(int rowIx, int colIx)
true
if (rowIx, colIx) is within the range (getRange()
)
of this shared value object.public final boolean isFirstCell(int rowIx, int colIx)
true
if (rowIx, colIx) describes the first cell in this shared value
object's range (getRange()
)public final boolean isInValueSection()
isInValueSection
in class Record
public final boolean isValue()
isValue
in class Record
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |