When combined with HierarchicalAdapterCollection, this simple interface
allows any type of data to be used as the source for a hierarchical
collection used by components like TreeView.
Events:
openfl.events.Event.CHANGE | |
|---|---|
feathers.events.HierarchicalCollectionEvent.RESET |
Available since
1.0.0
.See also:
Methods
getChildren(?branch:T):Array<T>
Returns the children of a branch. If the branch is null, returns the
children at the root of the collection.
Available since
1.0.0
.insertChildAt(child:T, index:Int, ?branch:T):Void
Inserts a child at the specified index within the branch. If the branch
is null, inserts the child within the root of the collection.
Available since
1.0.0
.isBranch(item:T):Bool
Determines if an item from the collection is a branch or not.
Available since
1.0.0
.removeChildAt(index:Int, ?branch:T):T
Removes a child at the specified index within the branch. If the branch
is null, removes the child from the root of the collection.
Available since
1.0.0
.