type
methods
add |
Add a slot. |
---|---|
call |
Call a method slot. |
child |
Lookup a child component by name |
dis |
Return display string for this component |
each |
Iterate slot name/value pairs using same semantics as |
eachChild |
Iterate children components in the tree structure |
eachWhile |
Iterate name/value pairs until callback returns non-null |
get |
Get the given slot value or null if slot name not defined. |
has |
Return true if this component has a slot by given name. |
hasChild |
Check if a child component is mapped by the given name |
id |
Return id that uniquely identifies this component within its space. |
isAbove |
Is this is an ancestor in the tree of the given component. |
isBelow |
Is this component is a descendant in the tree of the given component. |
isMounted |
Return if this component is mounted into a component space |
links |
Gets links slot as dict of incoming component links |
missing |
Return true if the component does not have a slot by given name. |
name |
Slot name under parent or "" if parent is null |
onCall |
Callback when a method is called |
onCallRemove |
Remove an onCall callback |
onCallThis |
Callback on instance itself when a call is invoked. |
onChange |
Callback when a slot is modified. |
onChangeRemove |
Remove an onChange callback |
onChangeThis |
Callback on instance itself when a slot is modified. |
onTimer |
Callback for time based computation based on |
onTimerFreq |
How often should this component have its onTimer callback invoked. |
parent |
Parent component or null if root/unmounted |
remove |
Remove a slot by name. |
set |
Set a slot by name. |
setFunc |
Set a method slot with a Fantom function. |
spec |
Xeto type for this component |
toStr |
Return debug string |
trap |
Get or set the slot mapped by the given name. |
Slot Details
add
call
child
dis
Str dis()
Return display string for this component
each
eachChild
eachWhile
get
has
hasChild
id
Ref id()
Return id that uniquely identifies this component within its space.
isAbove
isBelow
isMounted
Bool isMounted()
Return if this component is mounted into a component space
links
Links links()
Gets links slot as dict of incoming component links
missing
name
Str name()
Slot name under parent or "" if parent is null
onCall
onCallRemove
onCallThis
onChange
onChangeRemove
onChangeThis
onTimer
virtual Void onTimer(DateTime now)
Callback for time based computation based on onTimerFreq
.
onTimerFreq
virtual Duration? onTimerFreq()
How often should this component have its onTimer callback invoked. Return null if this component has no time based computation.
parent
virtual Comp? parent()
Parent component or null if root/unmounted
remove
set
setFunc
spec
Spec spec()
Xeto type for this component
toStr
virtual override Str toStr()
Return debug string