On Fri, Jan 9, 2009 at 8:00 PM, olivier FRESSE <[email protected]>wrote:
> Maybe a menu bar ? > http://google-web-toolkit.googlecode.com/svn/javadoc/1.5/com/google/gwt/user/client/ui/MenuBar.html > :-) > > > yes, i am using the menu bar. i want to create a single command reference and resolve all menu selections in it. for this i am trying to use the menubar's getSelectedItem() method. but what shud i check the returned item against...?? *code:* MenuBar menu = new MenuBar(); menu.addItem("About Us", cmd); Command cmd = new Command() { public void execute() { if(menu.getSelectedItem() == ?) decPanel.setWidget(new MenuData()); } }; -- Sahil MCA(SE) USIT GGSIPU, Kashmere Gate Delhi --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
