public abstract class FeatureChangeListener 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 |
|---|
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(AjaxRequestTarget target,
String featureId,
LongLat longLat,
com.google.gson.JsonObject properties)
Invoked when the feature has been modified.
|
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 FeatureChangeListener(Feature feature)
feature - Feature to which we are listeningpublic abstract void handleChange(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(AjaxRequestTarget target)
respond in class AbstractDefaultAjaxBehaviorpublic void renderHead(Component component, IHeaderResponse response)
renderHead in interface IComponentAwareHeaderContributorrenderHead in class AbstractDefaultAjaxBehaviorCopyright © 2014–2018. All rights reserved.