EntityTreeNodeTNode, TItem Class

Abstract tree node that refines ItemTreeNode by allowing the enforcement of uniqueness constraints based on properties of its payload item (entity).

Definition

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

Type Parameters

TNode
Node type of the tree
TItem
Item type inside the TNode

Constructors

Properties

CheckOptions Found errors when trying to verify the validity of the structure of this tree node.
Error An error associated with this node, often caused during composition of the tree.
Id ID of the Item contained by this node.
Item Looks up a sub-node in the tree by its Id.
TreeIdMap The ID of the map of the tree, shared by all nodes.

Methods

AddChild Add new entity node as child of this node
AttachAtAdjacentPosition Attach existing entity node as sibling adjacent to this node
AttachAtPositionAfter Attach existing entity node as sibling after this node
AttachAtPositionBefore Attach existing entity node as sibling before this node
AttachChild Attach existing entity node as child of this node
DecrementSiblingPosition Move this node "backward" to the previous sibling position. Has no effect if no siblings exist.
Detach Detach this node from the tree
DetachChildren Detach this node's children from the tree. Returns sequence of detached nodes.
DetachWhere Detach nodes from the tree that satisfy the specified predicate. Nodes in scope of this operation include this node and all descendants. Returns sequence of detached nodes.
IncrementSiblingPosition Move this node "forward" to the next sibling position. Has no effect if no siblings exist.
MoveToAdjacentPosition Move this node from its current position to a position adjacent to a specified node in the same tree.
MoveToParent Move this node from its current position to new parent in the same tree
MoveToPositionAfter Move this node from its current position to the adjacent position after a specified node in the same tree.
MoveToPositionBefore Move this node from its current position to the adjacent position before a specified node in the same tree.
OnAddCanProceed Whether we can proceed with adding children to this node.
(Overrides TreeNodeTNodeOnAddCanProceed)
SetChildErrorsOnAttachment Under what grounds to set errors on child elements when they're being attached to this node.
(Overrides TreeNodeTNodeSetChildErrorsOnAttachment)

See Also