| Package | org.puremvc.as3.interfaces |
| Interface | public interface IModel |
| Implementors | Model |
In PureMVC, IModel implementors provide
access to IProxy objects by named lookup.
An IModel assumes these responsibilities:
IProxy instancesIProxy instances| Method | Defined by | ||
|---|---|---|---|
|
hasProxy(proxyName:String):Boolean
Check if a Proxy is registered
| IModel | ||
|
registerProxy(proxy:IProxy):void
Register an
IProxy instance with the Model. | IModel | ||
|
removeProxy(proxyName:String):IProxy
Remove an
IProxy instance from the Model. | IModel | ||
|
retrieveProxy(proxyName:String):IProxy
Retrieve an
IProxy instance from the Model. | IModel | ||
| hasProxy | () | method |
public function hasProxy(proxyName:String):BooleanCheck if a Proxy is registered
ParametersproxyName:String |
Boolean — whether a Proxy is currently registered with the given proxyName.
|
| registerProxy | () | method |
public function registerProxy(proxy:IProxy):void
Register an IProxy instance with the Model.
proxy:IProxy — the name to associate with this IProxy instance.
|
| removeProxy | () | method |
public function removeProxy(proxyName:String):IProxy
Remove an IProxy instance from the Model.
proxyName:String — name of the IProxy instance to be removed.
|
IProxy —
the IProxy that was removed from the Model
|
| retrieveProxy | () | method |
public function retrieveProxy(proxyName:String):IProxy
Retrieve an IProxy instance from the Model.
proxyName:String |
IProxy —
the IProxy instance previously registered with the given proxyName.
|