Yep, this is a nice way to do this as well but if you want to use UiBinder with <ui:with ... /> having the MenuItem subclassed is much more convenient because then I can set ImageResource directly from the ClientBundle.
On Monday, May 13, 2013 1:15:28 PM UTC+2, Andrea Boscolo wrote: > > You don't need to extend MenuItem. See > http://stackoverflow.com/questions/16399241/how-to-add-an-icon-to-a-menuitem-in-gwt > -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscr...@googlegroups.com. To post to this group, send email to google-web-toolkit@googlegroups.com. Visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. For more options, visit https://groups.google.com/groups/opt_out.