diff options
author | PJ Fanning <fanningpj@apache.org> | 2022-07-10 10:12:20 +0000 |
---|---|---|
committer | PJ Fanning <fanningpj@apache.org> | 2022-07-10 10:12:20 +0000 |
commit | 6602122926db0bc9623811675b8fed2902b41ce4 (patch) | |
tree | 6175771a450778b681380f999e3ebffefb78ca48 /poi-ooxml | |
parent | d9383d6ba9b2f90b7d3fb7fc45ae22c2e7547368 (diff) | |
download | poi-6602122926db0bc9623811675b8fed2902b41ce4.tar.gz poi-6602122926db0bc9623811675b8fed2902b41ce4.zip |
[bug-66052] apply cell style fixes supplied by Axel Richter
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1902622 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'poi-ooxml')
-rw-r--r-- | poi-ooxml/src/main/java/org/apache/poi/xssf/usermodel/XSSFCellStyle.java | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/poi-ooxml/src/main/java/org/apache/poi/xssf/usermodel/XSSFCellStyle.java b/poi-ooxml/src/main/java/org/apache/poi/xssf/usermodel/XSSFCellStyle.java index c7d1f85f32..b221bf5491 100644 --- a/poi-ooxml/src/main/java/org/apache/poi/xssf/usermodel/XSSFCellStyle.java +++ b/poi-ooxml/src/main/java/org/apache/poi/xssf/usermodel/XSSFCellStyle.java @@ -830,6 +830,19 @@ public class XSSFCellStyle implements CellStyle, Duplicatable { } /** + * Set the background fill color represented as a {@link org.apache.poi.ss.usermodel.Color} value. + * <br> + * @param color the color to use + * @since POI 5.2.3 + */ + @Override + public void setFillBackgroundColor(org.apache.poi.ss.usermodel.Color color) { + if (color instanceof XSSFColor) { + setFillBackgroundColor((XSSFColor)color); + } + } + + /** * Set the background fill color represented as a indexed color value. * <p> * For example: @@ -882,6 +895,19 @@ public class XSSFCellStyle implements CellStyle, Duplicatable { addFill(ct); } + + /** + * Set the foreground fill color represented as a {@link org.apache.poi.ss.usermodel.Color} value. + * <br> + * @param color the color to use + * @since POI 5.2.3 + */ + @Override + public void setFillForegroundColor(org.apache.poi.ss.usermodel.Color color) { + if (color instanceof XSSFColor) { + setFillForegroundColor((XSSFColor)color); + } + } /** * Set the foreground fill color as a indexed color value |