Packageorg.granite.tide
Classpublic dynamic class Context
InheritanceContext Inheritance BaseContext Inheritance mx.utils.ObjectProxy

Default Context implementation when using Tide standalone



Public Properties
 PropertyDefined by
 Inheritedmeta_contextManager : IContextManager
BaseContext
 Inheritedmeta_destination : String
Returns the RemoteObject destination for this context
BaseContext
 Inheritedmeta_dirty : Boolean
Entity manager is dirty when any entity/collection/map has been modified
BaseContext
 Inheritedmeta_dirtyCheckEnabled : Boolean
Enables or disabled dirty checking in this context
BaseContext
 Inheritedmeta_finished : Boolean
Indicates if the current conversation has been marked as finished by the server
BaseContext
 Inheritedmeta_lazyInitializationDisabled : Boolean = false
Allows to disable automatic loading of lazy collections
BaseContext
 Inheritedmeta_parentContext : BaseContext
BaseContext
 Inheritedmeta_tide : Tide
Returns the Tide singleton for this context
BaseContext
Protected Properties
 PropertyDefined by
 Inherited_tide : Tide
BaseContext
Public Methods
 MethodDefined by
  
Context(tide:Tide, parentContext:BaseContext = null)
Context
 Inherited
addContextEventListener(type:String, handler:Function, remote:Boolean = false):void
Registers a tide context event listener (should be done with [Observer])
BaseContext
 Inherited
allByType(serviceClass:Class, create:Boolean = false):Array
Returns all component instances in this context implementing the specified class/interface
BaseContext
 Inherited
bindIn(componentName:String, component:Object, propName:Object, create:Boolean = true, contextPropName:Object = null):void
Binds a component property from a context variable (should be done with [In])
BaseContext
 Inherited
bindOut(componentName:String, component:Object, propName:Object, contextPropName:Object = null):void
Binds a component property to a context variable (should be done with [Out])
BaseContext
 Inherited
bindProperty(site:Object, prop:Object, host:Object, chain:Object, commitOnly:Boolean = false):ChangeWatcher
[static]
BaseContext
 Inherited
byType(serviceClass:Class, create:Boolean = false):Object
Returns the current component instance implementation in this context for the specified class/interface
BaseContext
 Inherited
dispatchEvent(event:Event):Boolean
Dispatches a context event
BaseContext
 Inherited
injectByType(type:Class, component:Object, componentName:String, propName:Object, create:Boolean = true):void
Binds a component property from a context variable (should be done with [In])
BaseContext
 Inherited
meta_clearDirtyState(dispatch:Boolean = true):void
Clear the current dirty state context
BaseContext
 Inherited
meta_continue(merge:Boolean = true):void
Continues the current context: restart a new conversation with the same context content when the server has ended the current conversation Only applicable to conversation contexts
BaseContext
 Inherited
meta_deepDirty(entity:IEntity):Boolean
BaseContext
 Inherited
meta_destroy(name:String, force:Boolean = false):void
Destroys/reset a component
BaseContext
 Inherited
meta_end(merge:Boolean = true):void
Ends the current context Only applicable to conversation contexts
BaseContext
 Inherited
meta_getContext(name:*, component:Object):BaseContext
Returns the context where the component instance is stored
BaseContext
 Inherited
meta_getInstance(name:*, create:Boolean = false, forceNoCreate:Boolean = false, noProxy:Boolean = false):*
Returns the component instance in this context
BaseContext
 Inherited
Returns the component instance in this context but never creates proxies
BaseContext
 Inherited
meta_getOwnerEntities(object:Object):Array
BaseContext
 Inherited
meta_getRefs(object:Object):Array
BaseContext
 Inherited
Return the current set of dirty properties
BaseContext
 Inherited
meta_isEntityChanged(entity:IEntity, propName:String = null, value:* = null):Boolean
Check if entity has changed since last save point
BaseContext
 Inherited
meta_isEntityPropertyChanged(entity:IEntity, propertyName:String, value:Object):Boolean
Check if entity property has been changed since last remote call
BaseContext
 Inherited
meta_isGlobal():Boolean
BaseContext
 Inherited
meta_isObjectInitialized(object:Object):Boolean
Indicates if an object is initialized For non managed objects, always return true
BaseContext
 Inherited
meta_mergeExternalData(obj:Object, prev:Object = null, sourceSessionId:String = null, removals:Array = null, persists:Array = null):Object
Merge an object coming from the server in the context
BaseContext
 Inherited
Merge conversation context variables in global context Only applicable to conversation contexts
BaseContext
 Inherited
Merge conversation context variables in parent context Only applicable to conversation contexts
BaseContext
 Inherited
meta_objectEquals(obj1:Object, obj2:Object):Boolean
Equality for objects, using uid property when possible
BaseContext
 Inherited
Discard changes of all cached entities from last version received from the server
BaseContext
 Inherited
Discard changes of entity from last version received from the server
BaseContext
 Inherited
meta_resync(resultHandler:Function = null, faultHandler:Function = null):AsyncToken
Resync current context with server (similar to invoke with no operation)
BaseContext
 Inherited
BaseContext
 Inherited
raiseEvent(type:String, ... params):void
Dispatches a context event (possibly in a subcontext)
BaseContext
 Inherited
raiseGlobalEvent(type:String, ... params):void
Dispatches a context event (always in the global context)
BaseContext
 Inherited
toString(object:Object):String
[static] Convenient toString implementation which avoids triggering collection initialization
BaseContext
 Inherited
unbindIns(componentName:String):void
Unbinds all [In] component properties
BaseContext
 Inherited
unbindOuts(componentName:String):void
Unbinds all [Out] component properties
BaseContext
Protected Methods
 MethodDefined by
 Inherited
meta_internalRaiseEvent(type:String, params:Array):void
BaseContext
Constructor detail
Context()constructor
public function Context(tide:Tide, parentContext:BaseContext = null)Parameters
tide:Tide
 
parentContext:BaseContext (default = null)