Class GroupingsController
Inheritance
GroupingsController
Assembly: LemonEdge.ClientEntities.dll
Syntax
public class GroupingsController : BaseTreeViewController<IGrouping>, ICollectionExportable, ISearchController, IModelViewController
Constructors
GroupingsController(IBaseTreeView<IGrouping>)
Declaration
public GroupingsController(IBaseTreeView<IGrouping> view)
Parameters
Properties
AllowXMLImportExport
Declaration
public override bool AllowXMLImportExport { get; }
Property Value
Overrides
LemonEdge.Client.Core.Views.Core.BaseTreeViewAnyController<LemonEdge.API.Entities.Data.IGrouping>.AllowXMLImportExport
CommandCopyAllow
Indicates if copying should be allowed in this view
Declaration
protected override bool CommandCopyAllow { get; }
Property Value
Overrides
LemonEdge.Client.Core.Views.Core.BaseTreeViewAnyController<LemonEdge.API.Entities.Data.IGrouping>.CommandCopyAllow
CommandOpenAllow
Indicates if the view should show the Open command - default is false
Declaration
public override bool CommandOpenAllow { get; }
Property Value
Overrides
LemonEdge.Client.Core.Views.Core.BaseTreeViewAnyController<LemonEdge.API.Entities.Data.IGrouping>.CommandOpenAllow
GetParentIDPropertyName
Returns the property on the entity type IGrouping that holds the relationship to the parent
instance of type IGrouping too
Declaration
protected override string GetParentIDPropertyName { get; }
Property Value
Overrides
LemonEdge.Client.Core.Views.Core.BaseTreeViewAnyController<LemonEdge.API.Entities.Data.IGrouping>.GetParentIDPropertyName
GetTreeNodeLabelPropertyName
Returns the property on the entity type IGrouping that holds the string that should be shown as the
label on the tree node for every item in the tree view control itself
Declaration
public override string GetTreeNodeLabelPropertyName { get; }
Property Value
Overrides
LemonEdge.Client.Core.Views.Core.BaseTreeViewAnyController<LemonEdge.API.Entities.Data.IGrouping>.GetTreeNodeLabelPropertyName
ListenToChanges
Declaration
public override bool ListenToChanges { get; }
Property Value
Overrides
Methods
CreateCopiedNode(TreeNode<IGrouping>, TreeNode<IGrouping>)
Declaration
protected override Task<TreeNode<IGrouping>> CreateCopiedNode(TreeNode<IGrouping> original, TreeNode<IGrouping> copiedParent)
Parameters
Returns
Overrides
LemonEdge.Client.Core.Views.Core.BaseTreeViewController<LemonEdge.API.Entities.Data.IGrouping>.CreateCopiedNode(LemonEdge.Utils.TreeNode<LemonEdge.API.Entities.Data.IGrouping>, LemonEdge.Utils.TreeNode<LemonEdge.API.Entities.Data.IGrouping>)
LoadDataForCopyingNode(TreeNode<IGrouping>)
Declaration
protected override Task LoadDataForCopyingNode(TreeNode<IGrouping> node)
Parameters
Returns
Overrides
LemonEdge.Client.Core.Views.Core.BaseTreeViewAnyController<LemonEdge.API.Entities.Data.IGrouping>.LoadDataForCopyingNode(LemonEdge.Utils.TreeNode<LemonEdge.API.Entities.Data.IGrouping>)
OnNodeMoved(TreeNode<IGrouping>, TreeNode<IGrouping>, TreeNode<IGrouping>)
Called when a tree node has been moved to allow any modifications to the old/new parent and sub items of the moved tree node
Declaration
public override void OnNodeMoved(TreeNode<IGrouping> oldParent, TreeNode<IGrouping> newParent, TreeNode<IGrouping> movedItem)
Parameters
Overrides
LemonEdge.Client.Core.Views.Core.BaseTreeViewAnyController<LemonEdge.API.Entities.Data.IGrouping>.OnNodeMoved(LemonEdge.Utils.TreeNode<LemonEdge.API.Entities.Data.IGrouping>, LemonEdge.Utils.TreeNode<LemonEdge.API.Entities.Data.IGrouping>, LemonEdge.Utils.TreeNode<LemonEdge.API.Entities.Data.IGrouping>)
OnTrackedItemChanged(object, string)
Provides the inheriting class the opportunity to react to any changed item in the context this View
operates within
Declaration
protected override void OnTrackedItemChanged(object item, string propName)
Parameters
Type |
Name |
Description |
object |
item |
The item that has changed
|
string |
propName |
The name of the property on the item that changed
|
Overrides
UpdateNewItem(IGrouping)
Updates the newly created item to be a child of the currently selected tree node in the TreeView if
there is a current treenode selected
Declaration
protected override Task UpdateNewItem(IGrouping newItem)
Parameters
Type |
Name |
Description |
IGrouping |
newItem |
The new item to be updated as being a child of the currently selected tree node in the tree view
|
Returns
Overrides
LemonEdge.Client.Core.Views.Core.BaseTreeViewController<LemonEdge.API.Entities.Data.IGrouping>.UpdateNewItem(LemonEdge.API.Entities.Data.IGrouping)
UpdateRootCopiedNode(TreeNode<IGrouping>, TreeNode<IGrouping>)
Declaration
protected override Task UpdateRootCopiedNode(TreeNode<IGrouping> original, TreeNode<IGrouping> item)
Parameters
Returns
Overrides
LemonEdge.Client.Core.Views.Core.BaseTreeViewAnyController<LemonEdge.API.Entities.Data.IGrouping>.UpdateRootCopiedNode(LemonEdge.Utils.TreeNode<LemonEdge.API.Entities.Data.IGrouping>, LemonEdge.Utils.TreeNode<LemonEdge.API.Entities.Data.IGrouping>)
Implements
Extension Methods