@Override
    public String getPropertyName(String name) {

        if ("float".equals(name)) {
            return "styleFloat";
        } else if ("class".equals(name)) {
            return "className";
        } else if ("for".equals(name)) {
            return "htmlFor";
        }
        return name;
    }
@ Override public String getPropertyName ( String name ) { if ( "float" . equals ( name ) ) { return "styleFloat" ; } else if ( "class" . equals ( name ) ) { return "className" ; } else if ( "for" . equals ( name ) ) { return "htmlFor" ; } return name ; }
Transforms the CSS style name to the name of the javascript style property.<p>

@param name the name of the CSS property
@return the javascript property name