| Package | org.granite.tide.impl |
| Class | public class ComponentStore |
| Method | Defined by | ||
|---|---|---|---|
| ComponentStore | |||
|
addModule(module:Object, appDomain:ApplicationDomain = null):void
Register a Tide module
| ComponentStore | ||
|
addSubcontext(name:String):void
Register a Tide namespace
| ComponentStore | ||
|
getObserversByType(type:String):ArrayCollection
Return list of observers by event type
| ComponentStore | ||
|
isComponent(name:String):Boolean
Checks a name is a registered Tide component
| ComponentStore | ||
|
removeComponent(name:String):void
Unregister a Tide component and destroys all instances
| ComponentStore | ||
|
removeComponentDescriptor(name:String):void
| ComponentStore | ||
|
removeModule(module:Object):void
Unregister a Tide module
| ComponentStore | ||
|
setComponentGlobal(name:String, global:Boolean):void
Define if the component is defined as global (cannot be in a namespace/subcontext)
| ComponentStore | ||
|
setComponentRemoteSync(name:String, remoteSync:int):void
Define the remote synchronization of the component
If NONE, the component state will never be sent to the server
| ComponentStore | ||
|
trackModuleCreation(moduleInstance:Object):void
| ComponentStore | ||
| ComponentStore | () | constructor |
public function ComponentStore(tide:Tide, contextManager:IContextManager)Parameters
tide:Tide |
|
contextManager:IContextManager |
| addModule | () | method |
public function addModule(module:Object, appDomain:ApplicationDomain = null):voidRegister a Tide module
Parametersmodule:Object — the module class or instance (that may implement ITideModule)
|
|
appDomain:ApplicationDomain (default = null) — the Flex application domain for modules loaded dynamically
|
| addSubcontext | () | method |
public function addSubcontext(name:String):voidRegister a Tide namespace
Parametersname:String — component name
|
| getObserversByType | () | method |
public function getObserversByType(type:String):ArrayCollectionReturn list of observers by event type
Parameterstype:String — event type
|
ArrayCollection — list of observer names
|
| isComponent | () | method |
public function isComponent(name:String):BooleanChecks a name is a registered Tide component
Parametersname:String — component name
|
Boolean — true if there is a component with this name
|
| removeComponent | () | method |
public function removeComponent(name:String):voidUnregister a Tide component and destroys all instances
Parametersname:String — component name
|
| removeComponentDescriptor | () | method |
public function removeComponentDescriptor(name:String):voidParameters
name:String |
| removeModule | () | method |
public function removeModule(module:Object):voidUnregister a Tide module
Parametersmodule:Object — the module class or instance (that must implement ITideModule)
|
| setComponentGlobal | () | method |
public function setComponentGlobal(name:String, global:Boolean):voidDefine if the component is defined as global (cannot be in a namespace/subcontext)
Parametersname:String — component name
|
|
global:Boolean — true if non component cannot be in a namespace/subcontext
|
| setComponentRemoteSync | () | method |
public function setComponentRemoteSync(name:String, remoteSync:int):voidDefine the remote synchronization of the component If NONE, the component state will never be sent to the server
Parametersname:String — component name
|
|
remoteSync:int — true if the component should be remotely synchronized
|
| trackModuleCreation | () | method |
public function trackModuleCreation(moduleInstance:Object):voidParameters
moduleInstance:Object |