FileDocCategorySizeDatePackage
TestHSSFSheetSetOrder.javaAPI DocApache Poi 3.0.11762Mon Jan 01 12:39:46 GMT 2007org.apache.poi.hssf.usermodel

TestHSSFSheetSetOrder

public class TestHSSFSheetSetOrder extends TestCase
Tests HSSFWorkbook method setSheetOrder()
author
Ruel Loehr (loehr1 at us.ibm.com)

Fields Summary
Constructors Summary
public TestHSSFSheetSetOrder(String s)

       super(s);
   
Methods Summary
public voidtestBackupRecord()
Test the sheet set order method

       HSSFWorkbook wb = new HSSFWorkbook();
       
       for (int i=0; i < 10; i++)
       {
			HSSFSheet s = wb.createSheet("Sheet " +i);
			Sheet sheet = s.getSheet();
       }

     wb.getWorkbook().setSheetOrder("Sheet 6", 0);
	  wb.getWorkbook().setSheetOrder("Sheet 3", 7);
	  wb.getWorkbook().setSheetOrder("Sheet 1", 9);