wicket.contrib.gmap.api
Class GOverlay

java.lang.Object
  extended by wicket.contrib.gmap.api.GOverlay
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
GGeoXml, GGroundOverlay, GMarker, GPolygon, GPolyline

public abstract class GOverlay
extends Object
implements Serializable

Represents an Google Maps API's GOverlay.

See Also:
Serialized Form

Constructor Summary
GOverlay()
          Construct.
 
Method Summary
 GOverlay addListener(GEvent event, GEventHandler handler)
          Add a control.
 GOverlay clearListeners(GEvent event)
          Clear listeners.
 String getId()
           
 String getJSadd()
           
abstract  String getJSconstructor()
          Implement the needed JavaScript constructor for the corresponding JavaScript object.
 String getJSremove()
           
 Map<GEvent,GEventHandler> getListeners()
          Return all registered Listeners.
 GMap2 getParent()
           
 void onEvent(AjaxRequestTarget target, GEvent overlayEvent)
          Called when an Ajax call occurs.
 void setParent(GMap2 parent)
           
protected abstract  void updateOnAjaxCall(AjaxRequestTarget target, GEvent overlayEvent)
          Implement to handle Ajax calls to your needs.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GOverlay

public GOverlay()
Construct.

Method Detail

getJSadd

public String getJSadd()
Returns:
String representing the JavaScript add command for the corresponding JavaScript object.

getJSremove

public String getJSremove()
Returns:
String representing the JavaScript remove command for the corresponding JavaScript object.

getId

public String getId()
Returns:
The session unique id of this object as a String.

getJSconstructor

public abstract String getJSconstructor()
Implement the needed JavaScript constructor for the corresponding JavaScript object.

Returns:
String representing the JavaScript constructor.

getParent

public GMap2 getParent()

setParent

public void setParent(GMap2 parent)

addListener

public GOverlay addListener(GEvent event,
                            GEventHandler handler)
Add a control.

Parameters:
control - control to add
Returns:
This

getListeners

public Map<GEvent,GEventHandler> getListeners()
Return all registered Listeners.

Returns:
registered listeners

clearListeners

public GOverlay clearListeners(GEvent event)
Clear listeners.

Parameters:
event - event to be cleared.
Returns:
This

onEvent

public void onEvent(AjaxRequestTarget target,
                    GEvent overlayEvent)
Called when an Ajax call occurs.

Parameters:
target -
overlayEvent -

updateOnAjaxCall

protected abstract void updateOnAjaxCall(AjaxRequestTarget target,
                                         GEvent overlayEvent)
Implement to handle Ajax calls to your needs.

Parameters:
target -
overlayEvent -


Copyright © 2012. All Rights Reserved.