if (mouseListeners == null) {
mouseListeners = new ListenerCollection<MarkerMouseListener>();
}
JavaScriptObject mouseEventHandles[] = {
EVENT_IMPL.addListenerVoid(jsoPeer, MapEvent.MOUSEDOWN,
new VoidCallback() {
@Override
public void callback() {
listener.onMouseDown(Marker.this);
}
}),
EVENT_IMPL.addListenerVoid(jsoPeer, MapEvent.MOUSEUP,
new VoidCallback() {
@Override
public void callback() {
listener.onMouseUp(Marker.this);
}
}),
EVENT_IMPL.addListenerVoid(jsoPeer, MapEvent.MOUSEOVER,
new VoidCallback() {
@Override
public void callback() {
listener.onMouseOver(Marker.this);
}
}),
EVENT_IMPL.addListenerVoid(jsoPeer, MapEvent.MOUSEOUT,
new VoidCallback() {
@Override
public void callback() {
listener.onMouseOut(Marker.this);
}
})};