On Fri, Jan 9, 2009 at 9:12 PM, olivier FRESSE <[email protected]>wrote:
> menu.addItem(...) returns the created MenuItem instance, ie the one added
> in the menu.
>
> MenuItem aboutUsItem = menu.addItem("About Us", cmd);
>
> and then
> if(menu.getSelectedItem() == aboutUsItem)
> should work.
>
>> i am not able to use the method menu.getSelectedItem() inside the inner
class 'Command'.
i have declared a ref to the menubar in the constructor, & adding items to
it in the onModuleLoad(). Is there something wrong..?
thanx and regards
--
Sahil
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---