Package org.wicketstuff.gmap.api
Class GOverlay
java.lang.Object
org.wicketstuff.gmap.api.GOverlay
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
GCircle
,GGroundOverlay
,GInfoWindow
,GMarker
,GPolygon
,GPolyline
,GRectangle
Represents an Google Maps API's GOverlay.
- See Also:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionaddFunctionListener
(GEvent event, String jsFunction) Add a none Ajax Event.addListener
(GEvent event, GEventHandler handler) clearListeners
(GEvent event) Clear listeners.Return all registered Listeners.getId()
getJS()
abstract String
Implement the needed JavaScript constructor for the corresponding JavaScript object.Return all registered Listeners.protected Page
getPage()
void
onEvent
(AjaxRequestTarget target, GEvent overlayEvent) Called when an Ajax call occurs.void
protected abstract void
updateOnAjaxCall
(AjaxRequestTarget target, GEvent overlayEvent) Implement to handle Ajax calls to your needs.
-
Constructor Details
-
GOverlay
public GOverlay()Construct. -
GOverlay
Used in stateless environment as session id's are changing continuously without state.
-
-
Method Details
-
getJS
- Returns:
- String representing the JavaScript add command for the corresponding JavaScript object.
-
getJSremove
- Returns:
- String representing the JavaScript remove command for the corresponding JavaScript object.
-
getId
- Returns:
- The session unique id of this object as a String.
-
getJSconstructor
Implement the needed JavaScript constructor for the corresponding JavaScript object.- Returns:
- String representing the JavaScript constructor.
-
getParent
-
getPage
-
setParent
-
addListener
-
addFunctionListener
Add a none Ajax Event. -
getListeners
Return all registered Listeners.- Returns:
- registered listeners
-
getFunctionListeners
Return all registered Listeners.- Returns:
- registered listeners
-
clearListeners
Clear listeners.- Parameters:
event
- event to be cleared.- Returns:
- This
-
onEvent
Called when an Ajax call occurs.- Parameters:
target
-overlayEvent
-
-
updateOnAjaxCall
Implement to handle Ajax calls to your needs.- Parameters:
target
-overlayEvent
-
-