Author: rwhitcomb Date: Tue Feb 6 22:25:33 2018 New Revision: 1823406 URL: http://svn.apache.org/viewvc?rev=1823406&view=rev Log: PIVOT-999: Remove the really unnecessary "putInt" and "putBoolean" methods from Dictionary and Component.StyleDictionary, because the default "put" method (with autoboxing) is perfectly able to handle those values.
Add a default "copy" method to the Dictionary interface to copy a key/value pair from another dictionary. Also add the "Style" overload of this method to Component.StyleDictionary for completeness. Modified: pivot/trunk/examples/src/org/apache/pivot/examples/wrapping/WrappingButtonDataRenderer.java Modified: pivot/trunk/examples/src/org/apache/pivot/examples/wrapping/WrappingButtonDataRenderer.java URL: http://svn.apache.org/viewvc/pivot/trunk/examples/src/org/apache/pivot/examples/wrapping/WrappingButtonDataRenderer.java?rev=1823406&r1=1823405&r2=1823406&view=diff ============================================================================== --- pivot/trunk/examples/src/org/apache/pivot/examples/wrapping/WrappingButtonDataRenderer.java (original) +++ pivot/trunk/examples/src/org/apache/pivot/examples/wrapping/WrappingButtonDataRenderer.java Tue Feb 6 22:25:33 2018 @@ -25,7 +25,7 @@ import org.apache.pivot.wtk.Style; */ public class WrappingButtonDataRenderer extends Label implements Button.DataRenderer { public WrappingButtonDataRenderer() { - getStyles().putBoolean(Style.wrapText, true); + getStyles().put(Style.wrapText, true); } @Override