TreeItems

Undocumented in source.

Constructors

this
this()
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.
canCollapse
bool canCollapse(TreeItem item)
Undocumented in source. Be warned that the author may not have intended to support it.
canCollapseTopLevel
bool canCollapseTopLevel()
Undocumented in source. Be warned that the author may not have intended to support it.
onUpdate
void onUpdate(TreeItem item)

notify listeners

selectItem
void selectItem(TreeItem item)
Undocumented in source. Be warned that the author may not have intended to support it.
selectNext
void selectNext()
Undocumented in source. Be warned that the author may not have intended to support it.
selectPrevious
void selectPrevious()
Undocumented in source. Be warned that the author may not have intended to support it.
setDefaultItem
void setDefaultItem(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

defaultItem
TreeItem defaultItem [@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

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

Variables

_defaultItem
TreeItem _defaultItem;
Undocumented in source.
_noCollapseForSingleTopLevelItem
bool _noCollapseForSingleTopLevelItem;
Undocumented in source.
_selectedItem
TreeItem _selectedItem;
Undocumented in source.
contentListener
Listener!OnTreeContentChangeListener contentListener;
Undocumented in source.
expandListener
Listener!OnTreeExpandedStateListener expandListener;
Undocumented in source.
selectionListener
Listener!OnTreeSelectionChangeListener selectionListener;
Undocumented in source.
stateListener
Listener!OnTreeStateChangeListener stateListener;
Undocumented in source.

Inherited Members

From TreeItem

_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]

returns topmost item

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]

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

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.
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)

returns child by 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)

notify listeners

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

Meta