This project provides Java API for both client (GWT, with "g-" prefix) and server (Vaadin) side for the popular Leaflet.MousePosition add-on made by Ardhi Lukianto.
LMap map = new LMap();
map.addControl(new LMousePosition());
Vaadin API for Leaflet: V-Leaflet
During development you might need to have development version of v-leaflet, g-leaflet and possibly g-leaflet-draw as well.