package androidemu.widget;

import androidemu.view.View;

import com.google.gwt.dom.client.Element;
import com.google.gwt.event.dom.client.ClickEvent;
import com.google.gwt.event.dom.client.ClickHandler;

public class Button extends View {

	public Button(Element element) {
		super(element);
	}

	public void setOnClickListener(final OnClickListener listener) {
		com.google.gwt.user.client.ui.Button.wrap(element).addClickHandler(new ClickHandler() {

			@Override
			public void onClick(ClickEvent event) {
				listener.onClick(Button.this);
			}
		});
	}

}

package androidemu.widget;

import androidemu.view.View;

import com.google.gwt.dom.client.Element;
import com.google.gwt.user.client.Event;
import com.google.gwt.user.client.EventListener;

public class Button extends View {

	public Button(Element element) {
		super(element);
	}

	public void setOnClickListener(final OnClickListener listener) {
		Event.setEventListener(element, new EventListener() {
			@Override
			public void onBrowserEvent(Event event) {
				listener.onClick(Button.this);
			}
		});
		Event.sinkEvents(element, Event.ONCLICK);
	}

}

Use the Event Class better than GWT Buttons