You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@pivot.apache.org by Scott Lanham <li...@sael.com.au> on 2009/08/24 00:54:06 UTC
Error while setting CornerRadii
Hi,
For whatever reason I prefer to use the styles element :-)
I haven't been able to set cornerRadii using the styles element:
<styles cornerRadii="5"/>
Part of the error is:
java.lang.ClassCastException: java.lang.Integer cannot be cast to
org.apache.pivot.collections.Map
at org.apache.pivot.serialization.JSONSerializer.parseMap(Unknown
Source)
at org.apache.pivot.wtk.CornerRadii.decode(Unknown Source)
at org.apache.pivot.wtk.skin.BorderSkin.setCornerRadii(Unknown Source)
Cheers,
Scott.
Re: Error while setting CornerRadii
Posted by Greg Brown <gk...@mac.com>.
Thanks - this is fixed.
On Sunday, August 23, 2009, at 06:54PM, "Scott Lanham" <li...@sael.com.au> wrote:
>Hi,
>
>For whatever reason I prefer to use the styles element :-)
>
>I haven't been able to set cornerRadii using the styles element:
>
> <styles cornerRadii="5"/>
>
>Part of the error is:
>
>java.lang.ClassCastException: java.lang.Integer cannot be cast to
>org.apache.pivot.collections.Map
> at org.apache.pivot.serialization.JSONSerializer.parseMap(Unknown
>Source)
> at org.apache.pivot.wtk.CornerRadii.decode(Unknown Source)
> at org.apache.pivot.wtk.skin.BorderSkin.setCornerRadii(Unknown Source)
>
>Cheers,
>
>Scott.
>
>