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, onBind, onRequest, postprocessConfiguration, renderAjaxAttributes, renderAjaxAttributes, updateAjaxAttributesafterRender, bind, getCallbackUrl, getComponent, onComponentRendered, onComponentTag, onComponentTag, onUnbind, unbindpublic 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.AbstractDefaultAjaxBehaviorpublic void renderHead(org.apache.wicket.Component component,
org.apache.wicket.markup.head.IHeaderResponse response)
renderHead in interface org.apache.wicket.markup.html.IComponentAwareHeaderContributorrenderHead in class org.apache.wicket.ajax.AbstractDefaultAjaxBehaviorCopyright © 2015. All rights reserved.