Class VennSetWhereFiltersController
Inheritance
Inherited Members
Namespace: LemonEdge.Client.Core.Views.Controllers
Assembly: LemonEdge.ClientEntities.dll
Syntax
public class VennSetWhereFiltersController : BaseTreeViewRelatedController<IVennSetQueryableItem, IFilterDescriptor>, ICollectionExportable, ISearchController, IModelViewController
Constructors
VennSetWhereFiltersController(IBaseTreeView<IFilterDescriptor>)
Declaration
public VennSetWhereFiltersController(IBaseTreeView<IFilterDescriptor> view)
Parameters
Type | Name | Description |
---|---|---|
IBaseTreeView<IFilterDescriptor> | view |
Properties
AutoExpandAll
Indicates when loaded the system should automatically expand the entire tree view in the ui. Automated if the ui view implements IBaseTreeViewWithExpansion<T>
Default is false
Declaration
protected override bool AutoExpandAll { get; }
Property Value
Type | Description |
---|---|
bool |
Overrides
AutoPromptForLabelOnNew
Declaration
protected override bool AutoPromptForLabelOnNew { get; }
Property Value
Type | Description |
---|---|
bool |
Overrides
ContextHelpURL
An optional associated url of a help file for the view this controller works with
Declaration
public override string ContextHelpURL { get; }
Property Value
Type | Description |
---|---|
string |
Overrides
GetParentIDPropertyName
Returns the property on the entity type IFilterDescriptor that holds the relationship to the parent instance of type IFilterDescriptor too
Declaration
protected override string GetParentIDPropertyName { get; }
Property Value
Type | Description |
---|---|
string |
Overrides
GetRelationPropName
The name of the property on the entity type IFilterDescriptor that holds the value to the instance of the parent item of type IVennSetQueryableItem in this tree view
Declaration
protected override string GetRelationPropName { get; }
Property Value
Type | Description |
---|---|
string |
Overrides
GetTreeNodeLabelPropertyName
Returns the property on the entity type IFilterDescriptor 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
Type | Description |
---|---|
string |
Overrides
Methods
CanMoveAsChildOfItem(IFilterDescriptor, IFilterDescriptor)
Indicates this item is allowed to be moved to be a child of the specified parent item
Declaration
public override bool CanMoveAsChildOfItem(IFilterDescriptor moveItem, IFilterDescriptor newParentItem)
Parameters
Type | Name | Description |
---|---|---|
IFilterDescriptor | moveItem | The item to be moved to be a child of the specified item |
IFilterDescriptor | newParentItem | The item to become a parent of the item being moved |
Returns
Type | Description |
---|---|
bool | True if the moveItem can become a chile of the specified newParentItem |
Overrides
CreateNewItem()
Creates a new entity of type IFilterDescriptor
Declaration
protected override Task<IFilterDescriptor> CreateNewItem()
Returns
Type | Description |
---|---|
Task<IFilterDescriptor> |
Overrides
DisplayUI()
Loads all the entities of type IFilterDescriptor for this tree view, wraps them in a TreeNode<T> and displays them in the TreeView
Declaration
public override Task DisplayUI()
Returns
Type | Description |
---|---|
Task | A task indicating the completion of the operation |
Overrides
InitCommands(IList<ViewCommand>)
Adds the following commands: Open, New, Delete, MoveUp, MoveDown, and Export Data
Declaration
protected override void InitCommands(IList<ViewCommand> commands)
Parameters
Type | Name | Description |
---|---|---|
IList<ViewCommand> | commands | The initial set of commands |
Overrides
LoadItems()
The method used by DisplayUI() to load all the entities for this tree view
Declaration
protected override Task<IEnumerable<IFilterDescriptor>> LoadItems()
Returns
Type | Description |
---|---|
Task<IEnumerable<IFilterDescriptor>> | The list of loaded entities to be displayed in the tree view |
Overrides
OnDeleteItem(IFilterDescriptor)
Removes the specified item from the internal tree node collection.
You still have to call RedisplayNode(TreeNode<T>)
Declaration
protected override void OnDeleteItem(IFilterDescriptor newItem)
Parameters
Type | Name | Description |
---|---|---|
IFilterDescriptor | newItem | The item being deleted from this treenode collection |