//using util.Callback generic callback definition
button2.on("click", new Callback() {
@Override
public void call(JsArrayMixed args) {
ButtonEvent e = args.getObject(0).cast();
console.log("2 clicked at X="+e.domEvent().clientX());
}
});
Widget button3 = Y.newButton(
ButtonConfig.create().label("button3")