Finish region tweaks, and fix up upgrading doc
git-svn-id: https://svn.apache.org/repos/asf/poi/branches/ooxml@676213 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
2fe075305a
commit
2f1ba9f4b5
@ -21,7 +21,7 @@
|
|||||||
|
|
||||||
<document>
|
<document>
|
||||||
<header>
|
<header>
|
||||||
<title>Converting existing HSSF Usermodel code to SS Usermodel (for XSSF and HSSF)</title>
|
<title>Upgrading to POI 3.5, including converting existing HSSF Usermodel code to SS Usermodel (for XSSF and HSSF)</title>
|
||||||
<authors>
|
<authors>
|
||||||
<person email="nick@apache.org" name="Nick Burch" id="NB"/>
|
<person email="nick@apache.org" name="Nick Burch" id="NB"/>
|
||||||
</authors>
|
</authors>
|
||||||
@ -40,7 +40,7 @@
|
|||||||
<em>org.apache.poi.ss.usermodel.FormulaEvaluator.CellValue</em>
|
<em>org.apache.poi.ss.usermodel.FormulaEvaluator.CellValue</em>
|
||||||
</p>
|
</p>
|
||||||
</section>
|
</section>
|
||||||
<section><title>org.apache.poi.hssf.usermodel.HSSFRow.MissingCellPolicy</title></section>
|
<section><title>org.apache.poi.hssf.usermodel.HSSFRow.MissingCellPolicy</title>
|
||||||
<p>Annoyingly, java will not let you access a static inner class via
|
<p>Annoyingly, java will not let you access a static inner class via
|
||||||
a child of the parent one. So, all references to
|
a child of the parent one. So, all references to
|
||||||
<em>org.apache.poi.hssf.usermodel.HSSFRow.MissingCellPolicy</em>
|
<em>org.apache.poi.hssf.usermodel.HSSFRow.MissingCellPolicy</em>
|
||||||
@ -48,8 +48,8 @@
|
|||||||
<em>org.apache.poi.ss.usermodel.Row.MissingCellPolicy</em>
|
<em>org.apache.poi.ss.usermodel.Row.MissingCellPolicy</em>
|
||||||
</p>
|
</p>
|
||||||
</section>
|
</section>
|
||||||
</section>
|
</section>
|
||||||
<section><title>Converting existing HSSF Usermodel code to SS Usermodel (for XSSF and HSSF)</title>
|
<section><title>Converting existing HSSF Usermodel code to SS Usermodel (for XSSF and HSSF)</title>
|
||||||
|
|
||||||
<section><title>Why change?</title>
|
<section><title>Why change?</title>
|
||||||
<p>If you have existing HSSF usermodel code that works just
|
<p>If you have existing HSSF usermodel code that works just
|
||||||
@ -86,9 +86,9 @@
|
|||||||
otherwise remain the same, and it should all then work for
|
otherwise remain the same, and it should all then work for
|
||||||
both XSSF and HSSF.</p>
|
both XSSF and HSSF.</p>
|
||||||
</section>
|
</section>
|
||||||
</section>
|
</section>
|
||||||
<section><title>Worked Examples</title>
|
<section><title>Worked Examples</title>
|
||||||
<section><title>Old HSSF Code</title>
|
<section><title>Old HSSF Code</title>
|
||||||
<source><![CDATA[
|
<source><![CDATA[
|
||||||
// import org.apache.poi.hssf.usermodel.*;
|
// import org.apache.poi.hssf.usermodel.*;
|
||||||
|
|
||||||
|
@ -614,8 +614,7 @@ public class HSSFSheet implements org.apache.poi.ss.usermodel.Sheet
|
|||||||
* @param region (rowfrom/colfrom-rowto/colto) to merge
|
* @param region (rowfrom/colfrom-rowto/colto) to merge
|
||||||
* @return index of this region
|
* @return index of this region
|
||||||
*/
|
*/
|
||||||
|
public int addMergedRegion(org.apache.poi.ss.util.Region region)
|
||||||
public int addMergedRegion(Region region)
|
|
||||||
{
|
{
|
||||||
//return sheet.addMergedRegion((short) region.getRowFrom(),
|
//return sheet.addMergedRegion((short) region.getRowFrom(),
|
||||||
return sheet.addMergedRegion( region.getRowFrom(),
|
return sheet.addMergedRegion( region.getRowFrom(),
|
||||||
|
Loading…
Reference in New Issue
Block a user