Packagecom.gestureworks.cml.core
Classpublic class CMLObjectList
InheritanceCMLObjectList Inheritance com.gestureworks.cml.utils.ChildList

The CMLObjectList class is the master list for all objects created through CML.

It is populated by the CMLParser class. It is a singleton class that can be accessed through the instance method. The class has an iterator and several other cml object selection functions:

     
     // returns object by given id string
     CMLObjectList.instance.getId("my-id");
     
     // returns object by given css class string
     CMLObjectList.instance.getCSSClass("my-css-class");
     
     // returns object by given as3 class
     CMLObjectList.instance.getClass("ImageElement");
     
     

See also

com.gestureworks.cml.core.CMLParser
com.gestureworks.cml.core.CMLDisplay


Public Properties
 PropertyDefined By
  instance : CMLObjectList
[static] [read-only] Singleton accessor
CMLObjectList
Public Methods
 MethodDefined By
  
CMLObjectList(enforcer:SingletonEnforcer)
Constructor allows single instance
CMLObjectList
  
getId(id:String):*
[override] Returns cml object by id value.
CMLObjectList
Property Detail
instanceproperty
instance:CMLObjectList  [read-only]

Singleton accessor


Implementation
    public static function get instance():CMLObjectList
Constructor Detail
CMLObjectList()Constructor
public function CMLObjectList(enforcer:SingletonEnforcer)

Constructor allows single instance

Parameters
enforcer:SingletonEnforcer
Method Detail
getId()method
override public function getId(id:String):*

Returns cml object by id value. Same as: CMLObjectList.instance.getKey(value)

Parameters

id:String — The string cml object id.

Returns
* — object The corresponding display object if found.