✖ in your ui.xml is interpreted by the XML parser used at
compile-time to generate the corresponding Java code. The generator will
then generate something like `close.setText("\u2716")` (actually, because
it generates files in UTF-8, it probably just uses `close.setText("✖")`).
An alternative would be to use an HTML widget and close.setHTML("✖")
On Tuesday, December 11, 2012 1:58:49 PM UTC+1, regnoult axel wrote:
>
> Hello,
>
> My 'close' label needs a special character so I do :
> close.setText("✖"); but then it appears ✖
>
> Instead of calling setText(), in uiBinder I could have a working solution:
>
> <g:Label
> ui:field="close"
> addStyleNames="{C.C_CSS.cross}">✖</g:Label>
>
>
> My question is : Why setText() does not give me the special character (a
> cross) appearing ?
> What should be the easier solution in my case (I cannot use uibinder) ?
>
> Thanks you,
>
--
You received this message because you are subscribed to the Google Groups
"Google Web Toolkit" group.
To view this discussion on the web visit
https://groups.google.com/d/msg/google-web-toolkit/-/RDEpE6FEOa4J.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/google-web-toolkit?hl=en.