I'm not sure I completely followed your example, but have you tried event.getSource()? It'll be == to the widget that originated the event. So, if you attach the same ClickHandler to all of the widgets, you could use it to differentiate between the sources.
- Amir On Nov 4, 11:58 am, nathan <[email protected]> wrote: > I have a DockLayoutPanel consisting of two classes, LeftPanel and > RightPanel. > > LeftPanel consists of several custom widget composites of a CheckBox > and three Buttons. > > When a CheckBox in the LeftPanel is checked/unchecked, information is > displayed/removed from the RightPanel. > > The problem I am having is how to handle different ClickEvents within > the composite widget. As it is now, I just listen for one of the > composite widgets to be clicked in the LeftPanel, then display/remove > the information in the RightPanel based on the state of the CheckBox > of that widget. > > How do I listen for, and differentiate between, one of the Buttons > being clicked? -- 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.
