@Override public void setContent(String content) { infoWindow.setContent(content); }
/** * Sets the contents of an info window to a single Vaadin component which may, * of course, be a layout. * * @param window the info window which contents should be modified * @param content the contents for the info window */ public void setInfoWindowContents(GoogleMapInfoWindow window, Component content) { super.addComponent(content); infoWindowContents.put(window, content); String contentIdentifier = "content-for-infowindow-" + window.getId(); content.addStyleName(contentIdentifier); window.setContent("Loading..."); getState().infoWindowContentIdentifiers .put(window.getId(), contentIdentifier); }