Home | Trees | Indices | Help |
|
---|
|
object --+ | container.IContainer --+ | container.IHierarchical --+ | object --+ | | | container.IContainer --+ | object --+ | | | container.IItemSetChangeNotifier --+ | object --+ | | | container.IPropertySetChangeNotifier --+ | ContainerHierarchicalWrapper
A wrapper class for adding external hierarchy to containers not implementing the IHierarchical interface.
If the wrapped container is changed directly (that is, not through the wrapper), and does not implement IItemSetChangeNotifier and/or IPropertySetChangeNotifier the hierarchy information must be updated with the updateHierarchicalWrapper method.
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
Inherited from |
|
|||
Inherited from |
|
Constructs a new hierarchical wrapper for an existing Container. Works
even if the to-be-wrapped container already implements the
See Also: updateHierarchicalWrapper |
Updates the wrapper's internal hierarchy data to include all Items in the underlying container. If the contents of the wrapped container change without the wrapper's knowledge, this method needs to be called to update the hierarchy information of the Items. |
Removes the specified Item from the wrapper's internal hierarchy structure. Note : The Item is not removed from the underlying Container.
|
Adds the specified Item specified to the internal hierarchy structure. The new item is added as a root Item. The underlying container is not modified.
|
Tests if the Item with given ID can have children.
|
Gets the IDs of all Items that are children of the specified Item. The returned collection is unmodifiable.
|
Gets the ID of the parent Item of the specified Item.
|
Tests if the Item specified with Note that being a leaf does not imply whether or not an Item is allowed to have children.
|
Tests if the Item specified with
|
Gets the IDs of all Items in the container that don't have a parent.
Such items are called
|
Sets the given Item's capability to have children. If the Item
identified with the itemId already has children and the
areChildrenAllowed is false this method fails and
|
Sets the parent of an Item. The new parent item must exist and be able
to have children. (
|
Adds a new Item by its ID to the underlying container and to the
hierarchy. Creates a new Item into the Container, assigns it an automatic
ID, and adds it to the hierarchy if
|
Removes all items from the underlying container and from the hierarchy.
|
Removes an Item specified by the itemId from the underlying container and from the hierarchy.
|
Removes the Item identified by given itemId and all its children.
See Also: removeItem |
Adds a new Property to all Items in the Container.
|
Removes the specified Property from the underlying container and from the hierarchy. Note: The Property will be removed from all Items in the Container.
|
Tests if the IContainer contains the specified Item. Filtering can hide items so that they will not be visible through the container API, and this method should respect visibility of items (i.e. only indicate visible items as being in the container) if feasible for the container.
|
Gets the Containers should not return Items that are filtered out.
|
Gets the ID's of all visible (after filtering and sorting) Items stored in the IContainer. The ID's cannot be modified through the returned collection. If the container is IOrdered, the collection returned by this method should follow that order. If the container is ISortable, the items should be in the sorted order. Calling this method for large lazy containers can be an expensive operation and should be avoided when practical.
|
Gets the Property identified by the given itemId and propertyId from
the IContainer. If the IContainer does not contain the item or it is
filtered out, or the IContainer does not have the Property,
|
Gets the ID's of all Properties stored in the IContainer. The ID's cannot be modified through the returned collection.
|
Gets the data type of all Properties identified by the given Property ID.
|
Gets the number of visible Items in the IContainer. Filtering can hide items so that they will not be visible through the container API.
|
Adds an Item set change listener for the object.
|
|
Removes the Item set change listener from the object.
|
|
Home | Trees | Indices | Help |
|
---|
Generated by Epydoc 3.0.1 on Sat Apr 20 16:01:19 2013 | http://epydoc.sourceforge.net |