slaubach 2003/10/23 10:16:03
Modified: src/documentation/content/xdocs/hssf Tag: REL_2_BRANCH
quick-guide.xml
src/testcases/org/apache/poi/hssf/usermodel Tag:
REL_2_BRANCH TestSheetShiftRows.java
Log:
Update to Quick Guide to better represent what the Fit To example is for.
Revision Changes Path
No revision
No revision
1.3.2.1 +5 -5 jakarta-poi/src/documentation/content/xdocs/hssf/quick-guide.xml
Index: quick-guide.xml
===================================================================
RCS file:
/home/cvs/jakarta-poi/src/documentation/content/xdocs/hssf/quick-guide.xml,v
retrieving revision 1.3
retrieving revision 1.3.2.1
diff -u -r1.3 -r1.3.2.1
--- quick-guide.xml 1 May 2003 23:38:39 -0000 1.3
+++ quick-guide.xml 23 Oct 2003 17:16:02 -0000 1.3.2.1
@@ -31,7 +31,7 @@
<li><link href="#ReadWriteWorkbook">Reading and
writing</link></li>
<li><link href="#NewLinesInCells">Use newlines in
cells.</link></li>
<li><link href="#DataFormats">Create user defined data
formats.</link></li>
- <li><link href="#PrintArea">Fit sheet to one page</link></li>
+ <li><link href="#FitTo">Fit Sheet to One Page</link></li>
<li><link href="#PrintArea2">Set print area for a
sheet.</link></li>
<li><link href="#FooterPageNumbers">Set page numbers on the
footer of a sheet.</link></li>
<li><link href="#ShiftRows">Shift rows.</link></li>
@@ -420,14 +420,14 @@
fileOut.close();
</source>
</section>
- <anchor id="PrintArea"/>
- <section><title>Set Print Area to One Page</title>
+ <anchor id="FitTo"/>
+ <section><title>Fit Sheet to One Page</title>
<source>
HSSFWorkbook wb = new HSSFWorkbook();
HSSFSheet sheet = wb.createSheet("format sheet");
- HSSFPrintSetup ps = sheet.getPrintSetup()
+ HSSFPrintSetup ps = sheet.getPrintSetup();
- sheet.setAutobreaks(true)
+ sheet.setAutobreaks(true);
ps.setFitHeight((short)1);
ps.setFitWidth((short)1);
No revision
No revision
1.2.2.1 +13 -0
jakarta-poi/src/testcases/org/apache/poi/hssf/usermodel/TestSheetShiftRows.java
Index: TestSheetShiftRows.java
===================================================================
RCS file:
/home/cvs/jakarta-poi/src/testcases/org/apache/poi/hssf/usermodel/TestSheetShiftRows.java,v
retrieving revision 1.2
retrieving revision 1.2.2.1
diff -u -r1.2 -r1.2.2.1
--- TestSheetShiftRows.java 30 Apr 2003 04:38:58 -0000 1.2
+++ TestSheetShiftRows.java 23 Oct 2003 17:16:03 -0000 1.2.2.1
@@ -175,5 +175,18 @@
s.createRow(3).createCell((short)0).setCellValue("TEST2");
s.shiftRows(0,4,1);
}
+
+ /**
+ * Tests when shifting the first row.
+ *
+ * @author Toshiaki Kamoshida (kamoshida.toshiaki at future dot co dot jp)
+ */
+ public void testShiftRow0(){
+ HSSFWorkbook b = new HSSFWorkbook();
+ HSSFSheet s = b.createSheet();
+ s.createRow(0).createCell((short)0).setCellValue("TEST1");
+ s.createRow(3).createCell((short)0).setCellValue("TEST2");
+ s.shiftRows(0,4,1);
+ }
}
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]