Example usage for org.apache.poi.hssf.usermodel HSSFCellStyle setUserStyleName

List of usage examples for org.apache.poi.hssf.usermodel HSSFCellStyle setUserStyleName

Introduction

In this page you can find the example usage for org.apache.poi.hssf.usermodel HSSFCellStyle setUserStyleName.

Prototype

public void setUserStyleName(String styleName) 

Source Link

Document

Sets the name of the user defined style.

Usage

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

License:Open Source License

public static HCellStyle create(HSSFWorkbook workbook, String name) {
    HSSFCellStyle cellStyle = workbook.createCellStyle();
    if (name != null)
        cellStyle.setUserStyleName(name);
    return new HCellStyle(workbook, cellStyle);
}