public static void setupCellStyle ( final Workbook wb , final FacesCell fcell , final Cell poiCell , final float rowHeight ) { CellStyle cellStyle = poiCell . getCellStyle ( ) ; if ( ( cellStyle != null ) && ( ! cellStyle . getLocked ( ) ) ) { // not locked if ( fcell . getInputType ( ) . isEmpty ( ) ) { fcell . setInputType ( CellStyleUtility . getInputTypeFromCellType ( poiCell ) ) ; } if ( fcell . getControl ( ) . isEmpty ( ) && ( ! fcell . getInputType ( ) . isEmpty ( ) ) ) { fcell . setControl ( "text" ) ; } setInputStyleBaseOnInputType ( fcell , poiCell ) ; } String webStyle = getCellStyle ( wb , poiCell , fcell . getInputType ( ) ) + getCellFontStyle ( wb , poiCell ) + getRowStyle ( wb , poiCell , fcell . getInputType ( ) , rowHeight , fcell . getRowspan ( ) ) ; fcell . setStyle ( webStyle ) ; fcell . setColumnStyle ( getColumnStyle ( wb , fcell , poiCell , rowHeight ) ) ; }
Setup cell style .