1 2 17 18 19 package org.apache.poi.hssf.usermodel; 20 21 import junit.framework.TestCase; 22 23 import org.apache.poi.hssf.model.Sheet; 24 25 31 32 public class TestHSSFSheetSetOrder 33 extends TestCase 34 { 35 public TestHSSFSheetSetOrder(String s) 36 { 37 super(s); 38 } 39 40 43 44 public void testBackupRecord() 45 throws Exception 46 { 47 HSSFWorkbook wb = new HSSFWorkbook(); 48 49 for (int i=0; i < 10; i++) 50 { 51 HSSFSheet s = wb.createSheet("Sheet " +i); 52 Sheet sheet = s.getSheet(); 53 } 54 55 wb.getWorkbook().setSheetOrder("Sheet 6", 0); 56 wb.getWorkbook().setSheetOrder("Sheet 3", 7); 57 wb.getWorkbook().setSheetOrder("Sheet 1", 9); 58 59 60 } 61 62 63 } 64 65 66 | Popular Tags |