public final void setStyleProperty ( StyleName styleName , String value ) { if ( styleProps == null ) { styleProps = new HashMap <> ( ) ; } styleProps . put ( styleName , value ) ; }
Set a style property using its name as the key . Please ensure the style name and value are appropriately configured or it may result in unexpected behavior .