TreeItem

Undocumented in source.
class TreeItem {}

Constructors

this
this(string id)
Undocumented in source.
this
this(string id, dstring label, string iconRes)
Undocumented in source.
this
this(string id, UIString label, string iconRes)
Undocumented in source.
this
this(string id, string labelRes, string iconRes)
Undocumented in source.

Members

Functions

activateItem
void activateItem(TreeItem item)
Undocumented in source. Be warned that the author may not have intended to support it.
addChild
TreeItem addChild(TreeItem item, int index)

adds child, returns added item

child
TreeItem child(int index)

returns child by index

childIndex
int childIndex(TreeItem item)

returns index of widget in child list, -1 if passed widget is not a child of this widget

clear
void clear()
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.
collapseAll
void collapseAll()

expand this node and all children

compareId
bool compareId(string id)
Undocumented in source. Be warned that the author may not have intended to support it.
expand
void expand()
Undocumented in source. Be warned that the author may not have intended to support it.
expandAll
void expandAll()

expand this node and all children

findItemById
TreeItem findItemById(string id)

returns item by id, null if not found

isFullyExpanded
bool isFullyExpanded()

Returns true if this item and all parents are expanded.

isVisible
bool isVisible()

Returns true if all parents are expanded.

newChild
TreeItem newChild(string id, dstring label, string iconRes)

create and add new child item

nextVisible
TreeItem nextVisible(TreeItem item, bool found)
Undocumented in source. Be warned that the author may not have intended to support it.
onUpdate
void onUpdate(TreeItem item)

notify listeners

opApply
int opApply(int delegate(ref TreeItem) callback)

Support foreach

prevVisible
TreeItem prevVisible(TreeItem item, TreeItem prevFoundVisible)
Undocumented in source. Be warned that the author may not have intended to support it.
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

selectItem
void selectItem(TreeItem item)
Undocumented in source. Be warned that the author may not have intended to support it.
toggleExpand
void toggleExpand(TreeItem item)
Undocumented in source. Be warned that the author may not have intended to support it.

Properties

canCollapse
bool canCollapse [@property getter]

returns true if item supports collapse

childCount
int childCount [@property getter]

returns number of children of this widget

defaultItem
TreeItem defaultItem [@property getter]
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.
hasChildren
bool hasChildren [@property getter]

returns true if item has at least one child

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.
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.
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.
isDefault
bool isDefault [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
isRoot
bool isRoot [@property getter]

returns true if this item is root item

isSelected
bool isSelected [@property getter]
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.
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.
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.
root
TreeItems root [@property getter]

returns topmost item

selectedItem
TreeItem selectedItem [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
text
dstring text [@property getter]

get widget text

text
dstring text [@property setter]

set text to show

text
UIString text [@property setter]

set text to show

textResource
string textResource [@property setter]

set text resource ID to show

topParent
TreeItem topParent [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.

Variables

_children
ObjectList!TreeItem _children;
Undocumented in source.
_expanded
bool _expanded;
Undocumented in source.
_iconRes
string _iconRes;
Undocumented in source.
_id
string _id;
Undocumented in source.
_intParam
int _intParam;
Undocumented in source.
_level
int _level;
Undocumented in source.
_objectParam
Object _objectParam;
Undocumented in source.
_parent
TreeItem _parent;
Undocumented in source.
_text
UIString _text;
Undocumented in source.

Meta