Package org.wicketstuff.gmap.api
Class GInfoWindow
java.lang.Object
org.wicketstuff.gmap.api.GOverlay
org.wicketstuff.gmap.api.GInfoWindow
- All Implemented Interfaces:
Serializable
Represents an Google Maps API's GInfoWindow.
You can attach following events to an InfoWindow in case you want to react to one of those:
-
Constructor Summary
ConstructorDescriptionGInfoWindow
(GLatLng latLng, String content) Constructor.GInfoWindow
(GLatLng latLng, Component content) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
Implement the needed JavaScript constructor for the corresponding JavaScript object.boolean
isOpen()
void
setContent
(String content) void
setDisableAutoPan
(Boolean disableAutoPan) void
void
setMaxWidth
(Integer maxWidth) void
protected void
updateOnAjaxCall
(AjaxRequestTarget target, GEvent overlayEvent) Update state from a request to an AJAX target.Methods inherited from class org.wicketstuff.gmap.api.GOverlay
addFunctionListener, addListener, clearListeners, getFunctionListeners, getId, getJS, getJSremove, getListeners, getPage, getParent, onEvent, setParent
-
Constructor Details
-
GInfoWindow
Constructor.- Parameters:
latLng
- the position where the info window should be openedcontent
- the (HTML) content which should be shown. Any containing apostrophes will be escaped.
-
GInfoWindow
Constructor.- Parameters:
latLng
- the position where the info window should be openedcontent
- the Component which should be shown. Internally uses document.getElementById('" + markupId + "') to link to the GInfoWindow
-
-
Method Details
-
getJSconstructor
Description copied from class:GOverlay
Implement the needed JavaScript constructor for the corresponding JavaScript object.- Specified by:
getJSconstructor
in classGOverlay
- Returns:
- String representing the JavaScript constructor.
-
updateOnAjaxCall
Update state from a request to an AJAX target.- Specified by:
updateOnAjaxCall
in classGOverlay
-
isOpen
public boolean isOpen() -
close
public void close() -
getLatLng
-
setMaxWidth
-
setLatLng
-
getContent
-
setContent
-
getMaxWidth
-
getDisableAutoPan
-
setDisableAutoPan
-
getzIndex
-
setzIndex
-