Hi men,
I am trying to implement my own Composite named MenuItem composing of
a Grid with 3 cells next to each other and a Label placed in the
middle cell. I call initWidget(the Grid).

The issue now is that I register a click handler for the Label which
should determine if the MenuItem was clicked or not. The Grid should
not react on clicks, thus I do not register click handler for it.

Now, naturally, the source of the click event will be always the
Label. But in my application I need to get as the source of the event
the MenuItem object, not the Label which composes just a part of the
MenuItem Composite.

Is there any smooth way to do that? My only idea is not to extend
Composite class, but the Label itself and add it in a Grid. Is this a
correct solution?

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