just delegate the event from the command class
psudo code
menuBar.addItem(name, new Command(){
@Override
public void execute() {
eventBus.fireEvent(new MyEvent());
}
});
2010/9/22 taldos <[email protected]>
> I'm am looking to use the basic GWT MenuBar class in conjunction with
> the eventBus. In doing so I've found myself stuck and could use some
> help
>
> The menuBar.addItem(name, command) method requires a command be
> returned for each new menuItem being added at runtime.
>
> However since I am looking to have all major actions within the
> application run off of the eventBus, I'm looking for any suggestions
> as to how I can use the MenuBar with the eventBus.fireEvent method
> that is in all the tutorials.
>
> Thank you.
>
> --
> 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]<google-web-toolkit%[email protected]>
> .
> For more options, visit this group at
> http://groups.google.com/group/google-web-toolkit?hl=en.
>
>
--
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.