New Event Handling and Composites

2009-06-12 Thread Buzzterrier
I am just not getting the new Event handling. I have went over every example I can find, but it is not clicking. How do you let composite widgets subscribe to events from other composite widgets? From reading it sounds like there is a HandlerManager that you register with by implementing the

Re: New Event Handling and Composites

2009-06-12 Thread Buzzterrier
Thx Thomas I really appreciate this. That worked, but when I handle the event in DoSomething, I need to know what button was clicked. e.g. public class DoSomething extends Composite implements ClickHandler{ private SimpleWidget simpleWidget; public

Re: New Event Handling and Composites

2009-06-12 Thread Buzzterrier
So tracing the fireEvent method, I found that the source does indeed reference the button, but in HandlerManager, the source gets changed to SimpleWidget. Object oldSource = event.getSource(); //event.getSouce is button event.setSource(source); //here source is SimpleWidget Not sure why. the