Looking at the javadoc and the source code, I don't think there's a
way to tell when a menu is being opened. I'd suggest you put the
conditions in your menu item command and style the menu item to show
whether it's enabled or not (you'll have to keep references to your
menu items somewhere to be able to change the style)

Hope that's clear enough,

Salvador

On May 10, 2:59 pm, Luciano <[email protected]> wrote:
> Hi,
>
> I'm creating my first GWT app, I have a menu bar and I need to enable/
> disable elements according to the current app context.
>
> In desktop apps I used to check whether menu items should be enabled
> or not when clicking on the parent menu, i.e. when I click on "File",
> I check all items of the file menu.
>
> How can I add an event to the opening of a MenuBar? Or, which is the
> suggested method to enable/disable items?
>
> Thank you in advance.
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to