src/org/tiefaces/components/websheet/utility/CellStyleUtility.java
public static String getColumnStyle(final Workbook wb,
			final FacesCell fcell, final Cell poiCell,
			final float rowHeight) {

		String inputType = fcell.getInputType();
		CellStyle cellStyle = poiCell.getCellStyle();
		StringBuilder webStyle = new StringBuilder();
		if (cellStyle != null) {
			if (fcell.isContainPic() || fcell.isContainChart()) {
				webStyle.append("vertical-align: top;");
			} else {
				webStyle.append(getAlignmentFromCell(poiCell, cellStyle));
				webStyle.append(getVerticalAlignmentFromCell(cellStyle));
			}
			webStyle.append(ColorUtility.getBgColorFromCell(wb, poiCell,
					cellStyle));
			webStyle.append(getRowStyle(wb, poiCell, inputType, rowHeight,
					fcell.getRowspan()));
		} else {
			webStyle.append(getAlignmentFromCellType(poiCell));
		}
		return webStyle.toString();

	}
public static String getColumnStyle(final Workbook wb,
			final FacesCell fcell, final Cell poiCell,
			final float rowHeight) {

		String inputType = fcell.getInputType();
		CellStyle cellStyle = poiCell.getCellStyle();
		StringBuilder webStyle = new StringBuilder();
		if (cellStyle != null) {
			if (fcell.isContainPic() || fcell.isContainChart()) {
				webStyle.append("vertical-align: top;");
			} else {
				webStyle.append(getAlignmentFromCell(poiCell, cellStyle));
				webStyle.append(getVerticalAlignmentFromCell(cellStyle));
			}
			webStyle.append(ColorUtility.getBgColorFromCell(wb, poiCell,
					cellStyle));
			webStyle.append(getRowStyle(wb, poiCell, inputType, rowHeight,
					fcell.getRowspan()));
		} else {
			webStyle.append(getAlignmentFromCellType(poiCell));
		}
		return webStyle.toString();

	}
public static String getColumnStyle ( final Workbook wb , final FacesCell fcell , final Cell poiCell , final float rowHeight ) { String inputType = fcell . getInputType ( ) ; CellStyle cellStyle = poiCell . getCellStyle ( ) ; StringBuilder webStyle = new StringBuilder ( ) ; if ( cellStyle != null ) { if ( fcell . isContainPic ( ) || fcell . isContainChart ( ) ) { webStyle . append ( "vertical-align: top;" ) ; } else { webStyle . append ( getAlignmentFromCell ( poiCell , cellStyle ) ) ; webStyle . append ( getVerticalAlignmentFromCell ( cellStyle ) ) ; } webStyle . append ( ColorUtility . getBgColorFromCell ( wb , poiCell , cellStyle ) ) ; webStyle . append ( getRowStyle ( wb , poiCell , inputType , rowHeight , fcell . getRowspan ( ) ) ) ; } else { webStyle . append ( getAlignmentFromCellType ( poiCell ) ) ; } return webStyle . toString ( ) ; }
Gets the column style.

@param wb
the wb
@param fcell
the fcell
@param poiCell
the poi cell
@param rowHeight
the row height
@return the column style
Gets the column style .