public abstract class FeatureChangeListener
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 |
|---|
FeatureChangeListener(Feature feature)
Creates a new instance.
|
FeatureChangeListener(String projection,
Feature feature)
Creates a new instance.
|
| Modifier and Type | Method and Description |
|---|---|
abstract void |
handleChange(org.apache.wicket.ajax.AjaxRequestTarget target,
String featureId,
LongLat longLat,
com.google.gson.JsonObject properties)
Invoked when the feature has been modified.
|
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, unbindbeforeRender, canCallListener, detach, getStatelessHint, isEnabled, isTemporary, onAttribute, onConfigure, onEvent, onException, onRemove, onTagpublic static final String DEFAULT_PROJECTION
public static Long counter
public FeatureChangeListener(Feature feature)
feature - Feature to which we are listeningpublic abstract void handleChange(org.apache.wicket.ajax.AjaxRequestTarget target,
String featureId,
LongLat longLat,
com.google.gson.JsonObject properties)
target - Ajax request targetfeatureId - Element ID of the feature modifiedlongLat - The new coordinate of the modified featureproperties - The properties of the modified featureprotected 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 © 2014–2017. All rights reserved.