src/org/tiefaces/components/websheet/utility/CellStyleUtility.java
public static String getCellStyle(final Workbook wb, final Cell poiCell,
			final String inputType) {

		CellStyle cellStyle = poiCell.getCellStyle();
		StringBuilder webStyle = new StringBuilder();
		if (cellStyle != null) {
			if (!inputType.isEmpty()) {
				webStyle.append(getAlignmentFromCell(poiCell, cellStyle));
				webStyle.append(getVerticalAlignmentFromCell(cellStyle));
			}

			webStyle.append(ColorUtility.getBgColorFromCell(wb, poiCell,
					cellStyle));
		}
		return webStyle.toString();

	}
public static String getCellStyle(final Workbook wb, final Cell poiCell,
			final String inputType) {

		CellStyle cellStyle = poiCell.getCellStyle();
		StringBuilder webStyle = new StringBuilder();
		if (cellStyle != null) {
			if (!inputType.isEmpty()) {
				webStyle.append(getAlignmentFromCell(poiCell, cellStyle));
				webStyle.append(getVerticalAlignmentFromCell(cellStyle));
			}

			webStyle.append(ColorUtility.getBgColorFromCell(wb, poiCell,
					cellStyle));
		}
		return webStyle.toString();

	}
public static String getCellStyle ( final Workbook wb , final Cell poiCell , final String inputType ) { CellStyle cellStyle = poiCell . getCellStyle ( ) ; StringBuilder webStyle = new StringBuilder ( ) ; if ( cellStyle != null ) { if ( ! inputType . isEmpty ( ) ) { webStyle . append ( getAlignmentFromCell ( poiCell , cellStyle ) ) ; webStyle . append ( getVerticalAlignmentFromCell ( cellStyle ) ) ; } webStyle . append ( ColorUtility . getBgColorFromCell ( wb , poiCell , cellStyle ) ) ; } return webStyle . toString ( ) ; }
Gets the cell style.

@param wb
the wb
@param poiCell
the poi cell
@param inputType
the input type
@return the cell style
Gets the cell style .