Example usage for org.apache.poi.xssf.usermodel.extensions XSSFCellBorder getCTBorder

List of usage examples for org.apache.poi.xssf.usermodel.extensions XSSFCellBorder getCTBorder

Introduction

In this page you can find the example usage for org.apache.poi.xssf.usermodel.extensions XSSFCellBorder getCTBorder.

Prototype

@Internal
public CTBorder getCTBorder() 

Source Link

Document

Returns the underlying XML bean.

Usage

From source file:com.miraisolutions.xlconnect.XCellStyle.java

License:Open Source License

private CTBorder getCTBorder() {
    CTBorder ct;//  w ww  .  ja v a  2s .  co m
    CTXf xf = getXf();
    if (xf.getApplyBorder()) {
        int idx = (int) xf.getBorderId();
        XSSFCellBorder cf = workbook.getStylesSource().getBorderAt(idx);
        ct = (CTBorder) cf.getCTBorder().copy();
    } else {
        ct = CTBorder.Factory.newInstance();
    }
    return ct;
}