On Feb 22, 9:13 am, Tapas Adhikary <[email protected]> wrote: > Hi All, > How to add an image or a html to the menu item of a menu bar ? I have a > menu bar (vertical) of 6 menu items. I would like to add a tick(ok/right) > image in-front of the menu item on selection. With that , I want to hide the > tick image on select of other menu item in the menu or clicking on the > already selected menu item again.
I'm using a local version of the MenuBar and MenuItem from GWTLib (http://code.google.com/p/gwtlib/). It currently does check marks, but not the radio button effect that you're looking for. It also supports enabling and disabling menu items, which is the main reason I'm using it. I've updated it to work with GWT 2.0.2, and replace the deprecated Listeners with Handlers. I have not committed it back to the project yet, as it's still in development (read: not completely tested), and I'm not a committer on the project. I'm planning to add an Action-like object to it before I'm done, (http://java.sun.com/javase/6/docs/api/javax/swing/Action.html). This centralizes the information about a particular UI-initiated action, so that disabling the action automatically disables all the associated UI controls (buttons, menu items, etc.) and the tooltips and help text are kept together. I can send you a zip file in its current state, if you like, but with no promises of support or further updates, as my time available for this project is limited. -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. 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.
