wicket.contrib.gmap.event
Class ZoomEndListener

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 wicket.contrib.gmap.event.GEventListenerBehavior
                  extended by wicket.contrib.gmap.event.ZoomEndListener
All Implemented Interfaces:
Serializable, IBehaviorListener, IClusterable, IComponentAwareEventSink, IRequestListener, IComponentAwareHeaderContributor

public abstract class ZoomEndListener
extends GEventListenerBehavior

See "zoomend" in the event section of GMap2.

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
ZoomEndListener()
           
 
Method Summary
protected  String getEvent()
          See: Event table after GMap2
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 onZoomEnd(AjaxRequestTarget target, int oldLevel, int newLevel)
          Override this method to provide handling of a zoomEnd.
You can get the new center coordinates of the map by calling GMap2.getCenter().
 
Methods inherited from class wicket.contrib.gmap.event.GEventListenerBehavior
getGMap2, getJSaddListener, onBind, respond
 
Methods inherited from class org.apache.wicket.ajax.AbstractDefaultAjaxBehavior
findIndicatorId, generateCallbackScript, getAjaxCallDecorator, getCallbackScript, getChannel, getChannelName, getFailureScript, getPreconditionScript, getSuccessScript, onRequest, renderHead, throttleScript
 
Methods inherited from class org.apache.wicket.behavior.AbstractAjaxBehavior
afterRender, bind, getCallbackUrl, getComponent, getStatelessHint, onComponentRendered, onComponentTag, onComponentTag
 
Methods inherited from class org.apache.wicket.behavior.Behavior
beforeRender, canCallListenerInterface, canCallListenerInterface, detach, isEnabled, isTemporary, onConfigure, onEvent, onException, unbind
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ZoomEndListener

public ZoomEndListener()
Method Detail

getEvent

protected String getEvent()
Description copied from class: GEventListenerBehavior
See: Event table after GMap2

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.

onZoomEnd

protected abstract void onZoomEnd(AjaxRequestTarget target,
                                  int oldLevel,
                                  int newLevel)
Override this method to provide handling of a zoomEnd.
You can get the new center coordinates of the map by calling GMap2.getCenter().

Parameters:
target - the target that initiated the move


Copyright © 2012. All Rights Reserved.