public abstract class VectorFeatureDataLoadedListener extends AbstractDefaultAjaxBehavior
| Modifier and Type | Field and Description |
|---|---|
static Long |
counter
Counter for generating instance identifiers.
|
static Map<Object,String> |
objectIds
Map for storing object Ids.
|
Vector |
vector
Vector layer for which we are monitoring the loading of features.
|
INDICATOR| Constructor and Description |
|---|
VectorFeatureDataLoadedListener(Vector vector)
Creates a new instance.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getCallbackFunctionName()
Javascript name of the callback function to invoke when feature data has been loaded into the layer.
|
String |
getId()
Returns a unique ID for this behavior.
|
abstract void |
handleDataLoaded(AjaxRequestTarget target,
com.google.gson.JsonArray features)
Callback method that is invoked when feature data has been loaded into the vector layer.
|
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 Long counter
public Vector vector
public VectorFeatureDataLoadedListener(Vector vector)
vector - The vector layer for which we are monitoring the loading of features.public abstract void handleDataLoaded(AjaxRequestTarget target, com.google.gson.JsonArray features)
target - Ajax request targetfeatures - JsonArray with the list of loaded featurespublic String getCallbackFunctionName()
public String getId()
protected 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.