| Package | com.esri.ags.components |
| Class | public class AttachmentInspector |
| Inheritance | AttachmentInspector spark.components.supportClasses.SkinnableComponent |
| Since : | ArcGIS API for Flex 2.0 |
See also
| Property | Defined By | ||
|---|---|---|---|
| addEnabled : Boolean
If true, allows adding attachments. | AttachmentInspector | ||
| attachmentInfos : IList
List of AttachmentInfo instances. | AttachmentInspector | ||
| attachmentName : String
The selected attachment name after browse and select. | AttachmentInspector | ||
| attachmentSize : Number
The selected attachment size after browse and select. | AttachmentInspector | ||
| deleteEnabled : Boolean
If true, allows deleting attachments. | AttachmentInspector | ||
| feature : Graphic
Reference to the active feature. | AttachmentInspector | ||
| featureLayer : FeatureLayer [read-only]
Reference to active feature layer. | AttachmentInspector | ||
| infoWindowLabel : String
Set the label on the info window. | AttachmentInspector | ||
| Method | Defined By | ||
|---|---|---|---|
Creates a new AttachmentInspector. | AttachmentInspector | ||
clear():void
Clear the inspector. | AttachmentInspector | ||
refresh():void
Refreshes the AttachmentInspector. | AttachmentInspector | ||
Show the feature attachments. | AttachmentInspector | ||
| Event | Summary | Defined By | ||
|---|---|---|---|---|
| Fires after adding an attachment. | AttachmentInspector | |||
| Fires after deleting an attachment. | AttachmentInspector | |||
| Fires after failing to add an attachment, deleting an attachment or querying attachments. | AttachmentInspector | |||
| Fires it cannot load selected file to upload. | AttachmentInspector | |||
| Fires after querying attachment infos. | AttachmentInspector | |||
| Fires after apply edits result. | AttachmentInspector | |||
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.
| addEnabled | property |
addEnabled:Boolean| Since : | ArcGIS API for Flex 2.3 |
If true, allows adding attachments.
The default value is true.
This property can be used as the source for data binding.
public function get addEnabled():Boolean public function set addEnabled(value:Boolean):void| attachmentInfos | property |
attachmentInfos:IList
List of AttachmentInfo instances.
This property can be used as the source for data binding.
public function get attachmentInfos():IList public function set attachmentInfos(value:IList):void| attachmentName | property |
attachmentName:StringThe selected attachment name after browse and select.
This property can be used as the source for data binding.
public function get attachmentName():String public function set attachmentName(value:String):void| attachmentSize | property |
attachmentSize:NumberThe selected attachment size after browse and select.
This property can be used as the source for data binding.
public function get attachmentSize():Number public function set attachmentSize(value:Number):void| deleteEnabled | property |
deleteEnabled:Boolean| Since : | ArcGIS API for Flex 2.1 |
If true, allows deleting attachments.
The default value is true.
This property can be used as the source for data binding.
public function get deleteEnabled():Boolean public function set deleteEnabled(value:Boolean):void| feature | property |
feature:GraphicReference to the active feature.
This property can be used as the source for data binding.
public function get feature():Graphic public function set feature(value:Graphic):void| featureLayer | property |
featureLayer:FeatureLayer [read-only] Reference to active feature layer.
This property can be used as the source for data binding.
public function get featureLayer():FeatureLayer| 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| AttachmentInspector | () | Constructor |
public function AttachmentInspector()Creates a new AttachmentInspector.
| clear | () | method |
public function clear():voidClear the inspector.
Here we reset all the attachment information like the name and size, the attachment info list is emptied and the skin state is reset back to 'normal'.
| refresh | () | method |
public function refresh():voidRefreshes the AttachmentInspector. This is same as invoking showAttachments but with the privately held reference to the feature and feature layer.
| showAttachments | () | method |
public function showAttachments(feature:Graphic, featureLayer:FeatureLayer = null):voidShow the feature attachments. If the attchments are successfully loaded, then an EDITS_COMPLETE handler is attached to the feature layer to listen for deleted feature. If one of the deleted features is the shown feature, then the inspector is cleared.
Parameters
feature:Graphic — The feature to show its attachments.
| |
featureLayer:FeatureLayer (default = null) — Optional feature layer reference.
|
| addAttachmentComplete | Event |
com.esri.ags.events.AttachmentEventcom.esri.ags.events.AttachmentEventFires after adding an attachment.
| deleteAttachmentsComplete | Event |
com.esri.ags.events.AttachmentEventcom.esri.ags.events.AttachmentEventFires after deleting an attachment.
| fault | Event |
mx.rpc.events.FaultEventmx.rpc.events.FaultEvent.FAULTFires after failing to add an attachment, deleting an attachment or querying attachments. Check fault code, string or detail for more information.
| ioError | Event |
flash.events.IOErrorEventflash.events.IOErrorEvent.IO_ERRORFires it cannot load selected file to upload.
| queryAttachmentInfosComplete | Event |
com.esri.ags.events.AttachmentEventcom.esri.ags.events.AttachmentEventFires after querying attachment infos.
| result | Event |
mx.rpc.events.ResultEventmx.rpc.events.ResultEvent.RESULTFires after apply edits result.