/** * Analyse the type of cell style. * * @param style Incoming cell style. * @return CellStyle according to its type. If income value was * <code>NULL</code> returns {@link #defaultCellStyle}. * * @author DLiauchuk */ private CellStyle analyseCellStyle(ICellStyle style) { CellStyle returnStyle; if (style instanceof XlsCellStyle) { returnStyle = ((XlsCellStyle) style).getXlsStyle(); } else { returnStyle = getDefaultCellStyle(); } return returnStyle; }
if (cellStyle != getDefaultCellStyle()) { setCellStyle(cell, cellStyle); cellStyle = getDateCellStyle(cell);