aboutsummaryrefslogtreecommitdiffstats
path: root/poi-ooxml
diff options
context:
space:
mode:
authorPJ Fanning <fanningpj@apache.org>2022-07-10 10:12:20 +0000
committerPJ Fanning <fanningpj@apache.org>2022-07-10 10:12:20 +0000
commit6602122926db0bc9623811675b8fed2902b41ce4 (patch)
tree6175771a450778b681380f999e3ebffefb78ca48 /poi-ooxml
parentd9383d6ba9b2f90b7d3fb7fc45ae22c2e7547368 (diff)
downloadpoi-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.java26
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