aboutsummaryrefslogtreecommitdiffstats
path: root/src/ooxml/interfaces-jdk15
diff options
context:
space:
mode:
Diffstat (limited to 'src/ooxml/interfaces-jdk15')
-rw-r--r--src/ooxml/interfaces-jdk15/org/apache/poi/ss/usermodel/CellStyle.java19
1 files changed, 18 insertions, 1 deletions
diff --git a/src/ooxml/interfaces-jdk15/org/apache/poi/ss/usermodel/CellStyle.java b/src/ooxml/interfaces-jdk15/org/apache/poi/ss/usermodel/CellStyle.java
index 8a3a59822d..9149c103b0 100644
--- a/src/ooxml/interfaces-jdk15/org/apache/poi/ss/usermodel/CellStyle.java
+++ b/src/ooxml/interfaces-jdk15/org/apache/poi/ss/usermodel/CellStyle.java
@@ -705,4 +705,21 @@ public interface CellStyle {
*/
short getFillForegroundColor();
-} \ No newline at end of file
+ /**
+ * Clones all the style information from another
+ * CellStyle, onto this one. This
+ * CellStyle will then have all the same
+ * properties as the source, but the two may
+ * be edited independently.
+ * Any stylings on this CellStyle will be lost!
+ *
+ * The source CellStyle could be from another
+ * Workbook if you like. This allows you to
+ * copy styles from one Workbook to another.
+ *
+ * However, both of the CellStyles will need
+ * to be of the same type (HSSFCellStyle or
+ * XSSFCellStyle)
+ */
+ public void cloneStyleFrom(CellStyle source);
+}