poi-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From one...@apache.org
Subject svn commit: r1823924 - /poi/site/src/documentation/content/xdocs/spreadsheet/quick-guide.xml
Date Mon, 12 Feb 2018 06:26:55 GMT
Author: onealj
Date: Mon Feb 12 06:26:55 2018
New Revision: 1823924

URL: http://svn.apache.org/viewvc?rev=1823924&view=rev
Log:
bug 61898, 59833: update Spreadsheet Quick Guide to use FillPatternType enums:
CellStyle#(SOLID_FOREGROUND|BIG_SPOTS) short constants -> FillPatternType enum

Modified:
    poi/site/src/documentation/content/xdocs/spreadsheet/quick-guide.xml

Modified: poi/site/src/documentation/content/xdocs/spreadsheet/quick-guide.xml
URL: http://svn.apache.org/viewvc/poi/site/src/documentation/content/xdocs/spreadsheet/quick-guide.xml?rev=1823924&r1=1823923&r2=1823924&view=diff
==============================================================================
--- poi/site/src/documentation/content/xdocs/spreadsheet/quick-guide.xml (original)
+++ poi/site/src/documentation/content/xdocs/spreadsheet/quick-guide.xml Mon Feb 12 06:26:55
2018
@@ -472,7 +472,7 @@
     // Aqua background
     CellStyle style = wb.createCellStyle();
     style.setFillBackgroundColor(IndexedColors.AQUA.getIndex());
-    style.setFillPattern(CellStyle.BIG_SPOTS);
+    style.setFillPattern(FillPatternType.BIG_SPOTS);
     Cell cell = row.createCell((short) 1);
     cell.setCellValue("X");
     cell.setCellStyle(style);
@@ -480,7 +480,7 @@
     // Orange "foreground", foreground being the fill foreground not the font color.
     style = wb.createCellStyle();
     style.setFillForegroundColor(IndexedColors.ORANGE.getIndex());
-    style.setFillPattern(CellStyle.SOLID_FOREGROUND);
+    style.setFillPattern(FillPatternType.SOLID_FOREGROUND);
     cell = row.createCell((short) 2);
     cell.setCellValue("X");
     cell.setCellStyle(style);
@@ -594,7 +594,7 @@ Examples:
 
     HSSFCellStyle style = wb.createCellStyle();
     style.setFillForegroundColor(HSSFColor.LIME.index);
-    style.setFillPattern(HSSFCellStyle.SOLID_FOREGROUND);
+    style.setFillPattern(FillPatternType.SOLID_FOREGROUND);
 
     HSSFFont font = wb.createFont();
     font.setColor(HSSFColor.RED.index);
@@ -642,7 +642,7 @@ Examples:
 
     XSSFCellStyle style1 = wb.createCellStyle();
     style1.setFillForegroundColor(new XSSFColor(new java.awt.Color(128, 0, 128)));
-    style1.setFillPattern(CellStyle.SOLID_FOREGROUND);
+    style1.setFillPattern(FillPatternType.SOLID_FOREGROUND);
                     </source>
                 </section>
                 <anchor id="ReadWriteWorkbook"/>



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@poi.apache.org
For additional commands, e-mail: commits-help@poi.apache.org


Mime
View raw message