Example usage for org.apache.poi.xssf.usermodel XSSFSheet getTopRow

List of usage examples for org.apache.poi.xssf.usermodel XSSFSheet getTopRow

Introduction

In this page you can find the example usage for org.apache.poi.xssf.usermodel XSSFSheet getTopRow.

Prototype

@Override
public short getTopRow() 

Source Link

Document

The top row in the visible view when the sheet is first viewed after opening it in a viewer

Usage

From source file:org.keyboardplaying.xtt.xlsx.XlsxNormalizerTest.java

License:Apache License

private void controlSheet(XSSFWorkbook workbook, String range, int sheetIndex) {
    XSSFSheet sheet = workbook.getSheetAt(sheetIndex);
    if (sheet.getPaneInformation() == null) {
        // Doesn't work with panes
        assertEquals(new CellAddress(range), sheet.getActiveCell());
    }/*w ww  .ja v  a2  s.c  o  m*/
    assertEquals(0, sheet.getTopRow());
    assertEquals(0, sheet.getLeftCol());
    assertFalse(sheet.isDisplayGridlines());
    assertFalse(sheet.isSelected());
}