|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.poi.hssf.record.Record
org.apache.poi.hssf.record.aggregates.CFRecordsAggregate
public final class CFRecordsAggregate
CFRecordsAggregate - aggregates Conditional Formatting records CFHeaderRecord and number of up to three CFRuleRecord records together to simplify access to them.
Field Summary | |
---|---|
static short |
sid
|
Constructor Summary | |
---|---|
CFRecordsAggregate(Region[] regions,
CFRuleRecord[] rules)
|
Method Summary | |
---|---|
void |
addRule(CFRuleRecord r)
|
CFRecordsAggregate |
cloneCFAggregate()
Create a deep clone of the record |
static CFRecordsAggregate |
createCFAggregate(java.util.List recs,
int pOffset)
Create CFRecordsAggregate from a list of CF Records |
protected void |
fillFields(RecordInputStream in)
called by the constructor, should set class level fields. |
CFHeaderRecord |
getHeader()
|
int |
getNumberOfRules()
|
int |
getRecordSize()
gives the current serialized size of the record. |
CFRuleRecord |
getRule(int idx)
|
short |
getSid()
return the non static version of the id for this record. |
int |
serialize(int offset,
byte[] data)
called by the class that is responsible for writing this sucker. |
void |
setRule(int idx,
CFRuleRecord r)
|
java.lang.String |
toString()
String representation of CFRecordsAggregate |
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, isInValueSection, isValue, serialize |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final short sid
Constructor Detail |
---|
public CFRecordsAggregate(Region[] regions, CFRuleRecord[] rules)
Method Detail |
---|
public static CFRecordsAggregate createCFAggregate(java.util.List recs, int pOffset)
recs
- - list of Record
objectsoffset
- - position of CFHeaderRecord
object in the list of Record objects
public CFRecordsAggregate cloneCFAggregate()
protected void fillFields(RecordInputStream in)
Record
fillFields
in class Record
in
- the RecordInputstream to read the record frompublic short getSid()
Record
getSid
in class Record
public int serialize(int offset, byte[] data)
serialize
in class Record
offset
- to begin writing atdata
- byte array containing instance data
protected void validateSid(short id)
Record
validateSid
in class Record
id
- alleged id for this recordpublic CFHeaderRecord getHeader()
null
.public CFRuleRecord getRule(int idx)
public void setRule(int idx, CFRuleRecord r)
public void addRule(CFRuleRecord r)
public int getNumberOfRules()
public int getRecordSize()
Record
getRecordSize
in class Record
public java.lang.String toString()
toString
in class Record
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |