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
On 12 juin, 17:24, Buzzterrier terry.je...@gmail.com wrote:
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
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
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
On 12 juin, 21:15, Buzzterrier terry.je...@gmail.com wrote:
Thx Thomas I really appreciate this.
That worked, but when I handle the event in DoSomething, I need to
know what button was clicked.
So you actually need to access an HasClickHandlers from the
SimpleWidget, not make SimpleWidget