| Package | com.vmware.core.events |
| Class | public class ObjectEvent |
| Inheritance | ObjectEvent flash.events.Event |
| Property | Defined By | ||
|---|---|---|---|
| isWeakReferencingMandatory : Boolean
This property is meaningful only for an objectAdded event and indicates
to the recipients of this event (e.g., platform services) whether they are required
to reference the object through weak-references only. | ObjectEvent | ||
| object : Object [read-only]
The object whose addition or removal from the system is being notified. | ObjectEvent | ||
| Method | Defined By | ||
|---|---|---|---|
ObjectEvent(type:String, object:Object = null, bubbles:Boolean = true)
Initializes an instance of this class. | ObjectEvent | ||
clone():Event [override]
Creates a clone of this event. | ObjectEvent | ||
newAddition(object:Object, useWeakReference:Boolean = false):ObjectEvent [static]
A convenience factory method to create an instance of this class that represents
the removal of an existing object from the system. | ObjectEvent | ||
newRemoval(object:Object):ObjectEvent [static]
A convenience factory method to create an instance of this class that represents
the addition of a new object to the system. | ObjectEvent | ||
| Constant | Defined By | ||
|---|---|---|---|
| OBJECT_ADDED : String = objectAdded [static]
Event type id for notifying the addition of an object to the system. | ObjectEvent | ||
| OBJECT_REMOVED : String = objectRemoved [static]
Event type id for notifying the removal of an object from the system. | ObjectEvent | ||
| isWeakReferencingMandatory | property |
isWeakReferencingMandatory:Boolean
This property is meaningful only for an objectAdded event and indicates
to the recipients of this event (e.g., platform services) whether they are required
to reference the object through weak-references only.
If this flag is set to true, the object should become a candidate for garbage
collection once the client removes all its references to the object; in other words,
the client should never have to raise the objectRemoved event for the
said object. The services that require strong-referencing of the object will not be
provided for this object.
The default value of this property is false.
public function get isWeakReferencingMandatory():Boolean public function set isWeakReferencingMandatory(value:Boolean):void| object | property |
object:Object [read-only] The object whose addition or removal from the system is being notified.
public function get object():Object| ObjectEvent | () | Constructor |
public function ObjectEvent(type:String, object:Object = null, bubbles:Boolean = true)Initializes an instance of this class.
Parameterstype:String — The id for the event.
| |
object:Object (default = null) — Value for the object property.
| |
bubbles:Boolean (default = true) |
| clone | () | method |
override public function clone():EventCreates a clone of this event. All custom events should override this method.
ReturnsEvent —
A clone of this event.
|
| newAddition | () | method |
public static function newAddition(object:Object, useWeakReference:Boolean = false):ObjectEventA convenience factory method to create an instance of this class that represents the removal of an existing object from the system.
Parameters
object:Object | |
useWeakReference:Boolean (default = false) |
ObjectEvent |
| newRemoval | () | method |
public static function newRemoval(object:Object):ObjectEventA convenience factory method to create an instance of this class that represents the addition of a new object to the system.
Parameters
object:Object |
ObjectEvent |
| OBJECT_ADDED | Constant |
public static const OBJECT_ADDED:String = objectAddedEvent type id for notifying the addition of an object to the system.
| OBJECT_REMOVED | Constant |
public static const OBJECT_REMOVED:String = objectRemovedEvent type id for notifying the removal of an object from the system.