Added support for MouseListeners in generated  code.