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

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

Introduction

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

Prototype

@Override
public boolean isSelected() 

Source Link

Document

Returns a flag indicating whether this sheet is selected.

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  w  w  .  ja  v  a2 s. c om
    assertEquals(0, sheet.getTopRow());
    assertEquals(0, sheet.getLeftCol());
    assertFalse(sheet.isDisplayGridlines());
    assertFalse(sheet.isSelected());
}