Package org.apache.poi.hssf.record
Class CFHeaderBase
java.lang.Object
org.apache.poi.hssf.record.RecordBase
org.apache.poi.hssf.record.Record
org.apache.poi.hssf.record.StandardRecord
org.apache.poi.hssf.record.CFHeaderBase
- All Implemented Interfaces:
Cloneable
- Direct Known Subclasses:
CFHeader12Record,CFHeaderRecord
Parent of Conditional Formatting Header records,
CFHeaderRecord and CFHeader12Record.-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedCreates new CFHeaderBaseprotectedCFHeaderBase(CellRangeAddress[] regions, int nRules) -
Method Summary
Modifier and TypeMethodDescriptionabstract CFHeaderBaseclone()protected voidcopyTo(CFHeaderBase result) protected voidprotected intintgetID()booleanintprotected abstract Stringprotected voidvoidWrite the data content of this BIFF record.voidsetCellRanges(CellRangeAddress[] cellRanges) Set cell ranges list to a single cell range and modify the enclosing cell range accordingly.voidvoidsetID(int id) voidsetNeedRecalculation(boolean b) voidtoString()get a string representation of the record (for biffview/debugging)Methods inherited from class org.apache.poi.hssf.record.StandardRecord
getRecordSize, serializeMethods inherited from class org.apache.poi.hssf.record.Record
cloneViaReserialise, getSid, serialize
-
Constructor Details
-
CFHeaderBase
protected CFHeaderBase()Creates new CFHeaderBase -
CFHeaderBase
-
-
Method Details
-
createEmpty
protected void createEmpty() -
read
-
getNumberOfConditionalFormats
public int getNumberOfConditionalFormats() -
setNumberOfConditionalFormats
public void setNumberOfConditionalFormats(int n) -
getNeedRecalculation
public boolean getNeedRecalculation() -
setNeedRecalculation
public void setNeedRecalculation(boolean b) -
getID
public int getID() -
setID
public void setID(int id) -
getEnclosingCellRange
-
setEnclosingCellRange
-
setCellRanges
Set cell ranges list to a single cell range and modify the enclosing cell range accordingly.- Parameters:
cellRanges- - list of CellRange objects
-
getCellRanges
-
getRecordName
-
toString
Description copied from class:Recordget a string representation of the record (for biffview/debugging) -
getDataSize
protected int getDataSize()- Specified by:
getDataSizein classStandardRecord
-
serialize
Description copied from class:StandardRecordWrite the data content of this BIFF record. The 'ushort sid' and 'ushort size' header fields have already been written by the superclass.The number of bytes written must equal the record size reported by
RecordBase.getRecordSize()} minus four ( record header consisting of a 'ushort sid' and 'ushort reclength' has already been written by their superclass).- Specified by:
serializein classStandardRecord- Parameters:
out- the output object
-
copyTo
-
clone
-