|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.ObjectHttpServlet
com.lamatek.servlets.google.DefaultEventListenerServlet
public class DefaultEventListenerServlet
DefaultEventListenerServlet This class is the parent class for all servlet based event listeners for the <googlemaps> JSP Taglibrary. It provides support for all the events available. When declaring <googlemaps:event> tags in your map, pass the URL to your subclass of DefaultEventListenerServlet as the url attribute. Users extending this class should override the methods for the event types they're interested in. It is also recommended that the user first call super.processXXXEvent() for the method to ensure standard map behaviour. The standard process method is called after all event based centric methods have been called and gives the user the opportunity to handle other non-event based interactions in the same class. Using this method, it is quite possible to cleanly handle the interactions for an entire application in one handler. Users may also opt to use the JavaBean event listening.
DefaultEventListenerBean| Constructor Summary | |
|---|---|
DefaultEventListenerServlet()
|
|
| Method Summary | |
|---|---|
void |
doGet(HttpServletRequest request,
HttpServletResponse response)
Overrides doGet from HttpServlet. |
void |
process(GoogleMapTag map,
ServletRequest request)
This method is called after all the event based methods have been called. |
void |
processClickEvent(GoogleMapTag map,
double longitude,
double latitude)
This method is called when a click event is detected that was generated by a GoogleMapTag (<googlemaps:map>). |
void |
processDoubleClickEvent(GoogleMapTag map,
double longitude,
double latitude)
This method is called when a double-click event is detected that was generated by a GoogleMapTag (<googlemaps:map>). |
void |
processMapTypeChangedEvent(GoogleMapTag map,
java.lang.String type)
This method is called when a maptypechanged event is detected. |
void |
processMoveEndEvent(GoogleMapTag map,
double longitude,
double latitude)
This method is called when a moveend event is detected. |
void |
processOverlayClickEvent(GoogleMapTag map,
java.lang.String id,
java.lang.String type)
This method is called if a click event is detected that was generated by an overlay (box, circle, marker, polygon, polyline). |
void |
processOverlayDoubleClickEvent(GoogleMapTag map,
java.lang.String id,
java.lang.String type)
This method is called when a double-click event is detected that was generated by an overlay (box, circle, marker, polygon, polyline). |
void |
processZoomEvent(GoogleMapTag map,
int zoom)
This method is called when a zoom event is detected. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DefaultEventListenerServlet()
| Method Detail |
|---|
public void doGet(HttpServletRequest request,
HttpServletResponse response)
throws ServletException,
java.io.IOException
request - HttpServletRequestresponse - HttpServletResponse
ServletException
java.io.IOException
public void process(GoogleMapTag map,
ServletRequest request)
process in interface GoogleMapEventHandlermap - The GoogleMapTag that generated the event.request - The original ServletRequest.
public void processOverlayClickEvent(GoogleMapTag map,
java.lang.String id,
java.lang.String type)
processOverlayClickEvent in interface GoogleMapEventHandlermap - The GoogleMapTag parent of the marker clicked.id - The id of the overlay that was clicked.type - The type of overlay clicked (box, circle, marker, polygon, polyline)
public void processClickEvent(GoogleMapTag map,
double longitude,
double latitude)
processClickEvent in interface GoogleMapEventHandlermap - The GoogleMapTag that generated the event.longitude - The longitude (in decimal form) where the click occured.latitude - The latitude (in decimal form) where the click occured.
public void processOverlayDoubleClickEvent(GoogleMapTag map,
java.lang.String id,
java.lang.String type)
processOverlayDoubleClickEvent in interface GoogleMapEventHandlermap - The GoogleMapTag parent of the marker double-clicked.id - The id of the overlay double-clicked.type - The type of overlay double-clicked (box, circle, marker, polygon, polyline)
public void processDoubleClickEvent(GoogleMapTag map,
double longitude,
double latitude)
processDoubleClickEvent in interface GoogleMapEventHandlermap - The GoogleMapTag that generated the event.longitude - The longitude (in decimal form) where the double-click occured.latitude - The latitude (in decimal form) where the double-click occured.
public void processZoomEvent(GoogleMapTag map,
int zoom)
processZoomEvent in interface GoogleMapEventHandlermap - The GoogleMapTag that generated the event.zoom - The new requested zoom level.
public void processMoveEndEvent(GoogleMapTag map,
double longitude,
double latitude)
processMoveEndEvent in interface GoogleMapEventHandlermap - The GoogleMapTag that generated the event.longitude - The new center longitude (in decimal form).latitude - The new center latitude (in decimal form).
public void processMapTypeChangedEvent(GoogleMapTag map,
java.lang.String type)
processMapTypeChangedEvent in interface GoogleMapEventHandlermap - The GoogleMapTag that generated the event.type - The new requested map type (map | satellite | hybrid).
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||