Packagecom.threerings.util
Classpublic class MapProxyObject
InheritanceMapProxyObject Inheritance flash.utils.Proxy

Makes a Map behave like an object. Iterations are done in the order of the keys returned by the Map's keys() function. Warning: "for" loops convert all keys to Strings, due to limitations with Proxy.



Protected Properties
 PropertyDefined by
  _itrKeys : Array
A temporary ordering for iteration.
MapProxyObject
  _map : Map
The map we use for storage.
MapProxyObject
Public Methods
 MethodDefined by
  
Construct a MapProxyObject backed by the specified Map.
MapProxyObject
Protected Methods
 MethodDefined by
  
deleteProperty(key:*):Boolean
Handle delete proxy[key].
MapProxyObject
  
getProperty(key:*):*
Handle value = proxy[key].
MapProxyObject
  
nextName(index:int):String
Used when iterating with a "for" loop.
MapProxyObject
  
nextNameIndex(index:int):int
Iteration support.
MapProxyObject
  
nextValue(index:int):*
Used when iterating with a "for each" loop.
MapProxyObject
  
setProperty(key:*, value:*):void
Handle proxy[key] = value.
MapProxyObject
Property detail
_itrKeysproperty
protected var _itrKeys:Array

A temporary ordering for iteration.

_mapproperty 
protected var _map:Map

The map we use for storage.

Constructor detail
MapProxyObject()constructor
public function MapProxyObject(source:Map)

Construct a MapProxyObject backed by the specified Map.

Parameters
source:Map
Method detail
deleteProperty()method
flash_proxy override function deleteProperty(key:*):Boolean

Handle delete proxy[key].

Parameters
key:*

Returns
Boolean
getProperty()method 
flash_proxy override function getProperty(key:*):*

Handle value = proxy[key].

Parameters
key:*

Returns
*
nextName()method 
flash_proxy override function nextName(index:int):String

Used when iterating with a "for" loop. Note well that keys are turned into Strings. This is a major failing.

Parameters
index:int

Returns
String
nextNameIndex()method 
flash_proxy override function nextNameIndex(index:int):int

Iteration support.

Parameters
index:int

Returns
int
nextValue()method 
flash_proxy override function nextValue(index:int):*

Used when iterating with a "for each" loop.

Parameters
index:int

Returns
*
setProperty()method 
flash_proxy override function setProperty(key:*, value:*):void

Handle proxy[key] = value.

Parameters
key:*
 
value:*