You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@poi.apache.org by ni...@apache.org on 2017/06/22 20:38:44 UTC

svn commit: r1799619 - /poi/site/src/documentation/content/xdocs/spreadsheet/quick-guide.xml

Author: nick
Date: Thu Jun 22 20:38:44 2017
New Revision: 1799619

URL: http://svn.apache.org/viewvc?rev=1799619&view=rev
Log:
#61208 PropertyTemplate.Extent is now BorderExtent, thanks for Alexander Riccio for spotting/reporting

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=1799619&r1=1799618&r2=1799619&view=diff
==============================================================================
--- poi/site/src/documentation/content/xdocs/spreadsheet/quick-guide.xml (original)
+++ poi/site/src/documentation/content/xdocs/spreadsheet/quick-guide.xml Thu Jun 22 20:38:44 2017
@@ -2252,27 +2252,27 @@ the data to populate another drop down l
   PropertyTemplate pt = new PropertyTemplate();
   // #1) these borders will all be medium in default color
   pt.drawBorders(new CellRangeAddress(1, 3, 1, 3),
-          BorderStyle.MEDIUM, PropertyTemplate.Extent.ALL);
+          BorderStyle.MEDIUM, BorderExtent.ALL);
   // #2) these cells will have medium outside borders and thin inside borders
   pt.drawBorders(new CellRangeAddress(5, 7, 1, 3),
-          BorderStyle.MEDIUM, PropertyTemplate.Extent.OUTSIDE);
+          BorderStyle.MEDIUM, BorderExtent.OUTSIDE);
   pt.drawBorders(new CellRangeAddress(5, 7, 1, 3), BorderStyle.THIN,
-          PropertyTemplate.Extent.INSIDE);
+          BorderExtent.INSIDE);
   // #3) these cells will all be medium weight with different colors for the
   //     outside, inside horizontal, and inside vertical borders. The center
   //     cell will have no borders.
   pt.drawBorders(new CellRangeAddress(9, 11, 1, 3),
           BorderStyle.MEDIUM, IndexedColors.RED.getIndex(),
-          PropertyTemplate.Extent.OUTSIDE);
+          BorderExtent.OUTSIDE);
   pt.drawBorders(new CellRangeAddress(9, 11, 1, 3),
           BorderStyle.MEDIUM, IndexedColors.BLUE.getIndex(),
-          PropertyTemplate.Extent.INSIDE_VERTICAL);
+          BorderExtent.INSIDE_VERTICAL);
   pt.drawBorders(new CellRangeAddress(9, 11, 1, 3),
           BorderStyle.MEDIUM, IndexedColors.GREEN.getIndex(),
-          PropertyTemplate.Extent.INSIDE_HORIZONTAL);
+          BorderExtent.INSIDE_HORIZONTAL);
   pt.drawBorders(new CellRangeAddress(10, 10, 2, 2),
           BorderStyle.NONE, 
-          PropertyTemplate.Extent.ALL);
+          BorderExtent.ALL);
 
   // apply borders to sheet
   Workbook wb = new XSSFWorkbook();
@@ -2285,7 +2285,7 @@ the data to populate another drop down l
       are changed only if they are replaced by something else, or removed only if they are replaced by 
       BorderStyle.NONE. To remove a color from a border, use IndexedColor.AUTOMATIC.getIndex().
       </p>
-      <p>Additionally, to remove a border or color from the PropertyTemplate object, use Extent.NONE.</p>
+      <p>Additionally, to remove a border or color from the PropertyTemplate object, use BorderExtent.NONE.</p>
       <p>
       This does not work with diagonal borders yet.
       </p>



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