package nl.danielm.touringband.client;

import com.google.gwt.event.dom.client.MouseDownEvent;
import com.google.gwt.event.dom.client.MouseDownHandler;
import com.google.gwt.user.client.Event;
import com.google.gwt.user.client.ui.Button;

public class MyButton2 extends Button {
	public MyButton2() {
		sinkEvents(Event.ONMOUSEDOWN);

		addMouseDownHandler(new MouseDownHandler() {
			public void onMouseDown(MouseDownEvent event) {
				System.out.println("mousedown : button");
			}
		});
	}

	@Override
	public void onBrowserEvent(Event event) {
		System.out.println("onBrowserEvent 1 : " + event.getString());
		event.stopPropagation();
	}
}
