|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
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.CFRuleRecord
public final class CFRuleRecord
Conditional Formatting Rule Record (0x01B1).
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(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) |
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 |
---|
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(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
getSid
in class 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
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 |