| Package | mx.data.utils |
| Class | public class Managed |
| Inheritance | Managed Object |
[Managed] class metadata tag.
| Method | Defined by | ||
|---|---|---|---|
|
[static]
| Managed | ||
|
[static]
Returns the destination the specified object is associated with.
| Managed | ||
|
[static]
This method is used to retreive the a property from a managed object.
| Managed | ||
![]() |
Indicates whether an object has a specified property defined.
| Object | |
![]() |
Indicates whether an instance of the Object class is in the prototype chain of the object specified
as the parameter.
| Object | |
![]() |
Indicates whether the specified property exists and is enumerable.
| Object | |
|
[static]
This method is used to set the property of a managed object.
| Managed | ||
![]() |
Sets the availability of a dynamic property for loop operations.
| Object | |
![]() |
Returns the string representation of the specified object.
| Object | |
![]() |
Returns the primitive value of the specified object.
| Object | |
| createUpdateEvent | () | method |
public static function createUpdateEvent(obj:IManaged, property:Object, event:PropertyChangeEvent):PropertyChangeEventParameters
obj:IManaged |
|
property:Object |
|
event:PropertyChangeEvent |
PropertyChangeEvent |
| getDestination | () | method |
public static function getDestination(obj:Object):StringReturns the destination the specified object is associated with.
Parametersobj:Object — Object reference to the item to get the destination from.
|
String |
| getProperty | () | method |
public static function getProperty(obj:IManaged, property:String, value:*):*This method is used to retreive the a property from a managed object. In addition to returning the vlaue of the property specified this method will handle keeping related artifacts in sync to support both deeply nested event dispatching and lazy loaded properties.
Parametersobj:IManaged — IManaged reference to the object on which the desired
property should be retreived from.
|
|
property:String — String containing the name of the desired property.
|
|
value:* — any reference to the current value of the property.
|
* — the new normalized value of the property.
This value should be assigned to the original reference.
|
See also
public class Customer implements IManaged
{
private var _addresses:ArrayCollection;
public function get addresses():ArrayCollection
{
_addresses = Managed.getProperty(this, "addresses", _addresses);
}
public function set addresses(value:ArrayCollection):void
{
Managed.setProperty(this, "addresses", _addresses, _addresses = value);
}
}
| setProperty | () | method |
public static function setProperty(obj:IManaged, property:Object, oldValue:*, newValue:*):voidThis method is used to set the property of a managed object. In addition to setting the vlaue of the property specified, this method will handle keeping related artifacts in sync and clean up any deeply nested event dispatching and lazy loaded properties.
Parametersobj:IManaged — IManaged reference to the managed object that the property
will be set on
|
|
property:Object — Object containing the name of the property that will be
set.
Typically this is a String value but can be a
QName.
|
|
oldValue:* — reference to the previous value of the property.
|
|
newValue:* — reference to the new value of the property
|
See also
public class Customer implements IManaged
{
private var _addresses:ArrayCollection;
public function get addresses():ArrayCollection
{
_addresses = Managed.getProperty(this, "addresses", _addresses);
}
public function set addresses(value:ArrayCollection):void
{
Managed.setProperty(this, "addresses", _addresses, _addresses = value);
}
}
Send me an e-mail when comments are added to this page | Comment Report
Current page: http://livedocs.adobe.com/flex/2/langref/mx/data/utils/Managed.html