ItemTreeNodeTNode, TItem Class

Abstract tree node that refines TreeNode by including a payload item

Definition

Namespace: MobileTrack.Common.Models.TreeViews.ItemTree
Assembly: MobileTrack.Common (in MobileTrack.Common.dll) Version: 0.7+45c8d9adb5970d727cceec44a5ed61aea0016e50
public abstract class ItemTreeNode<TNode, TItem> : TreeNode<TNode>
where TNode : ItemTreeNode<TNode, TItem>
where TItem : IIdLabel
Inheritance
Object    TreeNodeTNode    ItemTreeNodeTNode, TItem
Derived

Type Parameters

TNode
The specific node type.
TItem
The model type that is encapsulated within the tree

Constructors

ItemTreeNodeTNode, TItem Default constructor

Properties

Item The item attached to this node.

Methods

Build Builds the node and its children. Invoked from the parent node.
CopyTo(TNode, NullableInt32) Deep copy this to node of same type starting at destination parent; items will be reference copies.
CopyTo(TNode, FuncTNode, TItem, NullableInt32) Deep copy this to node of same type starting at destination parent; uses an item mapping function.
CopyTo(TNode, FuncTNode, Boolean, NullableInt32) Deep copy this to node of same type starting at destination parent; uses a filtering predicate; items will be reference copies. The filtering predicate will terminate traversing source branch if no children satisfy the predicate, even if deeper descendants do.
CopyTo(TNode, FuncTNode, Boolean, FuncTNode, TItem, NullableInt32) Deep copy this to node of same type starting at destination parent; uses an item mapping function and a filtering predicate. The filtering predicate will terminate traversing source branch if no children satisfy the predicate, even if deeper descendants do.
Create Abstract factory method for generating a descendant
MapCopyToTDestNode(TDestNode, NullableInt32) Deep copy this to destination node type starting at destination parent; items will be reference copies.
MapCopyToTDestNode(TDestNode, FuncTNode, TItem, NullableInt32) Deep copy this to destination node type starting at destination parent; uses an item mapping function.
MapCopyToTDestNode(TDestNode, FuncTNode, Boolean, NullableInt32) Deep copy this to destination node type starting at destination parent; uses a filtering predicate; items will be reference copies The filtering predicate will terminate traversing source branch if no children satisfy the predicate, even if deeper descendants do.
MapCopyToTDestNode(TDestNode, FuncTNode, Boolean, FuncTNode, TItem, NullableInt32) Deep copy this to destination node type starting at destination parent; uses an item mapping function and a filtering predicate. The filtering predicate will terminate traversing source branch if no children satisfy the predicate, even if deeper descendants do.
MapCopyToTDestNode, TDestItem(TDestNode, FuncTNode, TDestItem, NullableInt32) Deep copy node/item to destination node/item type starting at destination parent; uses an item mapping function.
MapCopyToTDestNode, TDestItem(TDestNode, FuncTNode, Boolean, FuncTNode, TDestItem, NullableInt32) Deep copy node/item to destination node/item type starting at destination parent; uses an item mapping function and a filtering predicate. The filtering predicate will terminate traversing source branch if no children satisfy the predicate, even if deeper descendants do.
SetItem Set a new item for this node. Usually invoked because of changes in the Replication Layer

See Also