org.wicketstuff.gmap.event
Class ClickListener
java.lang.Object
org.apache.wicket.behavior.Behavior
org.apache.wicket.behavior.AbstractAjaxBehavior
org.apache.wicket.ajax.AbstractDefaultAjaxBehavior
org.wicketstuff.gmap.event.GEventListenerBehavior
org.wicketstuff.gmap.event.ClickListener
- All Implemented Interfaces:
- Serializable, IBehaviorListener, IComponentAwareEventSink, IRequestListener, IComponentAwareHeaderContributor, IClusterable
public abstract class ClickListener
- extends GEventListenerBehavior
This event is fired when the user clicks on the map (but not when they click on a marker or infowindow).
See "click" in the event section of Map.
- See Also:
- Serialized Form
| Methods inherited from class org.apache.wicket.ajax.AbstractDefaultAjaxBehavior |
findIndicatorId, getAttributes, getCallbackFunction, getCallbackFunctionBody, getCallbackScript, getCallbackScript, getChannel, getFailureScript, getPreconditionScript, getSuccessScript, onRequest, postprocessConfiguration, renderAjaxAttributes, renderAjaxAttributes, renderHead, updateAjaxAttributes |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ClickListener
public ClickListener()
getEvent
protected String getEvent()
- Description copied from class:
GEventListenerBehavior
- See: Event table after
google.maps.Map class.
- Specified by:
getEvent in class GEventListenerBehavior
- Returns:
- The name of the GMap Event that this Listener ought to listen to.
onEvent
protected void onEvent(AjaxRequestTarget target)
- Description copied from class:
GEventListenerBehavior
- Typically response parameters that are meant for this event are picket up and made available for the further
processing.
- Specified by:
onEvent in class GEventListenerBehavior
- Parameters:
target - Target to add the Components, that need to be redrawn, to.
onClick
protected abstract void onClick(AjaxRequestTarget target,
GLatLng latLng)
- Override this method to provide handling of a click on the map. See the event section of GMap.
- Parameters:
target - The target that initiated the click.latLng - The clicked GLatLng.
Copyright © 2014. All rights reserved.