public class GInfoWindow extends GOverlay
Constructor and Description |
---|
GInfoWindow(GLatLng latLng,
org.apache.wicket.Component content)
Constructor.
|
GInfoWindow(GLatLng latLng,
String content)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
close() |
String |
getContent() |
Boolean |
getDisableAutoPan() |
String |
getJSconstructor()
Implement the needed JavaScript constructor for the corresponding JavaScript object.
|
GLatLng |
getLatLng() |
Integer |
getMaxWidth() |
Integer |
getzIndex() |
boolean |
isOpen() |
void |
setContent(String content) |
void |
setDisableAutoPan(Boolean disableAutoPan) |
void |
setLatLng(GLatLng latLng) |
void |
setMaxWidth(Integer maxWidth) |
void |
setzIndex(Integer zIndex) |
protected void |
updateOnAjaxCall(org.apache.wicket.ajax.AjaxRequestTarget target,
GEvent overlayEvent)
Update state from a request to an AJAX target.
|
addFunctionListener, addListener, clearListeners, getFunctionListeners, getId, getJS, getJSremove, getListeners, getPage, getParent, onEvent, setParent
public GInfoWindow(GLatLng latLng, String content)
latLng
- the position where the info window should be openedcontent
- the (HTML) content which should be shown. Any containing
apostrophes will be escaped.public GInfoWindow(GLatLng latLng, org.apache.wicket.Component content)
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 GInfoWindowpublic String getJSconstructor()
GOverlay
getJSconstructor
in class GOverlay
protected void updateOnAjaxCall(org.apache.wicket.ajax.AjaxRequestTarget target, GEvent overlayEvent)
updateOnAjaxCall
in class GOverlay
public boolean isOpen()
public void close()
public GLatLng getLatLng()
public void setMaxWidth(Integer maxWidth)
public void setLatLng(GLatLng latLng)
public String getContent()
public void setContent(String content)
public Integer getMaxWidth()
public Boolean getDisableAutoPan()
public void setDisableAutoPan(Boolean disableAutoPan)
public Integer getzIndex()
public void setzIndex(Integer zIndex)
Copyright © 2015. All rights reserved.