if (log.isTraceEnabled())
{
log.trace("Applying column settings #0 on column #1", columnStyle, columnIndex);
}
CellView cellView = worksheet.getColumnView(columnIndex);
if (columnStyle.autoSize != null)
{
cellView.setAutosize(columnStyle.autoSize);
}
if (columnStyle.hidden != null)
{
cellView.setHidden(columnStyle.hidden);
}
if (columnStyle.width != null)
{
cellView.setSize(columnStyle.width);
}
worksheet.setColumnView(columnIndex, cellView);
}