All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.jxls.transform.poi.PoiConditionalFormatting Maven / Gradle / Ivy

There is a newer version: 3.0.0
Show newest version
package org.jxls.transform.poi;

import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;

import org.apache.poi.ss.usermodel.ConditionalFormatting;
import org.apache.poi.ss.usermodel.ConditionalFormattingRule;
import org.apache.poi.ss.util.CellRangeAddress;

public class PoiConditionalFormatting {
    private final List rules = new ArrayList<>();
    private final List ranges;

    PoiConditionalFormatting(ConditionalFormatting conditionalFormatting) {
        for(int i = 0; i < conditionalFormatting.getNumberOfRules(); i++){
            rules.add(conditionalFormatting.getRule(i));
        }
        ranges = Arrays.asList(conditionalFormatting.getFormattingRanges());
    }

    public List getRules() {
        return rules;
    }

    public List getRanges() {
        return ranges;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy