Packagecom.esri.ags.events
Classpublic class FeatureLayerEvent
InheritanceFeatureLayerEvent Inheritance flash.events.Event

Since : ArcGIS API for Flex 2.0

Represents event objects that are specific to FeatureLayer and FeatureLayerTask.

See also

com.esri.ags.layers.FeatureLayer
com.esri.ags.tasks.FeatureLayerTask
Live sample - Using FeatureLayer and graphicAdd


Public Properties
 PropertyDefined By
  adds : Array
Array of features passed to applyEdits.
FeatureLayerEvent
  count : Number
The count returned by queryCount() in FeatureLayer.
FeatureLayerEvent
  deletes : Array
Array of features passed to applyEdits.
FeatureLayerEvent
  featureEditResults : FeatureEditResults
The results returned by applyEdits() in FeatureLayer and FeatureLayerTask.
FeatureLayerEvent
  featureLayer : FeatureLayer
Reference to the associated FeatureLayer.
FeatureLayerEvent
  features : Array
The features selected or unselected by selectFeatures() and clearSelection() in FeatureLayer.
FeatureLayerEvent
  featureSet : FeatureSet
The feature set returned by queryFeatures() in FeatureLayer.
FeatureLayerEvent
  objectIds : Array
The object ids returned by queryIds() in FeatureLayer.
FeatureLayerEvent
  relatedRecords : Object
The object returned by queryRelatedFeatures() in FeatureLayer.
FeatureLayerEvent
  selectionMethod : String
The selection method used when calling selectFeatures() in FeatureLayer.
FeatureLayerEvent
  updates : Array
Array of features passed to applyEdits.
FeatureLayerEvent
Public Methods
 MethodDefined By
  
FeatureLayerEvent(type:String, featureLayer:FeatureLayer = null, cancelable:Boolean = false)
Creates a new FeatureLayerEvent.
FeatureLayerEvent
Public Constants
 ConstantDefined By
  EDITS_COMPLETE : String = editsComplete
[static] Defines the value of the type property of the event object for a editsComplete event.
FeatureLayerEvent
  EDITS_STARTING : String = editsStarting
[static] Defines the value of the type property of the event object for a editsStarting event.
FeatureLayerEvent
  QUERY_COUNT_COMPLETE : String = queryCountComplete
[static] Defines the value of the type property of the event object for a queryCountComplete event.
FeatureLayerEvent
  QUERY_FEATURES_COMPLETE : String = queryFeaturesComplete
[static] Defines the value of the type property of the event object for a queryFeaturesComplete event.
FeatureLayerEvent
  QUERY_IDS_COMPLETE : String = queryIdsComplete
[static] Defines the value of the type property of the event object for a queryIdsComplete event.
FeatureLayerEvent
  QUERY_RELATED_FEATURES_COMPLETE : String = queryRelatedFeaturesComplete
[static] Defines the value of the type property of the event object for a queryRelatedFeaturesComplete event.
FeatureLayerEvent
  SELECTION_CLEAR : String = selectionClear
[static] Defines the value of the type property of the event object for a selectionClear event.
FeatureLayerEvent
  SELECTION_COMPLETE : String = selectionComplete
[static] Defines the value of the type property of the event object for a selectionComplete event.
FeatureLayerEvent
Property Detail
addsproperty
public var adds:Array

Array of features passed to applyEdits. Valid for editsStarting events.

countproperty 
public var count:Number

Since : ArcGIS API for Flex 2.2

The count returned by queryCount() in FeatureLayer. Only works if the service is running on ArcGIS Server 10.0 Service Pack 1 or higher. Returns NaN for earlier versions.

deletesproperty 
public var deletes:Array

Array of features passed to applyEdits. Valid for editsStarting events.

featureEditResultsproperty 
public var featureEditResults:FeatureEditResults

The results returned by applyEdits() in FeatureLayer and FeatureLayerTask.

featureLayerproperty 
public var featureLayer:FeatureLayer

Reference to the associated FeatureLayer. Null when event is dispatched from FeatureLayerTask.

featuresproperty 
public var features:Array

The features selected or unselected by selectFeatures() and clearSelection() in FeatureLayer.

See also

featureSetproperty 
public var featureSet:FeatureSet

The feature set returned by queryFeatures() in FeatureLayer.

objectIdsproperty 
public var objectIds:Array

The object ids returned by queryIds() in FeatureLayer.

relatedRecordsproperty 
public var relatedRecords:Object

The object returned by queryRelatedFeatures() in FeatureLayer.

See also

selectionMethodproperty 
public var selectionMethod:String

The selection method used when calling selectFeatures() in FeatureLayer.

updatesproperty 
public var updates:Array

Array of features passed to applyEdits. Valid for editsStarting events.

Constructor Detail
FeatureLayerEvent()Constructor
public function FeatureLayerEvent(type:String, featureLayer:FeatureLayer = null, cancelable:Boolean = false)

Creates a new FeatureLayerEvent.

Parameters
type:String — The event type; indicates the action that triggered the event.
 
featureLayer:FeatureLayer (default = null) — Reference to the associated layer.
 
cancelable:Boolean (default = false) — Specifies whether the behavior associated with the event can be prevented.
Constant Detail
EDITS_COMPLETEConstant
public static const EDITS_COMPLETE:String = editsComplete

Defines the value of the type property of the event object for a editsComplete event.

EDITS_STARTINGConstant 
public static const EDITS_STARTING:String = editsStarting

Defines the value of the type property of the event object for a editsStarting event.

QUERY_COUNT_COMPLETEConstant 
public static const QUERY_COUNT_COMPLETE:String = queryCountComplete

Defines the value of the type property of the event object for a queryCountComplete event.

QUERY_FEATURES_COMPLETEConstant 
public static const QUERY_FEATURES_COMPLETE:String = queryFeaturesComplete

Defines the value of the type property of the event object for a queryFeaturesComplete event.

QUERY_IDS_COMPLETEConstant 
public static const QUERY_IDS_COMPLETE:String = queryIdsComplete

Defines the value of the type property of the event object for a queryIdsComplete event.

QUERY_RELATED_FEATURES_COMPLETEConstant 
public static const QUERY_RELATED_FEATURES_COMPLETE:String = queryRelatedFeaturesComplete

Defines the value of the type property of the event object for a queryRelatedFeaturesComplete event.

SELECTION_CLEARConstant 
public static const SELECTION_CLEAR:String = selectionClear

Defines the value of the type property of the event object for a selectionClear event.

SELECTION_COMPLETEConstant 
public static const SELECTION_COMPLETE:String = selectionComplete

Defines the value of the type property of the event object for a selectionComplete event.