CompSpace
@Js
class CompSpace : Obj
CompSpace manages a tree of components and their execution environment - see documentation.
Constructor - must call install before creating any components
Create new component instance for spec
Iterate every component in space
Iterate every component in space until callback returns non-null
This method should be called at periodically to execute components and check timers
Install this space as the actor local
Has this space been started, but not stopped yet
Load tree with root component
Xeto namespace for the space
Read a component by its id in this space
Root component
Start space to initialize and begin execute calls
Stop space to cleanup and cease execute calls
Stop and uninstall the actor local if defined
Comp create(Spec spec)
Create new component instance for spec
Void each(|Comp| f)
Iterate every component in space
Obj? eachWhile(|Comp->Obj?| f)
Iterate every component in space until callback returns non-null
Void execute()
This method should be called at periodically to execute components and check timers. The frequency this method is called determines the smallest timer increment. For example if its called every 100ms then timers will only fire as fast as 100ms. The current context must be an instance of CompContext. See Comps.
This install()
Install this space as the actor local.
Bool isRunning()
Has this space been started, but not stopped yet
This load(Comp root)
Load tree with root component
new make(Namespace ns)
Constructor - must call install before creating any components.
Namespace ns()
Xeto namespace for the space
Comp? readById(Ref id, Bool checked := true)
Read a component by its id in this space
virtual Comp root()
Root component
This start()
Start space to initialize and begin execute calls
This stop()
Stop space to cleanup and cease execute calls
static Void uninstall()
Stop and uninstall the actor local if defined.