org.apache.poi.hssf.record
Class CFHeader12Record

java.lang.Object
  extended by org.apache.poi.hssf.record.RecordBase
      extended by org.apache.poi.hssf.record.Record
          extended by org.apache.poi.hssf.record.StandardRecord
              extended by org.apache.poi.hssf.record.CFHeaderBase
                  extended by org.apache.poi.hssf.record.CFHeader12Record
All Implemented Interfaces:
java.lang.Cloneable, FutureRecord

public final class CFHeader12Record
extends CFHeaderBase
implements FutureRecord, java.lang.Cloneable

Conditional Formatting Header v12 record CFHEADER12 (0x0879), for conditional formattings introduced in Excel 2007 and newer.


Field Summary
static short sid
           
 
Constructor Summary
CFHeader12Record()
          Creates new CFHeaderRecord
CFHeader12Record(CellRangeAddress[] regions, int nRules)
           
CFHeader12Record(RecordInputStream in)
           
 
Method Summary
 CFHeader12Record clone()
           
 CellRangeAddress getAssociatedRange()
           
protected  int getDataSize()
           
 FtrHeader getFutureHeader()
           
 short getFutureRecordType()
           
protected  java.lang.String getRecordName()
           
 short getSid()
          return the non static version of the id for this record.
 void serialize(LittleEndianOutput out)
          Write the data content of this BIFF record.
 
Methods inherited from class org.apache.poi.hssf.record.CFHeaderBase
copyTo, createEmpty, getCellRanges, getEnclosingCellRange, getID, getNeedRecalculation, getNumberOfConditionalFormats, read, setCellRanges, setEnclosingCellRange, setID, setNeedRecalculation, setNumberOfConditionalFormats, toString
 
Methods inherited from class org.apache.poi.hssf.record.StandardRecord
getRecordSize, serialize
 
Methods inherited from class org.apache.poi.hssf.record.Record
cloneViaReserialise, serialize
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

sid

public static final short sid
See Also:
Constant Field Values
Constructor Detail

CFHeader12Record

public CFHeader12Record()
Creates new CFHeaderRecord


CFHeader12Record

public CFHeader12Record(CellRangeAddress[] regions,
                        int nRules)

CFHeader12Record

public CFHeader12Record(RecordInputStream in)
Method Detail

getRecordName

protected java.lang.String getRecordName()
Specified by:
getRecordName in class CFHeaderBase

getDataSize

protected int getDataSize()
Overrides:
getDataSize in class CFHeaderBase

serialize

public void serialize(LittleEndianOutput out)
Description copied from class: StandardRecord
Write 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).

Overrides:
serialize in class CFHeaderBase
Parameters:
out - the output object

getSid

public short getSid()
Description copied from class: Record
return the non static version of the id for this record.

Specified by:
getSid in class Record
Returns:
he id for this record

getFutureRecordType

public short getFutureRecordType()
Specified by:
getFutureRecordType in interface FutureRecord

getFutureHeader

public FtrHeader getFutureHeader()
Specified by:
getFutureHeader in interface FutureRecord

getAssociatedRange

public CellRangeAddress getAssociatedRange()
Specified by:
getAssociatedRange in interface FutureRecord

clone

public CFHeader12Record clone()
Specified by:
clone in class CFHeaderBase