Win a copy of Machine Learning for Business: Using Amazon SageMaker and JupyterE this week in the Jython/Python forum
or Object Design Style Guide in the Object-Oriented programming forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Bear Bibeault
  • Paul Clapham
  • Jeanne Boyarsky
  • Knute Snortum
Sheriffs:
  • Liutauras Vilda
  • Tim Cooke
  • Junilu Lacar
Saloon Keepers:
  • Ron McLeod
  • Stephan van Hulst
  • Tim Moores
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Joe Ess
  • salvin francis
  • fred rosenberger

Link menubar with a page

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi everybody.

I'm beginer in GWT ans I'm trying to develop a menu for my application with MenuBar like this:

MenuBar masterMenu = new MenuBar(true);
masterMenu.addItem("Cost Center", cmd);
RootPanel.get("menuApp").add(masterMenu );

But I don't know how to implement the command or url to link with the other page?

Someone knows how to do this? In internet there are a lot of information how to make a menu, but they don't explain how to link with pages' urls

Thanks

Jose
 
Bartender
Posts: 11445
19
Android Google Web Toolkit Mac Eclipse IDE Ubuntu Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Welcome to the Ranch.
Are you trying to change the page contents via the menu? If yes, then you can use the history mechanism. More on it here http://code.google.com/webtoolkit/doc/latest/DevGuideCodingBasicsHistory.html
 
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Give some thought to downloading and installing GWT Designer. When you add the menubar to the page in GWT Designer, it will give you a bunch of relevant choices. including events. The Designer tool helps us beginners and greenhorns.
 
My honeysuckle is blooming this year! Now to fertilize this tiny ad:
Java file APIs (DOC, XLS, PDF, and many more)
https://products.aspose.com/total/java
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!