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

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

Introduction

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

Prototype

@Override
public boolean isDisplayGridlines() 

Source Link

Document

Gets the flag indicating whether this sheet displays the lines between rows and columns to make editing and reading easier.

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());
    }/*from   w  w w  .j a  va2  s .  c om*/
    assertEquals(0, sheet.getTopRow());
    assertEquals(0, sheet.getLeftCol());
    assertFalse(sheet.isDisplayGridlines());
    assertFalse(sheet.isSelected());
}