public final T setStyle ( String styleAttribute , String styleValue ) { // Add style to style map Map < String , String > styleMap = getStyles ( ) ; styleMap . put ( styleAttribute , styleValue ) ; // Serialize style string StringBuilder styleString = new StringBuilder ( ) ; for ( Map . Entry style : styleMap . entrySet ( ) ) { styleString . append ( style . getKey ( ) ) ; styleString . append ( ' ' ) ; styleString . append ( style . getValue ( ) ) ; styleString . append ( ' ' ) ; } setStyleString ( styleString . toString ( ) ) ; return ( T ) this ; }
Html style attribute . Sets single style attribute value .