|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.extentech.ExtenXLS.ConditionalFormatRule
public class ConditionalFormatRule
ConditionalFormatRule defines a single rule for manipulation of the ConditionalFormat cells in Excel Each ConditionalFormatRule contains one rule and corresponding format data.
ConditionalFormatHandle,
Handle| Field Summary | |
|---|---|
static byte |
CONDITION_BETWEEN
|
static byte |
CONDITION_EQUAL
|
static byte |
CONDITION_GREATER_OR_EQUAL
|
static byte |
CONDITION_GREATER_THAN
|
static byte |
CONDITION_LESS_OR_EQUAL
|
static byte |
CONDITION_LESS_THAN
|
static byte |
CONDITION_NOT_BETWEEN
|
static byte |
CONDITION_NOT_EQUAL
|
static byte |
ERROR_INFO
|
static byte |
ERROR_STOP
|
static byte |
ERROR_WARN
|
static String[] |
OPERATORS
|
static byte |
VALUE_ANY
|
static byte |
VALUE_DATE
|
static byte |
VALUE_DECIMAL
|
static byte |
VALUE_FORMULA
|
static byte |
VALUE_INTEGER
|
static byte |
VALUE_TEXT_LENGTH
|
static byte |
VALUE_TIME
|
static String[] |
VALUE_TYPE
|
static byte |
VALUE_USER_DEFINED_LIST
|
| Method Summary | |
|---|---|
boolean |
evaluate(CellHandle refcell)
evaluates the criteria for this Conditional Format Rule if the criteria involves a comparison i.e. |
Color[] |
getBorderColors()
retrieves the border colors for the current Conditional Format |
int |
getBorderLineColorBottom()
returns the bottom border line color for the current Conditional Format |
int |
getBorderLineColorLeft()
returns the left border line color for the current Conditional Format |
int |
getBorderLineColorRight()
returns the right border line color for the current Conditional Format |
int |
getBorderLineColorTop()
returns the top border line color for the current Conditional Format |
int |
getBorderLineStylesBottom()
returns the bottom border line style for the current Conditional Format |
int |
getBorderLineStylesLeft()
|
int |
getBorderLineStylesRight()
|
int |
getBorderLineStylesTop()
|
int[] |
getBorderSizes()
|
int[] |
getBorderStyles()
|
int |
getConditionalFormatType()
|
static byte |
getConditionNumber(String conditionType)
Get the byte representing the condition type string passed in. |
String |
getFirstCondition()
Get the first condition of the ConditionalFormat as a string representation |
com.extentech.formats.XLS.Font |
getFont()
|
int |
getFontColorIndex()
|
int |
getFontEscapement()
|
int |
getFontHeight()
|
int |
getFontOptsCancellation()
|
int |
getFontOptsPosture()
|
int |
getFontUnderlineStyle()
|
int |
getFontWeight()
|
int |
getForegroundColor()
|
String |
getFormatPattern()
|
com.extentech.formats.XLS.Formula |
getFormula1()
|
com.extentech.formats.XLS.Formula |
getFormula2()
|
String |
getOperator()
returns the operator for this Conditional Format Rule e.g. |
int |
getPatternFillColor()
|
int |
getPatternFillColorBack()
|
int |
getPatternFillStyle()
|
String |
getSecondCondition()
Get the second condition of the ConditionalFormat as a string representation |
String |
getType()
returns the type of this Conditional Format e.g. |
byte |
getTypeOperator()
Get the type operator of this ConditionalFormat as a byte. |
static byte |
getValueNumber(String valueType)
Get the byte representing the value type string passed in. |
void |
setBorderLineColorBottom(int borderLineColorBottom)
|
void |
setBorderLineColorLeft(int borderLineColorLeft)
|
void |
setBorderLineColorTop(int borderLineColorTop)
|
void |
setBorderLineStylesBottom(int borderLineStylesBottom)
|
void |
setBorderLineStylesLeft(int borderLineStylesLeft)
|
void |
setBorderLineStylesRight(int borderLineStylesRight)
|
void |
setBorderLineStylesTop(int borderLineStylesTop)
|
void |
setFirstCondition(Object firstCond)
Set the first condition of the ConditionalFormat This value must conform to the Value Type of this ConditionalFormat or unexpected results may occur. |
void |
setFontColorIndex(int fontColorIndex)
|
void |
setFontEscapement(int fontEscapementFlag)
|
void |
setFontHeight(int fontHeight)
|
void |
setFontOptsCancellation(int fontOptsCancellation)
|
void |
setFontOptsPosture(int fontOptsPosture)
|
void |
setFontUnderlineStyle(int fontUnderlineStyle)
|
void |
setFontWeight(int fontWeight)
|
void |
setPatternFillColor(int patternFillColor)
|
void |
setPatternFillColorBack(int patternFillColorBack)
|
void |
setPatternFillStyle(int patternFillStyle)
|
void |
setSecondCondition(Object secondCond)
Set the second condition of the ConditionalFormat utilizing a string. |
void |
setTypeOperator(byte typOperator)
set the type operator of this ConditionalFormat as a byte. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final byte VALUE_ANY
public static final byte VALUE_INTEGER
public static final byte VALUE_DECIMAL
public static final byte VALUE_USER_DEFINED_LIST
public static final byte VALUE_DATE
public static final byte VALUE_TIME
public static final byte VALUE_TEXT_LENGTH
public static final byte VALUE_FORMULA
public static byte ERROR_STOP
public static byte ERROR_WARN
public static byte ERROR_INFO
public static final byte CONDITION_BETWEEN
public static final byte CONDITION_NOT_BETWEEN
public static final byte CONDITION_EQUAL
public static final byte CONDITION_NOT_EQUAL
public static final byte CONDITION_GREATER_THAN
public static final byte CONDITION_LESS_THAN
public static final byte CONDITION_GREATER_OR_EQUAL
public static final byte CONDITION_LESS_OR_EQUAL
public static String[] OPERATORS
public static String[] VALUE_TYPE
| Method Detail |
|---|
public static byte getConditionNumber(String conditionType)
public static byte getValueNumber(String valueType)
public boolean evaluate(CellHandle refcell)
Ptg - refcell - the Ptg location to obtain cell value from
Cf.evaluate(com.extentech.formats.XLS.formulas.Ptg)public byte getTypeOperator()
public void setTypeOperator(byte typOperator)
public String getSecondCondition()
public void setSecondCondition(Object secondCond)
public Color[] getBorderColors()
Cf.getBorderColors()public int getBorderLineColorBottom()
Cf.getBorderLineColorBottom(),
constantspublic int getBorderLineColorLeft()
Cf.getBorderLineColorLeft(),
constantspublic int getBorderLineColorRight()
Cf.getBorderLineColorRight(),
constantspublic int getBorderLineColorTop()
Cf.getBorderLineColorTop(),
constantspublic int getBorderLineStylesBottom()
Cf.getBorderLineStylesBottom(),
line style constantspublic int getBorderLineStylesLeft()
Cf.getBorderLineStylesLeft()public int getBorderLineStylesRight()
Cf.getBorderLineStylesRight()public int getBorderLineStylesTop()
Cf.getBorderLineStylesTop()public int[] getBorderSizes()
Cf.getBorderSizes()public int[] getBorderStyles()
Cf.getBorderStyles()public com.extentech.formats.XLS.Font getFont()
Cf.getFont()public int getFontColorIndex()
Cf.getFontColorIndex()public int getFontEscapement()
Cf.getFontEscapement()public int getFontHeight()
Cf.getFontHeight()public int getFontOptsCancellation()
Cf.getFontOptsCancellation()public int getFontOptsPosture()
Cf.getFontOptsPosture()public int getFontUnderlineStyle()
Cf.getFontUnderlineStyle()public int getFontWeight()
Cf.getFontWeight()public int getForegroundColor()
Cf.getForegroundColor()public String getFormatPattern()
XLSRecord.getFormatPattern()public com.extentech.formats.XLS.Formula getFormula1()
Cf.getFormula1()public com.extentech.formats.XLS.Formula getFormula2()
Cf.getFormula2()public String getOperator()
public String getType()
public int getPatternFillColor()
Cf.getPatternFillColor()public int getPatternFillColorBack()
Cf.getPatternFillColorBack()public int getPatternFillStyle()
Cf.getPatternFillStyle()public void setBorderLineColorBottom(int borderLineColorBottom)
borderLineColorBottom - Cf.setBorderLineColorBottom(int)public void setBorderLineColorLeft(int borderLineColorLeft)
borderLineColorLeft - Cf.setBorderLineColorLeft(int)public void setBorderLineColorTop(int borderLineColorTop)
borderLineColorTop - Cf.setBorderLineColorTop(int)public void setBorderLineStylesBottom(int borderLineStylesBottom)
borderLineStylesBottom - Cf.setBorderLineStylesBottom(int)public void setBorderLineStylesLeft(int borderLineStylesLeft)
borderLineStylesLeft - Cf.setBorderLineStylesLeft(int)public void setBorderLineStylesRight(int borderLineStylesRight)
borderLineStylesRight - Cf.setBorderLineStylesRight(int)public void setBorderLineStylesTop(int borderLineStylesTop)
borderLineStylesTop - Cf.setBorderLineStylesTop(int)public void setFontColorIndex(int fontColorIndex)
fontColorIndex - Cf.setFontColorIndex(int)public void setFontEscapement(int fontEscapementFlag)
fontEscapementFlag - Cf.setFontEscapement(int)public void setFontHeight(int fontHeight)
fontHeight - Cf.setFontHeight(int)public void setFontOptsCancellation(int fontOptsCancellation)
fontOptsCancellation - com.extentech.formats.XLS.Cf#setFontOptsCancellation(int)public void setFontOptsPosture(int fontOptsPosture)
fontOptsPosture - Cf.setFontOptsPosture(int)public void setFontUnderlineStyle(int fontUnderlineStyle)
fontUnderlineStyle - Cf.setFontUnderlineStyle(int)public void setFontWeight(int fontWeight)
fontWeight - Cf.setFontWeight(int)public void setPatternFillColor(int patternFillColor)
patternFillColor - Cf.setPatternFillColor(int)public void setPatternFillColorBack(int patternFillColorBack)
patternFillColorBack - Cf.setPatternFillColorBack(int)public void setPatternFillStyle(int patternFillStyle)
patternFillStyle - Cf.setPatternFillStyle(int)public String getFirstCondition()
public void setFirstCondition(Object firstCond)
firstCond - = the first condition for the ConditionalFormatpublic int getConditionalFormatType()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||