public final class CFRuleRecord extends StandardRecord
Modifier and Type | Class and Description |
---|---|
static class |
CFRuleRecord.ComparisonOperator |
Modifier and Type | Field and Description |
---|---|
static byte |
CONDITION_TYPE_CELL_VALUE_IS |
static byte |
CONDITION_TYPE_FORMULA |
static short |
sid |
Constructor and Description |
---|
CFRuleRecord(RecordInputStream in) |
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
clone() |
boolean |
containsAlignFormattingBlock() |
boolean |
containsBorderFormattingBlock() |
boolean |
containsFontFormattingBlock() |
boolean |
containsPatternFormattingBlock() |
boolean |
containsProtectionFormattingBlock() |
static CFRuleRecord |
create(HSSFSheet sheet,
byte comparisonOperation,
java.lang.String formulaText1,
java.lang.String formulaText2)
Creates a new comparison operation rule
|
static CFRuleRecord |
create(HSSFSheet sheet,
java.lang.String formulaText)
Creates a new comparison operation rule
|
BorderFormatting |
getBorderFormatting() |
byte |
getComparisonOperation() |
byte |
getConditionType() |
protected int |
getDataSize() |
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() |
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() |
void |
serialize(LittleEndianOutput out)
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 |
setParsedExpression1(Ptg[] ptgs) |
void |
setParsedExpression2(Ptg[] ptgs) |
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)
|
getRecordSize, serialize
cloneViaReserialise, serialize
public static final short sid
public static final byte CONDITION_TYPE_CELL_VALUE_IS
public static final byte CONDITION_TYPE_FORMULA
public CFRuleRecord(RecordInputStream in)
public static CFRuleRecord create(HSSFSheet sheet, java.lang.String formulaText)
public static CFRuleRecord create(HSSFSheet sheet, byte comparisonOperation, java.lang.String formulaText1, java.lang.String formulaText2)
public 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 void setParsedExpression1(Ptg[] ptgs)
public Ptg[] getParsedExpression2()
Ptg
s, possibly null
public void setParsedExpression2(Ptg[] ptgs)
public short getSid()
Record
public void serialize(LittleEndianOutput out)
serialize
in class StandardRecord
out
- the stream to write toprotected int getDataSize()
getDataSize
in class StandardRecord
public java.lang.String toString()
Record
Copyright © 2005-2010 Potix Corporation. All Rights Reserved.