Class HSSFCellUtil

java.lang.Object

org.apache.poi.hssf.util.HSSFCellUtil

public final class HSSFCellUtil
extends java.lang.Object

Various utility functions that make working with a cells and rows easier. The various
methods that deal with style's allow you to create your HSSFCellStyles as you need them.
When you apply a style change to a cell, the code will attempt to see if a style already
exists that meets your needs. If not, then it will create a new style. This is to prevent
creating too many styles. there is an upper limit in Excel on the number of styles that
can be supported.

setCellStyleProperty

This method attempt to find an already existing HSSFCellStyle that matches
what you want the style to be. If it does not find the style, then it
creates a new one. If it does create a new one, then it applies the
propertyName and propertyValue to the style. This is necessary because
Excel has an upper limit on the number of Styles that it supports.