Basic implementation of the IMap interface.
Author: Christophe Herreman
Version: $Revision: 21 $, $Date: 2008-11-01 22:58:42 +0100 (za, 01 nov 2008) $, $Author: dmurat $
Since: 0.1
filterFunction:Function [read-write]Implementation
public function get filterFunction():Function
public function set filterFunction(value:Function):void
length:int [read-only]Implementation
public function get length():int
size:uint [read-only]
Returns the number of key/value pairs in the map.
Implementation
public function get size():uint
sort:Sort [read-write]Implementation
public function get sort():Sort
public function set sort(value:Sort):void
values:Array [read-only]
Returns an array of all values in the map. If no values exist in
the map, then an empty Array instance will be returned.
Implementation
public function get values():Array
public function Map()
Constructs a new Map instance.
public function addEventListener(type:String, listener:Function, useCapture:Boolean = false, priority:int = 0, useWeakReference:Boolean = false):voidParameters
| type:String |
| |
| listener:Function |
| |
| useCapture:Boolean (default = false) |
| |
| priority:int (default = 0) |
| |
| useWeakReference:Boolean (default = false) |
public function clear():void
public function contains(item:Object):BooleanParameters
Returns
public function createCursor():IViewCursor
Returns
public function disableAutoUpdate():void
public function dispatchEvent(event:Event):BooleanParameters
Returns
public function enableAutoUpdate():void
public function get(key:Object):*
Parameters
Returns
public function hasEventListener(type:String):BooleanParameters
Returns
public function itemUpdated(item:Object, property:Object = null, oldValue:Object = null, newValue:Object = null):voidParameters
| item:Object |
| |
| property:Object (default = null) |
| |
| oldValue:Object (default = null) |
| |
| newValue:Object (default = null) |
public function put(key:Object, value:Object):void
Adds an object to the map and associates it with the specified key.
Parameters
public function refresh():Boolean
Returns
public function remove(key:Object):*
Removes the mapping for this key from this map if it is present.
Returns the value to which the map previously associated the key,
or null if the map contained no mapping for this key.
(A null return can also indicate that the map previously associated
null with the specified key if the implementation supports null
values.) The map will not contain a mapping for the specified key
once the call returns.
Parameters
| key:Object — the key whose mapping is to be removed from the map
|
Returns
| * — previous value associated with specified key, or null if
there was no mapping for key
|
public function removeEventListener(type:String, listener:Function, useCapture:Boolean = false):voidParameters
| type:String |
| |
| listener:Function |
| |
| useCapture:Boolean (default = false) |
public function toString():String
Returns
| String — String representation of the current Map instance.
|
public function willTrigger(type:String):BooleanParameters
Returns
Event object type: mx.events.CollectionEvent
Dispatched when the Map is changed.
Copyright 2007-2010 Spring Actionscript.