Packagecom.esri.ags.components
Classpublic class TemplatePicker
InheritanceTemplatePicker Inheritance spark.components.supportClasses.SkinnableComponent

Since : ArcGIS API for Flex 2.0

The TemplatePicker displays feature templates from one or more FeatureLayer from which users can select one feature template. Can be used together with DrawTool to allow creation of new features.

Click a feature template to select it, click it again to unselect it. To unselect it, you can also click anywhere on the empty space of the template picker.

Limitations/Quirks:

See also

Live sample - testing TemplatePicker


Public Properties
 PropertyDefined By
  featureLayers : Array
The feature layers from which TemplatePicker will display feature templates.
TemplatePicker
  selectedTemplate : Template
The currently selected feature template.
TemplatePicker
Public Methods
 MethodDefined By
  
TemplatePicker(featureLayers:Array = null)
Creates a new TemplatePicker.
TemplatePicker
  
Clears the current selected feature template.
TemplatePicker
Events
 Event Summary Defined By
  The selectedTemplateChange event is dispatched when a template is selected(picked) on the TemplatePicker.TemplatePicker
Skin States

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.


 Skin State Description Defined By
  
disabled
The disabled state of the TemplatePicker component. TemplatePicker
  
loading
The loading state of the TemplatePicker component. TemplatePicker
  
normal
The default (i.e., "normal") state of the TemplatePicker component. TemplatePicker
Property Detail
featureLayersproperty
featureLayers:Array

The feature layers from which TemplatePicker will display feature templates.


Implementation
    public function get featureLayers():Array
    public function set featureLayers(value:Array):void
selectedTemplateproperty 
selectedTemplate:Template

The currently selected feature template. Commonly used in combination with DrawTool to create new features based on the selected feature template.

This property can be used as the source for data binding.


Implementation
    public function get selectedTemplate():Template
    public function set selectedTemplate(value:Template):void
Constructor Detail
TemplatePicker()Constructor
public function TemplatePicker(featureLayers:Array = null)

Creates a new TemplatePicker.

Parameters
featureLayers:Array (default = null)
Method Detail
clearSelection()method
public function clearSelection():void

Clears the current selected feature template.

Event Detail
selectedTemplateChange Event
Event Object Type: com.esri.ags.events.TemplatePickerEvent
TemplatePickerEvent.type property = com.esri.ags.events.TemplatePickerEvent.SELECTED_TEMPLATE_CHANGE

The selectedTemplateChange event is dispatched when a template is selected(picked) on the TemplatePicker.

Defines the value of the type property of a selectedTemplateChange event object.