I have a class that I'm using to construct a MenuBar separate from the
class that implements EntryPoint.  Here's a snippet from my MenuBar
class:

public class TheLocalConnectorMenu extends MenuBar {
   TheLocalConnectorMenu() {

         // Make sure the click event is noticed by calling class
        sinkEvents(Event.ONCLICK);
   }
   public void onBrowserEvent(Event event) {
            super.onBrowserEvent(event);
            Window.alert("onBrowserEvent invoked");
    }
}

In my main class, I make a new instance of TheLocalConnectorMenu and I
also have an onBrowserEvent method after onModuleLoad.  The
onBrowserEvent in the main class also has Window.alert in it.
However, no alerts come up when I run the app and click on the MenuBar.
--~--~---------~--~----~------------~-------~--~----~
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