|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.poi.hssf.record.Record org.apache.poi.hssf.record.CFRuleRecord
public final class CFRuleRecord
Conditional Formatting Rule Record.
Nested Class Summary | |
---|---|
static class |
CFRuleRecord.ComparisonOperator
|
Field Summary | |
---|---|
static byte |
CONDITION_TYPE_CELL_VALUE_IS
|
static byte |
CONDITION_TYPE_FORMULA
|
static short |
sid
|
Constructor Summary | |
---|---|
CFRuleRecord(RecordInputStream in)
|
Method Summary | |
---|---|
java.lang.Object |
clone()
|
boolean |
containsAlignFormattingBlock()
|
boolean |
containsBorderFormattingBlock()
|
boolean |
containsFontFormattingBlock()
|
boolean |
containsPatternFormattingBlock()
|
boolean |
containsProtectionFormattingBlock()
|
static CFRuleRecord |
create(HSSFWorkbook workbook,
byte comparisonOperation,
java.lang.String formulaText1,
java.lang.String formulaText2)
Creates a new comparison operation rule |
static CFRuleRecord |
create(HSSFWorkbook workbook,
java.lang.String formulaText)
Creates a new comparison operation rule |
protected void |
fillFields(RecordInputStream in)
called by the constructor, should set class level fields. |
BorderFormatting |
getBorderFormatting()
|
byte |
getComparisonOperation()
|
byte |
getConditionType()
|
FontFormatting |
getFontFormatting()
|
int |
getOptions()
get the option flags |
Ptg[] |
getParsedExpression1()
get the stack of the 1st expression as a list |
Ptg[] |
getParsedExpression2()
get the stack of the 2nd expression as a list |
PatternFormatting |
getPatternFormatting()
|
int |
getRecordSize()
gives the current serialized size of the record. |
short |
getSid()
return the non static version of the id for this record. |
boolean |
isBottomBorderModified()
|
boolean |
isBottomLeftTopRightBorderModified()
|
boolean |
isLeftBorderModified()
|
boolean |
isPatternBackgroundColorModified()
|
boolean |
isPatternColorModified()
|
boolean |
isPatternStyleModified()
|
boolean |
isRightBorderModified()
|
boolean |
isTopBorderModified()
|
boolean |
isTopLeftBottomRightBorderModified()
|
int |
serialize(int pOffset,
byte[] data)
called by the class that is responsible for writing this sucker. |
void |
setAlignFormattingUnchanged()
|
void |
setBorderFormatting(BorderFormatting borderFormatting)
|
void |
setBottomBorderModified(boolean modified)
|
void |
setBottomLeftTopRightBorderModified(boolean modified)
|
void |
setComparisonOperation(byte operation)
|
void |
setFontFormatting(FontFormatting fontFormatting)
|
void |
setLeftBorderModified(boolean modified)
|
void |
setPatternBackgroundColorModified(boolean modified)
|
void |
setPatternColorModified(boolean modified)
|
void |
setPatternFormatting(PatternFormatting patternFormatting)
|
void |
setPatternStyleModified(boolean modified)
|
void |
setProtectionFormattingUnchanged()
|
void |
setRightBorderModified(boolean modified)
|
void |
setTopBorderModified(boolean modified)
|
void |
setTopLeftBottomRightBorderModified(boolean modified)
|
java.lang.String |
toString()
get a string representation of the record (for biffview/debugging) |
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 |
---|
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
public static final byte CONDITION_TYPE_CELL_VALUE_IS
public static final byte CONDITION_TYPE_FORMULA
Constructor Detail |
---|
public CFRuleRecord(RecordInputStream in)
Method Detail |
---|
public static CFRuleRecord create(HSSFWorkbook workbook, java.lang.String formulaText)
public static CFRuleRecord create(HSSFWorkbook workbook, byte comparisonOperation, java.lang.String formulaText1, java.lang.String formulaText2)
protected void fillFields(RecordInputStream in)
Record
fillFields
in class Record
in
- the RecordInputstream to read the record frompublic byte getConditionType()
public boolean containsFontFormattingBlock()
public void setFontFormatting(FontFormatting fontFormatting)
public FontFormatting getFontFormatting()
public boolean containsAlignFormattingBlock()
public void setAlignFormattingUnchanged()
public boolean containsBorderFormattingBlock()
public void setBorderFormatting(BorderFormatting borderFormatting)
public BorderFormatting getBorderFormatting()
public boolean containsPatternFormattingBlock()
public void setPatternFormatting(PatternFormatting patternFormatting)
public PatternFormatting getPatternFormatting()
public boolean containsProtectionFormattingBlock()
public void setProtectionFormattingUnchanged()
public void setComparisonOperation(byte operation)
public byte getComparisonOperation()
public int getOptions()
public boolean isLeftBorderModified()
public void setLeftBorderModified(boolean modified)
public boolean isRightBorderModified()
public void setRightBorderModified(boolean modified)
public boolean isTopBorderModified()
public void setTopBorderModified(boolean modified)
public boolean isBottomBorderModified()
public void setBottomBorderModified(boolean modified)
public boolean isTopLeftBottomRightBorderModified()
public void setTopLeftBottomRightBorderModified(boolean modified)
public boolean isBottomLeftTopRightBorderModified()
public void setBottomLeftTopRightBorderModified(boolean modified)
public boolean isPatternStyleModified()
public void setPatternStyleModified(boolean modified)
public boolean isPatternColorModified()
public void setPatternColorModified(boolean modified)
public boolean isPatternBackgroundColorModified()
public void setPatternBackgroundColorModified(boolean modified)
public Ptg[] getParsedExpression1()
public Ptg[] getParsedExpression2()
protected void validateSid(short id)
validateSid
in class Record
id
- alleged id for this recordpublic short getSid()
Record
getSid
in class Record
public int serialize(int pOffset, byte[] data)
serialize
in class Record
offset
- to begin writing atdata
- byte array containing instance data
public int getRecordSize()
Record
getRecordSize
in class Record
public java.lang.String toString()
Record
toString
in class Record
public java.lang.Object clone()
clone
in class Record
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |