you can register a ClickHandler to your MenuItems.

instead of:
    MenuBar fooMenu = new MenuBar(true);
    fooMenu.addItem("the", cmd);

try:
MenuItem the = new MenuItem("the");
the.addClickhandler(new ClickHandler() {
        @Override
        public void onClick(ClickEvent event) {
              History.addItem("the");
              //do something else
        }
});

On 8 Okt., 06:51, YoeZ <[email protected]> wrote:
> can anyone tell me how to create history with menubar?
> i've seen sample in showcase, that's not menubar, but treeitem which
> support onselectionhandler. in menubar, only support anclosedhander
> hmm.. please help me..
>
> thanks

--~--~---------~--~----~------------~-------~--~----~
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