Packageorg.springextensions.actionscript.domain
SVN browsingEntity.as
FisheyeEntity.as
Classpublic class Entity
InheritanceEntity Inheritance BaseObject
Implementsflash.events.IEventDispatcher, IEntity
SubclassesManagedEntity, NamedEntity

Entity acts as a base domain object for objects that hold a unique identity throughout their lifetime. This identity is presented by the "id" property in each entity.

Author: Christophe Herreman
Version: $Revision: 21 $, $Date: 2008-11-01 22:58:42 +0100 (za, 01 nov 2008) $, $Author: dmurat $
Since: 0.1



Public Properties
 PropertyDefined by
 InheritedapplicationDomain : ApplicationDomain
BaseObject
  id : *
Returns the id of the entity.
Entity
Public Methods
 MethodDefined by
  
Entity(id:* = -1)
Creates a new Entity.
Entity
  
addEventListener(type:String, listener:Function, useCapture:Boolean = false, priority:int = 0, useWeakReference:Boolean = false):void
Entity
 Inherited
clone():*
Clones this object.
BaseObject
 Inherited
copyFrom(other:*):void
Copies all properties from the given object into this object.
BaseObject
  
dispatchEvent(event:Event):Boolean
Entity
 Inherited
equals(other:Object):Boolean
BaseObject
  
Checks for equality without looking at the id of the object.
Entity
  
hasEventListener(type:String):Boolean
Entity
  
removeEventListener(type:String, listener:Function, useCapture:Boolean = false):void
Entity
  
willTrigger(type:String):Boolean
Entity
Protected Methods
 MethodDefined by
 Inherited
cloneField(name:String, other:*):void
Clones a single field.
BaseObject
 Inherited
clonePropertyValue(value:*, name:String = ""):*
Clones the value of a property/field.
BaseObject
 Inherited
doEquals(other:*, ignoredProperties:Array):Boolean
BaseObject
Protected Constants
 ConstantDefined by
 InheritedPROPERTY_PROTOTOYPE : String = "prototype"
[static]
BaseObject
Property detail
idproperty
id:*  [read-write]

Returns the id of the entity.

This property can be used as the source for data binding.

Implementation
    public function get id():*
    public function set id(value:*):void
Constructor detail
Entity()constructor
public function Entity(id:* = -1)

Creates a new Entity. If no id was passed to the constructor, -1 will be used.

Parameters
id:* (default = -1) — the id of this entity
Method detail
addEventListener()method
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)
dispatchEvent()method 
public function dispatchEvent(event:Event):BooleanParameters
event:Event

Returns
Boolean
equalsWithoutIdentity()method 
public function equalsWithoutIdentity(other:IEntity):Boolean

Checks for equality without looking at the id of the object.

Parameters
other:IEntity

Returns
Boolean
hasEventListener()method 
public function hasEventListener(type:String):BooleanParameters
type:String

Returns
Boolean
removeEventListener()method 
public function removeEventListener(type:String, listener:Function, useCapture:Boolean = false):voidParameters
type:String
 
listener:Function
 
useCapture:Boolean (default = false)
willTrigger()method 
public function willTrigger(type:String):BooleanParameters
type:String

Returns
Boolean