public abstract class ClickFeatureHandler extends AbstractDefaultAjaxBehavior
| Modifier and Type | Field and Description |
|---|---|
static Long |
counter
Counter for generating instance identifiers.
|
static String |
DEFAULT_PROJECTION
Default projection.
|
INDICATOR| Constructor and Description |
|---|
ClickFeatureHandler()
Creates a new instance.
|
ClickFeatureHandler(String projection)
Creates a new instance.
|
| Modifier and Type | Method and Description |
|---|---|
abstract void |
handleClick(AjaxRequestTarget target,
String featureId,
LongLat longLat,
com.google.gson.JsonObject properties)
Callback for handling mouse clicks on map features.
|
void |
handleClickMiss(AjaxRequestTarget target,
LongLat longLat)
Callback for handling mouse clicks on the map that do not intersect with features.
|
void |
renderHead(Component component,
IHeaderResponse response) |
protected void |
respond(AjaxRequestTarget target) |
findIndicatorId, getAttributes, getCallbackFunction, getCallbackFunctionBody, getCallbackScript, getCallbackScript, onBind, onRequest, postprocessConfiguration, renderAjaxAttributes, renderAjaxAttributes, updateAjaxAttributesafterRender, bind, getCallbackUrl, getComponent, onComponentRendered, onComponentTag, onComponentTag, onUnbind, unbindbeforeRender, canCallListener, detach, getStatelessHint, isEnabled, isTemporary, onAttribute, onConfigure, onEvent, onException, onRemove, onTagclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitrendersPagepublic 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(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(AjaxRequestTarget target, LongLat longLat)
target - Ajax request targetlongLat - Coordinate of the clickprotected void respond(AjaxRequestTarget target)
respond in class AbstractDefaultAjaxBehaviorpublic void renderHead(Component component, IHeaderResponse response)
renderHead in interface IComponentAwareHeaderContributorrenderHead in class AbstractDefaultAjaxBehaviorCopyright © 2014–2018. All rights reserved.