home *** CD-ROM | disk | FTP | other *** search
- package org.puremvc.as3.patterns.proxy
- {
- import org.puremvc.as3.interfaces.INotifier;
- import org.puremvc.as3.interfaces.IProxy;
- import org.puremvc.as3.patterns.observer.Notifier;
-
- public class Proxy extends Notifier implements IProxy, INotifier
- {
-
- public static var NAME:String = "Proxy";
-
-
- protected var proxyName:String;
-
- protected var data:Object;
-
- public function Proxy(proxyName:String = null, data:Object = null)
- {
- super();
- this.proxyName = proxyName != null ? proxyName : NAME;
- if(data != null)
- {
- setData(data);
- }
- }
-
- public function getData() : Object
- {
- return data;
- }
-
- public function getProxyName() : String
- {
- return proxyName;
- }
-
- public function setData(data:Object) : void
- {
- this.data = data;
- }
- }
- }
-