- _parent
TreeItem _parent;
Undocumented in source.
- _id
string _id;
Undocumented in source.
- _iconRes
string _iconRes;
Undocumented in source.
- _level
int _level;
Undocumented in source.
- _text
UIString _text;
Undocumented in source.
- _children
ObjectList!TreeItem _children;
Undocumented in source.
- _expanded
bool _expanded;
Undocumented in source.
- newChild
TreeItem newChild(string id, dstring label, string iconRes)
create and add new child item
- canCollapse
bool canCollapse [@property getter]
returns true if item supports collapse
- root
TreeItems root [@property getter]
- isRoot
bool isRoot [@property getter]
returns true if this item is root item
- clear
void clear()
Undocumented in source. Be warned that the author may not have intended to support it.
- parent
TreeItem parent [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
- parent
TreeItem parent [@property setter]
Undocumented in source. Be warned that the author may not have intended to support it.
- id
string id [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
- id
string id [@property setter]
Undocumented in source. Be warned that the author may not have intended to support it.
- iconRes
string iconRes [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
- iconRes
string iconRes [@property setter]
Undocumented in source. Be warned that the author may not have intended to support it.
- level
int level [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
- level
int level [@property setter]
Undocumented in source. Be warned that the author may not have intended to support it.
- expanded
bool expanded [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
- expanded
bool expanded [@property setter]
Undocumented in source. Be warned that the author may not have intended to support it.
- isFullyExpanded
bool isFullyExpanded()
Returns true if this item and all parents are expanded.
- isVisible
bool isVisible()
Returns true if all parents are expanded.
- expand
void expand()
Undocumented in source. Be warned that the author may not have intended to support it.
- collapse
void collapse()
Undocumented in source. Be warned that the author may not have intended to support it.
- expandAll
void expandAll()
expand this node and all children
- collapseAll
void collapseAll()
expand this node and all children
- selectedItem
TreeItem selectedItem [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
- defaultItem
TreeItem defaultItem [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
- isSelected
bool isSelected [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
- isDefault
bool isDefault [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
- text
dstring text [@property getter]
- text
dstring text [@property setter]
- text
UIString text [@property setter]
- textResource
string textResource [@property setter]
set text resource ID to show
- compareId
bool compareId(string id)
Undocumented in source. Be warned that the author may not have intended to support it.
- topParent
TreeItem topParent [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
- _intParam
int _intParam;
Undocumented in source.
- intParam
int intParam [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
- intParam
int intParam [@property setter]
Undocumented in source. Be warned that the author may not have intended to support it.
- _objectParam
Object _objectParam;
Undocumented in source.
- objectParam
Object objectParam [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
- objectParam
Object objectParam [@property setter]
Undocumented in source. Be warned that the author may not have intended to support it.
- opApply
int opApply(int delegate(ref TreeItem) callback)
- hasChildren
bool hasChildren [@property getter]
returns true if item has at least one child
- childCount
int childCount [@property getter]
returns number of children of this widget
- child
TreeItem child(int index)
- addChild
TreeItem addChild(TreeItem item, int index)
adds child, returns added item
- removeChild
TreeItem removeChild(int index)
removes child, returns removed item
- removeChild
TreeItem removeChild(TreeItem child)
removes child by reference, returns removed item
- removeChild
TreeItem removeChild(string ID)
removes child by ID, returns removed item
- childIndex
int childIndex(TreeItem item)
returns index of widget in child list, -1 if passed widget is not a child of this widget
- onUpdate
void onUpdate(TreeItem item)
- toggleExpand
void toggleExpand(TreeItem item)
Undocumented in source. Be warned that the author may not have intended to support it.
- selectItem
void selectItem(TreeItem item)
Undocumented in source. Be warned that the author may not have intended to support it.
- activateItem
void activateItem(TreeItem item)
Undocumented in source. Be warned that the author may not have intended to support it.
- nextVisible
TreeItem nextVisible(TreeItem item, bool found)
Undocumented in source. Be warned that the author may not have intended to support it.
- prevVisible
TreeItem prevVisible(TreeItem item, TreeItem prevFoundVisible)
Undocumented in source. Be warned that the author may not have intended to support it.
- findItemById
TreeItem findItemById(string id)
returns item by id, null if not found