Package org.apache.poi.hssf.record

Examples of org.apache.poi.hssf.record.CFRuleRecord$ComparisonOperator


  public void testCFRecordsAggregate()
  {
    HSSFWorkbook workbook = new HSSFWorkbook();
    List recs = new ArrayList();
    CFHeaderRecord header = new CFHeaderRecord();
    CFRuleRecord rule1 = CFRuleRecord.create(workbook, "7");
    CFRuleRecord rule2 = CFRuleRecord.create(workbook, ComparisonOperator.BETWEEN, "2", "5");
    CFRuleRecord rule3 = CFRuleRecord.create(workbook, ComparisonOperator.GE, "100", null);
    header.setNumberOfConditionalFormats(3);
    CellRangeAddress[] cellRanges = {
        new CellRangeAddress(0,1,0,0),
        new CellRangeAddress(0,1,2,2),
    };
View Full Code Here


      byte comparisonOperation,
      String formula1,
      String formula2) {

    HSSFWorkbook wb = _workbook;
    CFRuleRecord rr = CFRuleRecord.create(wb, comparisonOperation, formula1, formula2);
    return new HSSFConditionalFormattingRule(wb, rr);
  }
View Full Code Here

   * TODO - formulas containing cell references are currently not parsed properly
   * @param formula - formula for the valued, compared with the cell
   */
  public HSSFConditionalFormattingRule createConditionalFormattingRule(String formula) {
    HSSFWorkbook wb = _workbook;
    CFRuleRecord rr = CFRuleRecord.create(wb, formula);
    return new HSSFConditionalFormattingRule(wb, rr);
  }
View Full Code Here

TOP

Related Classes of org.apache.poi.hssf.record.CFRuleRecord$ComparisonOperator

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.