public Cell createTitleCell ( String str , double width ) { int cellCnt = this . getCellCnt ( ) ; Cell cell = this . getLastRow ( ) . createCell ( cellCnt ) ; cell . setCellValue ( str ) ; cell . setCellType ( CellType . STRING ) ; cell . setCellStyle ( this . style . getStringCs ( ) ) ; sheet . setColumnWidth ( cellCnt , ( int ) ( sheet . getColumnWidth ( cellCnt ) * width ) ) ; return cell ; }
Create title cell cell .