| Package | com.esri.ags.components |
| Class | public class TemplatePicker |
| Inheritance | TemplatePicker spark.components.supportClasses.SkinnableComponent |
| Since : | ArcGIS API for Flex 2.0 |
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
| Property | Defined By | ||
|---|---|---|---|
| featureLayers : Array
The feature layers from which TemplatePicker will display feature templates. | TemplatePicker | ||
| selectedTemplate : Template
The currently selected feature template. | TemplatePicker | ||
| Method | Defined By | ||
|---|---|---|---|
TemplatePicker(featureLayers:Array = null)
Creates a new TemplatePicker. | TemplatePicker | ||
clearSelection():void
Clears the current selected feature template. | TemplatePicker | ||
| Event | Summary | Defined By | ||
|---|---|---|---|---|
| The selectedTemplateChange event is dispatched when a template is selected(picked) on the TemplatePicker. | TemplatePicker | |||
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.
| featureLayers | property |
featureLayers:ArrayThe feature layers from which TemplatePicker will display feature templates.
public function get featureLayers():Array public function set featureLayers(value:Array):void| selectedTemplate | property |
selectedTemplate:TemplateThe 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.
public function get selectedTemplate():Template public function set selectedTemplate(value:Template):void| TemplatePicker | () | Constructor |
public function TemplatePicker(featureLayers:Array = null)Creates a new TemplatePicker.
ParametersfeatureLayers:Array (default = null) |
| clearSelection | () | method |
public function clearSelection():voidClears the current selected feature template.
| selectedTemplateChange | Event |
com.esri.ags.events.TemplatePickerEventcom.esri.ags.events.TemplatePickerEvent.SELECTED_TEMPLATE_CHANGEThe selectedTemplateChange event is dispatched when a template is selected(picked) on the TemplatePicker.
Defines the value of thetype property of a selectedTemplateChange event object.