mirror of https://github.com/apache/poi.git
Put in an overloaded method to keep binary compatibilty
git-svn-id: https://svn.apache.org/repos/asf/poi/branches/ooxml@677997 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
70cc45613e
commit
db3bc0f51c
|
@ -921,16 +921,15 @@ public class HSSFCell implements Cell
|
|||
* @see org.apache.poi.hssf.usermodel.HSSFWorkbook#createCellStyle()
|
||||
* @see org.apache.poi.hssf.usermodel.HSSFWorkbook#getCellStyleAt(short)
|
||||
*/
|
||||
|
||||
public void setCellStyle(CellStyle style)
|
||||
{
|
||||
HSSFCellStyle hStyle = (HSSFCellStyle)style;
|
||||
|
||||
public void setCellStyle(CellStyle style) {
|
||||
setCellStyle( (HSSFCellStyle)style );
|
||||
}
|
||||
public void setCellStyle(HSSFCellStyle style) {
|
||||
// Verify it really does belong to our workbook
|
||||
hStyle.verifyBelongsToWorkbook(book);
|
||||
style.verifyBelongsToWorkbook(book);
|
||||
|
||||
// Change our cell record to use this style
|
||||
record.setXFIndex(hStyle.getIndex());
|
||||
record.setXFIndex(style.getIndex());
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue