Example usage for org.apache.poi.xssf.usermodel.extensions XSSFCellFill getCTFill

List of usage examples for org.apache.poi.xssf.usermodel.extensions XSSFCellFill getCTFill

Introduction

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

Prototype

@Internal
public CTFill getCTFill() 

Source Link

Document

Returns the underlying XML bean.

Usage

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

License:Open Source License

private CTFill getCTFill() {
    CTFill ct;//  w ww  .ja  v  a  2 s . c o  m
    CTXf xf = getXf();
    if (xf.getApplyFill()) {
        int fillIndex = (int) xf.getFillId();
        XSSFCellFill cf = workbook.getStylesSource().getFillAt(fillIndex);

        ct = (CTFill) cf.getCTFill().copy();
    } else {
        ct = CTFill.Factory.newInstance();
    }
    return ct;
}