org.wicketstuff.gmap.api
Class GClientGeocoder
java.lang.Object
org.apache.wicket.behavior.Behavior
org.apache.wicket.behavior.AbstractAjaxBehavior
org.apache.wicket.ajax.AbstractDefaultAjaxBehavior
org.apache.wicket.ajax.AjaxEventBehavior
org.wicketstuff.gmap.api.GClientGeocoder
- All Implemented Interfaces:
- Serializable, IBehaviorListener, IComponentAwareEventSink, IRequestListener, IComponentAwareHeaderContributor, IClusterable
public abstract class GClientGeocoder
- extends AjaxEventBehavior
- See Also:
- Serialized Form
| 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 java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
GClientGeocoder
public GClientGeocoder(String event,
TextField<?> addressField)
- Construct.
- Parameters:
event -
GClientGeocoder
public GClientGeocoder(String event,
TextField<?> addressField,
Duration timeout)
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- nulllatLng - The coordinates if the status is GeocoderStatus#OK, otherwise- null
getCallbackScript
public CharSequence getCallbackScript()
- Overrides:
getCallbackScript in class AbstractDefaultAjaxBehavior
Copyright © 2014. All rights reserved.