MenuBar or MenuItem only support addCloseHandler.


On Oct 8, 7:07 pm, Robin <redir...@web.de> wrote:
> you can register a ClickHandler to your MenuItems.
>
> instead of:
>    MenuBarfooMenu = newMenuBar(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 <juz...@gmail.com> wrote:
>
>
>
> > can anyone tell me how to createhistorywithmenubar?
> > i've seen sample in showcase, that's notmenubar, but treeitem which
> > support onselectionhandler. inmenubar, 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 google-web-toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to