final HandlerManager manager2 = new HandlerManager("source2");
manager.addHandler(MouseDownEvent.TYPE, mouse1);
manager.addHandler(MouseDownEvent.TYPE, new MouseDownHandler() {
public void onMouseDown(MouseDownEvent event) {
manager2.fireEvent(event);
}
});
manager.addHandler(MouseDownEvent.TYPE, mouse3);
manager2.addHandler(MouseDownEvent.TYPE, adaptor1);
manager2.addHandler(MouseDownEvent.TYPE, new MouseDownHandler() {
public void onMouseDown(MouseDownEvent event) {
assertEquals("source2", event.getSource());
}
});
manager.addHandler(MouseDownEvent.TYPE, new MouseDownHandler() {
public void onMouseDown(MouseDownEvent event) {
assertEquals("source1", event.getSource());
}