org.wicketstuff.gmap.api
Class GInfoWindow

java.lang.Object
  extended by org.wicketstuff.gmap.api.GOverlay
      extended by org.wicketstuff.gmap.api.GInfoWindow
All Implemented Interfaces:
Serializable

public class GInfoWindow
extends GOverlay

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:

See Also:
GEvent.content_changed, GEvent.domready, GEvent.closeclick, Serialized Form

Constructor Summary
GInfoWindow(GLatLng latLng, Component content)
          Constructor.
GInfoWindow(GLatLng latLng, String content)
          Constructor.
 
Method Summary
 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(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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GInfoWindow

public GInfoWindow(GLatLng latLng,
                   String content)
Constructor.

Parameters:
latLng - the position where the info window should be opened
content - the (HTML) content which should be shown. Any containing apostrophes will be escaped.

GInfoWindow

public GInfoWindow(GLatLng latLng,
                   Component content)
Constructor.

Parameters:
latLng - the position where the info window should be opened
content - the Component which should be shown. Internally uses document.getElementById('" + markupId + "') to link to the GInfoWindow
Method Detail

getJSconstructor

public String getJSconstructor()
Description copied from class: GOverlay
Implement the needed JavaScript constructor for the corresponding JavaScript object.

Specified by:
getJSconstructor in class GOverlay
Returns:
String representing the JavaScript constructor.

updateOnAjaxCall

protected void updateOnAjaxCall(AjaxRequestTarget target,
                                GEvent overlayEvent)
Update state from a request to an AJAX target.

Specified by:
updateOnAjaxCall in class GOverlay

isOpen

public boolean isOpen()

close

public void close()

getLatLng

public GLatLng getLatLng()

setMaxWidth

public void setMaxWidth(Integer maxWidth)

setLatLng

public void setLatLng(GLatLng latLng)

getContent

public String getContent()

setContent

public void setContent(String content)

getMaxWidth

public Integer getMaxWidth()

getDisableAutoPan

public Boolean getDisableAutoPan()

setDisableAutoPan

public void setDisableAutoPan(Boolean disableAutoPan)

getzIndex

public Integer getzIndex()

setzIndex

public void setzIndex(Integer zIndex)


Copyright © 2014. All Rights Reserved.