Currently, if an xls file has a column with a non default style applied to it, then creating a cell in that column causes a cell with default formatting to be created instead of the cell retaining the formatting of the column. This is /probably/ because in the HSSFCell contructor we always create a new cell style. This needs to be changed to first check to see if the corresponding column has an extended format record associated with it. If an XF record is present for the column (ie. ColInfoRecord exists spanning the cells column).
Created attachment 15719 [details] [PATCH] changes to Sheet, HSSFCell added Sheet.getXFIndexForColAt(short) to enable retrieving the index of ExtendedFormatRecord for a column. This value is used as the default for the HSSFCell (instead of the workbook default). Also added junit test method: TestSheet.testXFIndexForColumn()