Packageorg.servebox.foundry.model
Classpublic class AbstractModel
InheritanceAbstractModel Inheritance flash.events.EventDispatcher
ImplementsIObservable
SubclassesACLManager, GlobalizationDictionary

AbstractModel is used as data model base and it implements notification/observation mechanisms.



Protected Properties
 PropertyDefined by
  logger : ILogger
[static] The class logger.
AbstractModel
Public Methods
 MethodDefined by
  
Notifies all observers that the model has changed.
AbstractModel
  
registerObserver(o:IObserver, notificationFilters:Array = null):void
Refisters an observer to the model.
AbstractModel
  
Unregisters an observer from the model.
AbstractModel
Property detail
loggerproperty
protected static var logger:ILogger

The class logger.

Method detail
notifyObservers()method
public function notifyObservers(n:Notification):void

Notifies all observers that the model has changed.

Parameters
n:Notification
registerObserver()method 
public function registerObserver(o:IObserver, notificationFilters:Array = null):void

Refisters an observer to the model.

Parameters
o:IObserver — an array of Notification types, used to filter which notifications Observer instances should be notified of.
 
notificationFilters:Array (default = null)
unregisterObserver()method 
public function unregisterObserver(o:IObserver):void

Unregisters an observer from the model.

Parameters
o:IObserver