type

AbstractComp

@Js
abstract class AbstractComp : Obj, Comp

AbstractComp is base class for Fantom components. See Comps.

constructors

make

All components must implement single arg constructor

methods

def

Get the definition

get

Get a cell value by name or raise error if not a valid cell

getCell

Get a cell value by its cell definition

onRecompute

Callback to recompute the cells

recompute

Recompute the component's cells

reflect

Reflect the given type

set

Set a cell value by name or raise error if not a valid cell

setCell

Set a cell value by its cell definition

toStr

Debug string

Slot Details

def

override CompDef def()

Get the definition

get

@Operator
override Obj? get(Str name)

Get a cell value by name or raise error if not a valid cell

getCell

override Obj? getCell(CellDef cd)

Get a cell value by its cell definition

make

new make(Obj init)

All components must implement single arg constructor

onRecompute

protected abstract Void onRecompute(AxonContext cx)

Callback to recompute the cells

recompute

override This recompute(AxonContext cx)

Recompute the component's cells

reflect

static CompDef reflect(Type type, Dict meta)

Reflect the given type

set

@Operator
override This set(Str name, Obj? val)

Set a cell value by name or raise error if not a valid cell

setCell

override This setCell(CellDef cd, Obj? val)

Set a cell value by its cell definition

toStr

override Str toStr()

Debug string