org.wicketstuff.gmap.api
Class GClientGeocoder

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.apache.wicket.ajax.AjaxEventBehavior
                  extended by org.wicketstuff.gmap.api.GClientGeocoder
All Implemented Interfaces:
Serializable, IBehaviorListener, IComponentAwareEventSink, IRequestListener, IComponentAwareHeaderContributor, IClusterable

public abstract class GClientGeocoder
extends AjaxEventBehavior

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
GClientGeocoder(String event, TextField<?> addressField)
          Construct.
GClientGeocoder(String event, TextField<?> addressField, Duration timeout)
           
 
Method Summary
 CharSequence getCallbackScript()
           
protected  void onEvent(AjaxRequestTarget target)
           
abstract  void onGeoCode(AjaxRequestTarget target, GeocoderStatus status, String address, GLatLng latLng)
           
 void renderHead(Component c, org.apache.wicket.markup.head.IHeaderResponse response)
           
 
Methods inherited from class org.apache.wicket.ajax.AjaxEventBehavior
getEvent, onCheckEvent, respond, updateAjaxAttributes
 
Methods inherited from class org.apache.wicket.ajax.AbstractDefaultAjaxBehavior
findIndicatorId, getAttributes, getCallbackFunction, getCallbackFunctionBody, getCallbackScript, getChannel, getFailureScript, getPreconditionScript, getSuccessScript, onBind, onRequest, postprocessConfiguration, renderAjaxAttributes, renderAjaxAttributes
 
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, getStatelessHint, 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

GClientGeocoder

public GClientGeocoder(String event,
                       TextField<?> addressField)
Construct.

Parameters:
event -

GClientGeocoder

public GClientGeocoder(String event,
                       TextField<?> addressField,
                       Duration timeout)
Method Detail

renderHead

public void renderHead(Component c,
                       org.apache.wicket.markup.head.IHeaderResponse response)
Specified by:
renderHead in interface IComponentAwareHeaderContributor
Overrides:
renderHead in class AjaxEventBehavior

onEvent

protected void onEvent(AjaxRequestTarget target)
Specified by:
onEvent in class AjaxEventBehavior

onGeoCode

public abstract void onGeoCode(AjaxRequestTarget target,
                               GeocoderStatus status,
                               String address,
                               GLatLng latLng)
Parameters:
target -
status - The status of the client side operation.
address - The address if the status is GeocoderStatus#OK, otherwise- null
latLng - The coordinates if the status is GeocoderStatus#OK, otherwise- null

getCallbackScript

public CharSequence getCallbackScript()
Overrides:
getCallbackScript in class AbstractDefaultAjaxBehavior


Copyright © 2014. All rights reserved.