for (int colIndex = 0; colIndex < colModelSize; colIndex++) {
ColumnModel cm = columnModelList.get(colIndex);
Label label = new jxl.write.Label(colIndex, 0, columnNames[colIndex]);
s.setColumnView(colIndex, cm.getWidth());
s.addCell(label);
// 创建格式化对象并存入集合中
WritableCellFormat wcf = CellFormat.getWritableCellFormat(cm.getCellFormatType());
wcfList.add(wcf);
}