Packagenet.systemeD.potlatch2.mapfeatures
Classpublic class Category
InheritanceCategory Inheritance flash.events.EventDispatcher

A Category is a (non-exclusive) grouping of related Features used to help the user find the map feature they are interested in using.



Public Properties
 PropertyDefined by
  features : Array
[read-only]
Category
  id : String
[read-only]
Category
  index : uint
[read-only]
Category
  name : String
[read-only]
Category
Public Methods
 MethodDefined by
  
Category(mapFeatures:MapFeatures, name:String, id:String, globalIndex:uint)
Category
  
getFeaturesForType(type:String, onlydnd:Boolean = false):Array
Get an array of all features in this category that have the requested type, or possibly empty list.
Category
Property detail
featuresproperty
features:Array  [read-only]

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

Implementation
    public function get features():Array
idproperty 
id:String  [read-only]Implementation
    public function get id():String
indexproperty 
index:uint  [read-only]Implementation
    public function get index():uint
nameproperty 
name:String  [read-only]

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

Implementation
    public function get name():String
Constructor detail
Category()constructor
public function Category(mapFeatures:MapFeatures, name:String, id:String, globalIndex:uint)Parameters
mapFeatures:MapFeatures
 
name:String
 
id:String
 
globalIndex:uint
Method detail
getFeaturesForType()method
public function getFeaturesForType(type:String, onlydnd:Boolean = false):Array

Get an array of all features in this category that have the requested type, or possibly empty list.

Parameters
type:String
 
onlydnd:Boolean (default = false)

Returns
Array