Class TreeItem

Inherits from

  • Object (base class)

Constructors

Name Description
this
this
this
this

Fields

Name Type Description
_children ObjectList!(dlangui.widgets.tree.TreeItem)
_expanded bool
_iconRes string
_id string
_intParam int
_level int
_objectParam Object
_parent TreeItem
_text UIString

Properties

Name Type Description
canCollapse [get] bool returns true if item supports collapse
childCount [get] int returns number of children of this widget
defaultItem [get] TreeItem
expanded [get] bool
hasChildren [get] bool returns true if item has at least one child
iconRes [get] string
iconRes [set] TreeItem
id [get] string
id [set] TreeItem
intParam [set] TreeItem
intParam [get] int
isDefault [get] bool
isRoot [get] bool returns true if this item is root item
isSelected [get] bool
level [get] int
objectParam [get] Object
objectParam [set] TreeItem
parent [get] TreeItem
root [get] TreeItems returns topmost item
selectedItem [get] TreeItem
text [get] dstring get widget text
text [set] TreeItem set text to show
textResource [set] TreeItem set text resource ID to show
topParent [get] TreeItem
expanded [set] TreeItem
level [set] TreeItem
parent [set] TreeItem

Methods

Name Description
addChild adds child, returns added item
child returns child by index
childIndex returns index of widget in child list, -1 if passed widget is not a child of this widget
clear
collapse
compareId
expand
findItemById returns item by id, null if not found
isFullyExpanded Returns true if this item and all parents are expanded.
isVisible Returns true if all parents are expanded.
newChild create and add new child item
removeChild removes child, returns removed item
removeChild removes child by ID, returns removed item
activateItem
nextVisible
onUpdate notify listeners
prevVisible
selectItem
toggleExpand

Authors

Vadim Lopatin, coolreader.org@gmail.com

Copyright

Vadim Lopatin, 2014

License

Boost License 1.0