logo

mixin

fwt::TreeModel

sys::Obj
  fwt::TreeModel

TreeModel models the data of a tree widget.

Slots

children

virtual Obj[] children(Obj node)

Get the children of the specified node. If no children return null or the empty list. Default returns null.

Source

image

virtual Image image(Obj node)

Get the image to display for specified node or null.

Source

roots

abstract Obj[] roots()

Get root nodes.

Source

text

virtual Str text(Obj node)

Get the text to display for specified node. Default is node.toStr.

Source