Packageorg.restfulx.models
Classpublic class RxTreeModel
InheritanceRxTreeModel Inheritance RxModel Inheritance flash.events.EventDispatcher

Allows tree representation (parent->children) relationship between instances of the same model type.



Public Properties
 PropertyDefined by
 Inheritedattachment : Object
any model can have one attachment, this can be either RxFileRefrence or BinaryAttachment
RxModel
  children : ModelsCollection
RxTreeModel
 Inheritedcloned : Boolean
indicates if this is a clone
RxModel
 Inheriteddirty : Boolean
can be used to see if this model's properties have been changed
RxModel
 Inheritedid : String
all models have an id.
RxModel
 Inheritedpartials : Object
indicates which relationships on this model are partially serialized and should be attempted to be linked to current objects in cache
RxModel
 Inheritedrev : String
some models have a revision number
RxModel
 Inheritedsync : String
tracks if this model needs to be synchornized
RxModel
 Inheritedxrev : String
if we have a revision number, it's also a good idea to keep track of the previous one
RxModel
Public Methods
 MethodDefined by
  
RxTreeModel(label:String = "id")
RxTreeModel
 Inherited
create(optsOrOnSuccess:Object = null, onFailure:Function = null, nestedBy:Array = null, metadata:Object = null, recursive:Boolean = false, targetServiceId:int = -1, customProcessor:Function = null):void
Wrapper around Rx.models.create
RxModel
 Inherited
destroy(optsOrOnSuccess:Object = null, onFailure:Function = null, nestedBy:Array = null, metadata:Object = null, recursive:Boolean = false, targetServiceId:int = -1, customProcessor:Function = null):void
Wrapper around Rx.models.destroy
RxModel
 Inherited
reload(optsOrOnSuccess:Object = null, onFailure:Function = null, nestedBy:Array = null, metadata:Object = null, fetchDependencies:Boolean = true, useLazyMode:Boolean = true, targetServiceId:int = -1, customProcessor:Function = null):void
Wrapper around Rx.models.reload
RxModel
 Inherited
show(optsOrOnSuccess:Object = null, onFailure:Function = null, nestedBy:Array = null, metadata:Object = null, fetchDependencies:Boolean = true, useLazyMode:Boolean = false, targetServiceId:int = -1, customProcessor:Function = null):Object
Wrapper around Rx.models.show
RxModel
 Inherited
shown():Boolean
Wrapper around Rx.models.shown
RxModel
 Inherited
toString():String
Default toString implementation for models
RxModel
 Inherited
update(optsOrOnSuccess:Object = null, onFailure:Function = null, nestedBy:Array = null, metadata:Object = null, recursive:Boolean = false, targetServiceId:int = -1, customProcessor:Function = null):void
Wrapper around Rx.models.update
RxModel
Property detail
childrenproperty
public var children:ModelsCollection
Constructor detail
RxTreeModel()constructor
public function RxTreeModel(label:String = "id")Parameters
label:String (default = "id")