[ https://issues.apache.org/jira/browse/PIVOT-1053?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17300606#comment-17300606 ]
Roger Lee Whitcomb commented on PIVOT-1053: ------------------------------------------- Wanted to document the reasoning behind the new method name: * "putStyle" is reminiscent of the "put" method we are replacing * avoiding confusion with "setStyles()" which is a different thing > Add "putStyle" methods to Component to make setting styles less verbose > ----------------------------------------------------------------------- > > Key: PIVOT-1053 > URL: https://issues.apache.org/jira/browse/PIVOT-1053 > Project: Pivot > Issue Type: Improvement > Components: wtk > Reporter: Roger Lee Whitcomb > Assignee: Roger Lee Whitcomb > Priority: Minor > Fix For: 2.1.0 > > > The normal code right now is: > {{getStyles().put(...)}} > whereas with this method we get: > {{putStyle(...)}} > which is both shorter and cleaner, and more clear as to what is going on. -- This message was sent by Atlassian Jira (v8.3.4#803005)