org.wicketstuff.gmap.event
Class ZoomChangedListener

java.lang.Object
  extended by org.apache.wicket.behavior.Behavior
      extended by org.apache.wicket.behavior.AbstractAjaxBehavior
          extended by org.apache.wicket.ajax.AbstractDefaultAjaxBehavior
              extended by org.wicketstuff.gmap.event.GEventListenerBehavior
                  extended by org.wicketstuff.gmap.event.ZoomChangedListener
All Implemented Interfaces:
Serializable, IBehaviorListener, IComponentAwareEventSink, IRequestListener, IComponentAwareHeaderContributor, IClusterable

public abstract class ZoomChangedListener
extends GEventListenerBehavior

See "zoom_changed" in the event section of google.maps.Map class .

See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.apache.wicket.ajax.AbstractDefaultAjaxBehavior
INDICATOR
 
Fields inherited from interface org.apache.wicket.behavior.IBehaviorListener
INTERFACE
 
Constructor Summary
ZoomChangedListener()
           
 
Method Summary
protected  String getEvent()
          See: Event table after google.maps.Map class.
protected  void onEvent(AjaxRequestTarget target)
          Typically response parameters that are meant for this event are picket up and made available for the further processing.
protected abstract  void onZoomChanged(AjaxRequestTarget target)
          Override this method to provide handling of a zoom_changed event.
You can get the new center coordinates of the map by calling GMap.getCenter().
 
Methods inherited from class org.wicketstuff.gmap.event.GEventListenerBehavior
getGMap, getJSaddListener, getStatelessHint, onBind, respond
 
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 org.apache.wicket.behavior.AbstractAjaxBehavior
afterRender, bind, getCallbackUrl, getComponent, onComponentRendered, onComponentTag, onComponentTag, onUnbind, unbind
 
Methods inherited from class org.apache.wicket.behavior.Behavior
beforeRender, canCallListenerInterface, detach, isEnabled, isTemporary, onConfigure, onEvent, onException, onRemove
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ZoomChangedListener

public ZoomChangedListener()
Method Detail

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.
See Also:
wicket.contrib.gmap.event.GEventListenerBehavior#getEvent()

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.
See Also:
wicket.contrib.gmap.event.GEventListenerBehavior#onEvent(org.apache.wicket.ajax.AjaxRequestTarget)

onZoomChanged

protected abstract void onZoomChanged(AjaxRequestTarget target)
Override this method to provide handling of a zoom_changed event.
You can get the new center coordinates of the map by calling GMap.getCenter().

Parameters:
target - the target that initiated the move


Copyright © 2014. All rights reserved.