code: public void onDraw() {
  		map.getVectorContext().setController(parent, getId(), controller, Event.MOUSEEVENTS);
  		map.getVectorContext().setCursor(parent, getId(), Cursor.POINTER.getValue());
  	}
docs: When this pan button is drawn for the first time, add a pan controller to it that reacts on the click event.