public abstract class ClickFeatureHandler
extends org.apache.wicket.ajax.AbstractDefaultAjaxBehavior
Modifier and Type | Field and Description |
---|---|
static Long |
counter
Counter for generating instance identifiers.
|
static String |
DEFAULT_PROJECTION
Default projection.
|
Constructor and Description |
---|
ClickFeatureHandler()
Creates a new instance.
|
ClickFeatureHandler(String projection)
Creates a new instance.
|
Modifier and Type | Method and Description |
---|---|
abstract void |
handleClick(org.apache.wicket.ajax.AjaxRequestTarget target,
String featureId,
LongLat longLat,
com.google.gson.JsonObject properties)
Callback for handling mouse clicks on map features.
|
void |
handleClickMiss(org.apache.wicket.ajax.AjaxRequestTarget target,
LongLat longLat)
Callback for handling mouse clicks on the map that do not intersect with features.
|
void |
renderHead(org.apache.wicket.Component component,
org.apache.wicket.markup.head.IHeaderResponse response) |
protected void |
respond(org.apache.wicket.ajax.AjaxRequestTarget target) |
findIndicatorId, getAttributes, getCallbackFunction, getCallbackFunctionBody, getCallbackScript, getCallbackScript, getChannel, getFailureScript, getPreconditionScript, getSuccessScript, onBind, onRequest, postprocessConfiguration, renderAjaxAttributes, renderAjaxAttributes, updateAjaxAttributes
afterRender, bind, getCallbackUrl, getComponent, onComponentRendered, onComponentTag, onComponentTag, onUnbind, unbind
public static final String DEFAULT_PROJECTION
public static Long counter
public ClickFeatureHandler()
public ClickFeatureHandler(String projection)
projection
- The clicked coordinate will be transformed into this projectionpublic abstract void handleClick(org.apache.wicket.ajax.AjaxRequestTarget target, String featureId, LongLat longLat, com.google.gson.JsonObject properties)
target
- Ajax request targetfeatureId
- Unique element ID of the clicked featurelongLat
- Coordinate of the featureproperties
- JsonObject with the clicked feature's propertiespublic void handleClickMiss(org.apache.wicket.ajax.AjaxRequestTarget target, LongLat longLat)
target
- Ajax request targetlongLat
- Coordinate of the clickprotected void respond(org.apache.wicket.ajax.AjaxRequestTarget target)
respond
in class org.apache.wicket.ajax.AbstractDefaultAjaxBehavior
public void renderHead(org.apache.wicket.Component component, org.apache.wicket.markup.head.IHeaderResponse response)
renderHead
in interface org.apache.wicket.markup.html.IComponentAwareHeaderContributor
renderHead
in class org.apache.wicket.ajax.AbstractDefaultAjaxBehavior
Copyright © 2015. All rights reserved.