| Package | com.esri.ags.components |
| Class | public class AttributeInspector |
| Inheritance | AttributeInspector spark.components.supportClasses.SkinnableComponent |
| Since : | ArcGIS API for Flex 2.0 |
Default MXML PropertyfieldInspectors
See also
| Property | Defined By | ||
|---|---|---|---|
| activeFeature : Graphic [read-only]
The feature currently shown in the AttributeInspector. | AttributeInspector | ||
| activeFeatureIndex : int
The index of the selected feature. | AttributeInspector | ||
| deleteButtonVisible : Boolean
If true, displays the "delete" button. | AttributeInspector | ||
| featureLayers : Array
Array of FeatureLayer instances. | AttributeInspector | ||
| fieldInspectors : Array
Array of FieldInspector instances. | AttributeInspector | ||
| formItemsOrder : String
The order of the form items. | AttributeInspector | ||
| infoWindowLabel : String
Set the label on the info window. | AttributeInspector | ||
| numFeatures : int [read-only]
The number of features. | AttributeInspector | ||
| showGlobalID : Boolean
Flag to show or hide the global id field. | AttributeInspector | ||
| showObjectID : Boolean
Flag to show or hide the object id field. | AttributeInspector | ||
| singleToMultilineThreshold : Number
The maximum number of characters to display as a single line text input component, otherwise display as a multiline text area. | AttributeInspector | ||
| updateEnabled : Boolean
If true, allows updating the attribute values. | AttributeInspector | ||
| Method | Defined By | ||
|---|---|---|---|
AttributeInspector(featureLayers:Array = null)
Creates a new AttributeInspector. | AttributeInspector | ||
deleteActiveFeature():void
Delete the selected feature. | AttributeInspector | ||
next():void
Show the next available feature. | AttributeInspector | ||
previous():void
Show the previous available feature. | AttributeInspector | ||
refresh():void
Load all selected features from all defined feature layers. | AttributeInspector | ||
refreshActiveFeature():void
Refresh the form to show the attributes of the currently selected feature. | AttributeInspector | ||
| Method | Defined By | ||
|---|---|---|---|
createFormItemComponent(featureLayer:FeatureLayer, field:Field, fieldInspector:FieldInspector, fieldValue:Object):UIComponent
Create a UI component to render a field value in the selected feature. | AttributeInspector | ||
Gets the form item label. | AttributeInspector | ||
setFormItemValue(formItem:FormItem, feature:Graphic):void
Set the form item value. | AttributeInspector | ||
| Event | Summary | Defined By | ||
|---|---|---|---|---|
| Fires when a feature is deleted. | AttributeInspector | |||
| Fires when a feature attribute is shown. | AttributeInspector | |||
| Fires when a feature attribute is updated. | AttributeInspector | |||
| Style | Description | Defined By | ||
|---|---|---|---|---|
formMaxHeight | Type: Number Format: Length CSS Inheritance: no The form max height in pixels. The default value is 400 pixels. | AttributeInspector | ||
This component uses skins made up of skin parts. Do not set the skin parts directly. The component's skin sets the skin parts.
To skin the component, implement a skin that defines the following states. Although you must implement all skin states, a skin state can be empty. An empty skin state specifies no changes to the default skin state.
| activeFeature | property |
activeFeature:Graphic [read-only] The feature currently shown in the AttributeInspector.
This property can be used as the source for data binding.
public function get activeFeature():Graphic| activeFeatureIndex | property |
activeFeatureIndex:intThe index of the selected feature.
This property can be used as the source for data binding.
public function get activeFeatureIndex():int public function set activeFeatureIndex(value:int):void| deleteButtonVisible | property |
deleteButtonVisible:Boolean| Since : | ArcGIS API for Flex 2.1 |
If true, displays the "delete" button.
The default value is true.
This property can be used as the source for data binding.
public function get deleteButtonVisible():Boolean public function set deleteButtonVisible(value:Boolean):void| featureLayers | property |
featureLayers:Array
Array of FeatureLayer instances.
This property can be used as the source for data binding.
public function get featureLayers():Array public function set featureLayers(value:Array):void| fieldInspectors | property |
fieldInspectors:Array
Array of FieldInspector instances.
This property can be used as the source for data binding.
public function get fieldInspectors():Array public function set fieldInspectors(value:Array):voidSee also
| formItemsOrder | property |
formItemsOrder:StringThe order of the form items. Possible values are "none" (no order), "label" (order by label value) and "fieldInspector" (order by the field inspector definition sequence).
The default value is label.
This property can be used as the source for data binding.
public function get formItemsOrder():String public function set formItemsOrder(value:String):voidSee also
| infoWindowLabel | property |
infoWindowLabel:String| Since : | ArcGIS API for Flex 2.3 |
Set the label on the info window.
The default value is null.
This property can be used as the source for data binding.
public function get infoWindowLabel():String public function set infoWindowLabel(value:String):void| numFeatures | property |
numFeatures:int [read-only] The number of features.
This property can be used as the source for data binding.
public function get numFeatures():int| showGlobalID | property |
showGlobalID:BooleanFlag to show or hide the global id field.
The default value is false.
This property can be used as the source for data binding.
public function get showGlobalID():Boolean public function set showGlobalID(value:Boolean):void| showObjectID | property |
showObjectID:BooleanFlag to show or hide the object id field.
The default value is false.
This property can be used as the source for data binding.
public function get showObjectID():Boolean public function set showObjectID(value:Boolean):void| singleToMultilineThreshold | property |
singleToMultilineThreshold:Number| Since : | ArcGIS API for Flex 2.1 |
The maximum number of characters to display as a single line text input component, otherwise display as a multiline text area. This number is compared to the length of the string field.
The default value is 40.
This property can be used as the source for data binding.
public function get singleToMultilineThreshold():Number public function set singleToMultilineThreshold(value:Number):void| updateEnabled | property |
updateEnabled:Boolean| Since : | ArcGIS API for Flex 2.3 |
If true, allows updating the attribute values.
The default value is true.
This property can be used as the source for data binding.
public function get updateEnabled():Boolean public function set updateEnabled(value:Boolean):void| AttributeInspector | () | Constructor |
public function AttributeInspector(featureLayers:Array = null)Creates a new AttributeInspector.
ParametersfeatureLayers:Array (default = null) — Array of feature layers.
|
| createFormItemComponent | () | method |
protected function createFormItemComponent(featureLayer:FeatureLayer, field:Field, fieldInspector:FieldInspector, fieldValue:Object):UIComponentCreate a UI component to render a field value in the selected feature.
Parameters
featureLayer:FeatureLayer — The selected feature layer.
| |
field:Field — The Field associated with this attribute.
| |
fieldInspector:FieldInspector — The associated field inspector - could be null.
| |
fieldValue:Object — The field value to render.
|
UIComponent |
| deleteActiveFeature | () | method |
public function deleteActiveFeature():voidDelete the selected feature.
| getFormItemLabel | () | method |
protected function getFormItemLabel(featureLayer:FeatureLayer, field:Field, fieldInspector:FieldInspector):StringGets the form item label. If the field has an alias then it will be used as a label, otherwise the field name will be used.
Parameters
featureLayer:FeatureLayer — The selected feature layer.
| |
field:Field — The selected field.
| |
fieldInspector:FieldInspector — An associated field inspector - could be null.
|
String |
| next | () | method |
public function next():voidShow the next available feature.
| previous | () | method |
public function previous():voidShow the previous available feature.
| refresh | () | method |
public function refresh():voidLoad all selected features from all defined feature layers. Normally, you will not need to use this method as the AttributeInspector tries to be smart enough.
| refreshActiveFeature | () | method |
public function refreshActiveFeature():voidRefresh the form to show the attributes of the currently selected feature.
| setFormItemValue | () | method |
protected function setFormItemValue(formItem:FormItem, feature:Graphic):voidSet the form item value.
Parameters
formItem:FormItem — The form item to set.
| |
feature:Graphic — The selected feature.
|
| deleteFeature | Event |
com.esri.ags.events.AttributeInspectorEventcom.esri.ags.events.AttributeInspectorEvent.DELETE_FEATUREFires when a feature is deleted.
Defines the value of thetype property of the event object for a deleteFeature event.
| showFeature | Event |
com.esri.ags.events.AttributeInspectorEventcom.esri.ags.events.AttributeInspectorEvent.SHOW_FEATUREFires when a feature attribute is shown.
Defines the value of thetype property of the event object for a showFeature event.
| updateFeature | Event |
com.esri.ags.events.AttributeInspectorEventcom.esri.ags.events.AttributeInspectorEvent.UPDATE_FEATUREFires when a feature attribute is updated.
Defines the value of thetype property of the event object for a updateFeature event.