Example usage for org.apache.poi.hssf.record ExtendedFormatRecord isIndentNotParentBorder

List of usage examples for org.apache.poi.hssf.record ExtendedFormatRecord isIndentNotParentBorder

Introduction

In this page you can find the example usage for org.apache.poi.hssf.record ExtendedFormatRecord isIndentNotParentBorder.

Prototype


public boolean isIndentNotParentBorder() 

Source Link

Document

get whether or not to use the border in this XF instead of the parent XF.

Usage

From source file:fr.amapj.service.engine.generator.excel.samples.DiagonalBorder.java

License:Open Source License

private void displayCell(Cell cell) throws Exception {

    CellStyle style = cell.getCellStyle();

    Field f = HSSFCellStyle.class.getDeclaredField("_format");
    f.setAccessible(true);/*from  w  w w  .j  a va  2s  .  c om*/

    ExtendedFormatRecord efr = (ExtendedFormatRecord) f.get(style);

    System.out.println("getAdtlDiag=" + efr.getAdtlDiag());
    System.out.println("getDiag=" + efr.getDiag());
    System.out.println("getAdtlDiagLineStyle=" + efr.getAdtlDiagLineStyle());
    System.out.println("isIndentNotParentBorder=" + efr.isIndentNotParentBorder());
}