mixinafReflux::ResourceTreeModel

afReflux::ResourceTreeModel

A model to customise the look of a ResourceTree.

bg

Source

virtual Color? bg(Resource resource)

Get the background color for specified node or null for default.

children

Source

virtual Uri[] children(Resource resource)

Returns the children (resource URIs) of the specified node. If no children return an empty list.

Defaults to resource.children.

fg

Source

virtual Color? fg(Resource resource)

Get the foreground color for specified node or null for default.

font

Source

virtual Font? font(Resource resource)

Get the font for specified resource or null for default.

hasChildren

Source

virtual Bool hasChildren(Resource resource)

Return if this has or might have children. This is an optimisation to display an expansion control without actually loading all the children.

Defaults to resource.hasChildren.

image

Source

virtual Image? image(Resource resource)

Get the image to display. Defaults to resource.icon.

text

Source

virtual Str text(Resource resource)

Get the text to display. Defaults to resource.name.