A specialized Container whose contents can be accessed like it was a
tree-like structure.
|
|
|
|
|
|
|
|
|
hasChildren(self,
itemId)
Tests if the Item specified with itemId has child Items
or if it is a leaf. |
source code
|
|
|
isRoot(self,
itemId)
Tests if the Item specified with itemId is a root Item. |
source code
|
|
|
|
|
|
|
|
|
|
|
|
|
addItem(self,
itemId=None)
Creates a new Item with the given ID in the IContainer. |
source code
|
|
|
fireItemSetChange(self,
event=None)
Sends a simple Item set change event to all interested listeners,
indicating that anything in the contents may have changed (items
added, removed etc.). |
source code
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
doSort(self)
Perform the sorting of the data structures in the container. |
source code
|
|
|
|
|
|
|
|
|
addFilteredChild(self,
parentItemId,
childItemId)
Adds the given childItemId as a filteredChildren for the parentItemId
and sets it filteredParent. |
source code
|
|
|
addFilteredChildrenRecursively(self,
parentItemId,
includedItems)
Recursively adds all items in the includedItems list to the
filteredChildren map in the same order as they are in the children
map. |
source code
|
|
|
|
|
|
Inherited from indexed_container.IndexedContainer :
addCallback ,
addContainerFilter ,
addContainerProperty ,
addDefaultValues ,
addItemAfter ,
addItemAt ,
addListener ,
addSinglePropertyChangeListener ,
clone ,
fireItemAdded ,
firePropertyValueChange ,
generateId ,
getCallbacks ,
getContainerProperty ,
getContainerPropertyIds ,
getItemSorter ,
getListeners ,
getSortableContainerPropertyIds ,
getType ,
getUnfilteredItem ,
registerNewItem ,
removeAllContainerFilters ,
removeCallback ,
removeContainerFilter ,
removeContainerFilters ,
removeContainerProperty ,
removeListener ,
removeSinglePropertyChangeListener ,
setItemSorter ,
sort
Inherited from abstract_in_memory_container.AbstractInMemoryContainer :
__len__ ,
addFilter ,
containsId ,
filterAll ,
fireItemRemoved ,
firstItemId ,
getAllItemIds ,
getFilteredItemIds ,
getFilters ,
getIdByIndex ,
getItem ,
getItemIds ,
getSortablePropertyIds ,
getVisibleItemIds ,
indexOfId ,
internalAddAt ,
internalAddItemAfter ,
internalAddItemAt ,
internalAddItemAtEnd ,
internalRemoveAllItems ,
internalRemoveItem ,
isFiltered ,
isFirstId ,
isLastId ,
isPropertyFiltered ,
lastItemId ,
nextItemId ,
prevItemId ,
removeAllFilters ,
removeFilter ,
removeFilters ,
setAllItemIds ,
setFilteredItemIds ,
setFilters ,
size ,
sortContainer
Inherited from abstract_container.AbstractContainer :
fireContainerPropertySetChange ,
getItemSetChangeListeners ,
getPropertySetChangeListeners ,
setItemSetChangeListeners ,
setPropertySetChangeListeners
Inherited from object :
__delattr__ ,
__format__ ,
__getattribute__ ,
__hash__ ,
__new__ ,
__reduce__ ,
__reduce_ex__ ,
__repr__ ,
__setattr__ ,
__sizeof__ ,
__str__ ,
__subclasshook__
|
|
_noChildrenAllowed
Set of IDs of those contained Items that can't have children.
|
|
_parent
Mapping from Item ID to parent Item ID.
|
|
_filteredParent
Mapping from Item ID to parent Item ID for items included in
|
|
_children
Mapping from Item ID to a list of child IDs.
|
|
_filteredChildren
Mapping from Item ID to a list of child IDs when filtered
|
|
_roots
List that contains all root elements of the container.
|
|
_filteredRoots
List that contains all filtered root elements of the container.
|
|
_includeParentsWhenFiltering
Determines how filtering of the container is done.
|
|