Sha256: c881fa81cda2b8e175fbd62634ca0be19a74a4a106bdcfee3977aff9ae070286
Contents?: true
Size: 873 Bytes
Versions: 2
Compression:
Stored size: 873 Bytes
Contents
package <%= base_package%>.shell.model { import mx.collections.ArrayCollection; import org.puremvc.as3.multicore.utilities.fabrication.patterns.proxy.FabricationProxy; public class SelectionProxy extends FabricationProxy { static public const NAME:String = "SelectionProxy"; static public const SELECTION_CHANGED:String = "selectionChanged"; public function SelectionProxy(name:String = NAME, _selection:ArrayCollection = null) { super(name, _selection != null ? _selection : new ArrayCollection()); } public function changeSelection(newSelection:Object):Boolean { if (selection != newSelection) { setData(newSelection); sendNotification(SELECTION_CHANGED, newSelection); return true; } else { return false; } } public function get selection():Object { return data; } } }
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
fabricator-0.0.1 | app_generators/pureapp/templates/shell/model/selection_proxy.as |
fabricator-0.0.5 | app_generators/pureapp/templates/shell/model/selection_proxy.as |