class

CompSpace

@Js
class CompSpace : Obj

CompSpace manages a tree of components and their execution environment - see documentation.

constructors make

Constructor - must call install before creating any components

methods create

Create new component instance for spec

each

Iterate every component in space

eachWhile

Iterate every component in space until callback returns non-null

execute

This method should be called at periodically to execute components and check timers

install

Install this space as the actor local

isRunning

Has this space been started, but not stopped yet

load

Load tree with root component

ns

Xeto namespace for the space

readById

Read a component by its id in this space

root

Root component

start

Start space to initialize and begin execute calls

stop

Stop space to cleanup and cease execute calls

uninstall

Stop and uninstall the actor local if defined

create Comp create(Spec spec)

Create new component instance for spec

each Void each(|Comp| f)

Iterate every component in space

eachWhile Obj? eachWhile(|Comp->Obj?| f)

Iterate every component in space until callback returns non-null

execute 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.

install This install()

Install this space as the actor local.

isRunning Bool isRunning()

Has this space been started, but not stopped yet

load This load(Comp root)

Load tree with root component

make new make(Namespace ns)

Constructor - must call install before creating any components.

ns Namespace ns()

Xeto namespace for the space

readById Comp? readById(Ref id, Bool checked := true)

Read a component by its id in this space

root virtual Comp root()

Root component

start This start()

Start space to initialize and begin execute calls

stop This stop()

Stop space to cleanup and cease execute calls

uninstall static Void uninstall()

Stop and uninstall the actor local if defined.

Haxall 4.0.6 ∙ 21-Jul-2026 09:48 EDT