Search Results for

    Show / Hide Table of Contents

    Class BaseTreeViewController<T>

    Inheritance
    object
    ModelViewController
    BaseTreeViewAnyController<T>
    BaseTreeViewController<T>
    FoldersController
    GroupingsController
    BaseTreeViewRelatedController<SI, T>
    Implements
    ICollectionExportable
    ISearchController
    IModelViewController
    Inherited Members
    BaseTreeViewAnyController<T>._descriptor
    BaseTreeViewAnyController<T>._items
    BaseTreeViewAnyController<T>._rootNodes
    BaseTreeViewAnyController<T>.HasLazyChildrenToLoad(TreeNode<T>)
    BaseTreeViewAnyController<T>.CanMoveToRoot(T)
    BaseTreeViewAnyController<T>.CanMoveAsChildOfItem(T, T)
    BaseTreeViewAnyController<T>.OnNodeMoved(TreeNode<T>, TreeNode<T>, TreeNode<T>)
    BaseTreeViewAnyController<T>.LoadDataForCopyingNode(TreeNode<T>)
    BaseTreeViewAnyController<T>.UpdateRootCopiedNode(TreeNode<T>, TreeNode<T>)
    BaseTreeViewAnyController<T>.GetTreeController(IBaseTreeView<T>)
    BaseTreeViewAnyController<T>.Clear()
    BaseTreeViewAnyController<T>.CloseController()
    BaseTreeViewAnyController<T>.DisplayUI()
    BaseTreeViewAnyController<T>.LazyLoadChildren(TreeNode<T>)
    BaseTreeViewAnyController<T>.WrapAsTreeNodes(IEnumerable<T>)
    BaseTreeViewAnyController<T>.CreateWrapper(T, TreeNode<T>)
    BaseTreeViewAnyController<T>.OnSelectionChanged(object, EventArgs)
    BaseTreeViewAnyController<T>.PromptForItemLabel(T)
    BaseTreeViewAnyController<T>.OpenItem(T)
    BaseTreeViewAnyController<T>.OnDeleteItem(T)
    BaseTreeViewAnyController<T>.WrapAsTreeNodes(TreeNode<T>, IEnumerable<T>)
    BaseTreeViewAnyController<T>.ToggleSearch(bool)
    BaseTreeViewAnyController<T>.SetSearch(string, IEnumerable<string>)
    BaseTreeViewAnyController<T>.GetExportableColumnInfo(IEnumerable<ColumnDescriptor>)
    BaseTreeViewAnyController<T>.GetVisibleColumnNames()
    BaseTreeViewAnyController<T>.ColumnGroups()
    BaseTreeViewAnyController<T>.IgnoreEvents
    BaseTreeViewAnyController<T>.TreeView
    BaseTreeViewAnyController<T>.Descriptor
    BaseTreeViewAnyController<T>.Roots
    BaseTreeViewAnyController<T>.SelectedItemForSubViews
    BaseTreeViewAnyController<T>.GetParentIDPropertyName
    BaseTreeViewAnyController<T>.GetDefaultOrderPropertyName
    BaseTreeViewAnyController<T>.GetDefaultOrder
    BaseTreeViewAnyController<T>.GetTreeNodeLabelPropertyName
    BaseTreeViewAnyController<T>.GetTreeNodeColorPropertyName
    BaseTreeViewAnyController<T>.GetTreeNodeIconPropertyName
    BaseTreeViewAnyController<T>.GetTreeNodeTooltipPropertyName
    BaseTreeViewAnyController<T>.LoadedItems
    BaseTreeViewAnyController<T>.CommandNewCanCreate
    BaseTreeViewAnyController<T>.CommandCopyAllow
    BaseTreeViewAnyController<T>.CommandOpenAllow
    BaseTreeViewAnyController<T>.CommandDeleteCanDelete
    BaseTreeViewAnyController<T>.CommandRenameAllow
    BaseTreeViewAnyController<T>.RenameHasOtherProperties
    BaseTreeViewAnyController<T>.CommandAllowSearch
    BaseTreeViewAnyController<T>.OpenFromRelatedColumnName
    BaseTreeViewAnyController<T>.CommandNewAllowMultipleRoots
    BaseTreeViewAnyController<T>.AutoExpandAll
    BaseTreeViewAnyController<T>.AllowXMLImportExport
    BaseTreeViewAnyController<T>.ForceSubViewUpdateOnChangeEvenIfSame
    BaseTreeViewAnyController<T>.SearchColumns
    BaseTreeViewAnyController<T>.SearchGroups
    BaseTreeViewAnyController<T>.SearchElements
    BaseTreeViewAnyController<T>.CollectionType
    BaseTreeViewAnyController<T>.OnlyExportGrid
    BaseTreeViewAnyController<T>.OnlyExportFromQuery
    BaseTreeViewAnyController<T>.PagerRequired
    BaseTreeViewAnyController<T>.CurrentGridItems
    ModelViewController.InitAsync()
    ModelViewController.DisplayItem(object)
    ModelViewController.GetCurrentDisplayedItem(object)
    ModelViewController.Redisplay()
    ModelViewController.OnTrackedItemChanged(object, string)
    ModelViewController.GetCanWrite(object)
    ModelViewController.ShouldDisplayItem(object)
    ModelViewController.RemoveHandlers(object)
    ModelViewController.AddHandlers(object)
    ModelViewController.RemoveCommand(ViewCommand)
    ModelViewController.RemoveCommands<TOfType>()
    ModelViewController.InsertCommand(ViewCommand, int)
    ModelViewController.InsertCommand(ViewCommand, ViewCommand, ViewCommand)
    ModelViewController.UpdateAllCommands()
    ModelViewController.GetNestedViews()
    ModelViewController.RootController
    ModelViewController.ServiceContext
    ModelViewController.UIContext
    ModelViewController.CanWrite
    ModelViewController.ListenToChanges
    ModelViewController.TrackChanges
    ModelViewController.CheckIsLockedForCanWrite
    ModelViewController.DisplayIfNull
    ModelViewController.CurrentDisplayedItem
    ModelViewController.View
    ModelViewController.Commands
    ModelViewController.ContextHelpURL
    object.GetType()
    object.MemberwiseClone()
    object.ToString()
    object.Equals(object)
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    object.GetHashCode()
    Namespace: LemonEdge.Client.Core.Views.Core
    Assembly: LemonEdge.ClientCore.dll
    Syntax
    public abstract class BaseTreeViewController<T> : BaseTreeViewAnyController<T>, ICollectionExportable, ISearchController, IModelViewController where T : IBaseEntity
    Type Parameters
    Name Description
    T

    Constructors

    BaseTreeViewController(IBaseTreeView<T>)

    Declaration
    public BaseTreeViewController(IBaseTreeView<T> view)
    Parameters
    Type Name Description
    IBaseTreeView<T> view

    Properties

    AutoPromptForLabelOnNew

    Declaration
    protected override bool AutoPromptForLabelOnNew { get; }
    Property Value
    Type Description
    bool
    Overrides
    BaseTreeViewAnyController<T>.AutoPromptForLabelOnNew

    CommandCopy

    Provides the ability for an inheriting class to override the Copy command

    Declaration
    protected override ViewCommand CommandCopy { get; }
    Property Value
    Type Description
    ViewCommand
    Overrides
    BaseTreeViewAnyController<T>.CommandCopy

    CommandDelete

    Provides the ability for an inheriting class to override the Delete command

    Declaration
    protected override ViewCommand CommandDelete { get; }
    Property Value
    Type Description
    ViewCommand
    Overrides
    BaseTreeViewAnyController<T>.CommandDelete

    CommandDeleteAllow

    Indicates if the view should show the Delete command - default is true

    Declaration
    protected override bool CommandDeleteAllow { get; }
    Property Value
    Type Description
    bool
    Overrides
    BaseTreeViewAnyController<T>.CommandDeleteAllow

    CommandNew

    Provides the ability for an inheriting class to override the New command

    Declaration
    protected override ViewCommand CommandNew { get; }
    Property Value
    Type Description
    ViewCommand
    Overrides
    BaseTreeViewAnyController<T>.CommandNew

    CommandNewAllow

    Indicates if the view should show the New command - Default is true

    Declaration
    protected override bool CommandNewAllow { get; }
    Property Value
    Type Description
    bool
    Overrides
    BaseTreeViewAnyController<T>.CommandNewAllow

    CommandNewType

    Declaration
    protected override Type CommandNewType { get; }
    Property Value
    Type Description
    Type
    Overrides
    BaseTreeViewAnyController<T>.CommandNewType

    CommandOpen

    Provides the ability for an inheriting class to override the Open command

    Declaration
    protected override ViewCommand CommandOpen { get; }
    Property Value
    Type Description
    ViewCommand
    Overrides
    BaseTreeViewAnyController<T>.CommandOpen

    Methods

    AlterQuery(QueryableExecuter<T>)

    Provides an inheriting class the oportunity to alter the default query with custom options

    Declaration
    protected virtual QueryableExecuter<T> AlterQuery(QueryableExecuter<T> query)
    Parameters
    Type Name Description
    QueryableExecuter<T> query

    The default query to load all the entities for

    Returns
    Type Description
    QueryableExecuter<T>

    The query to load all the relevant tree view entities with

    CreateCopiedNode(TreeNode<T>, TreeNode<T>)

    Declaration
    protected override Task<TreeNode<T>> CreateCopiedNode(TreeNode<T> original, TreeNode<T> copiedParent)
    Parameters
    Type Name Description
    TreeNode<T> original
    TreeNode<T> copiedParent
    Returns
    Type Description
    Task<TreeNode<T>>
    Overrides
    BaseTreeViewAnyController<T>.CreateCopiedNode(TreeNode<T>, TreeNode<T>)

    CreateNewItem()

    Creates a new entity of type T

    Declaration
    protected virtual Task<T> CreateNewItem()
    Returns
    Type Description
    Task<T>

    GetIDValue(T)

    Declaration
    public override Guid GetIDValue(T item)
    Parameters
    Type Name Description
    T item
    Returns
    Type Description
    Guid
    Overrides
    BaseTreeViewAnyController<T>.GetIDValue(T)

    GetQuery()

    Returns the query to load all the entities of type T in to the tree view with

    If the ItemParams has a DisplayableItemDescriptorForCollectionParams to filter the result set by then this is also included in the returned query

    Declaration
    protected virtual QueryableExecuter<T> GetQuery()
    Returns
    Type Description
    QueryableExecuter<T>

    The query to load all the relevant tree view entities with

    GetQueryForExcelResults()

    Returns the query used to load all the entities in the tree view display

    Declaration
    public override QueryableExecuter GetQueryForExcelResults()
    Returns
    Type Description
    QueryableExecuter
    Overrides
    BaseTreeViewAnyController<T>.GetQueryForExcelResults()

    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
    BaseTreeViewAnyController<T>.InitCommands(IList<ViewCommand>)

    InsertAndSelectNewItem(T)

    Declaration
    protected void InsertAndSelectNewItem(T item)
    Parameters
    Type Name Description
    T item

    LoadItems()

    The method used by DisplayUI() to load all the entities for this tree view

    Declaration
    protected override Task<IEnumerable<T>> LoadItems()
    Returns
    Type Description
    Task<IEnumerable<T>>

    The list of loaded entities to be displayed in the tree view

    Overrides
    BaseTreeViewAnyController<T>.LoadItems()

    OnItemMovedUpOrDown(T, bool)

    Declaration
    protected virtual void OnItemMovedUpOrDown(T item, bool movedUp)
    Parameters
    Type Name Description
    T item
    bool movedUp

    UpdateNewItem(T)

    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(T newItem)
    Parameters
    Type Name Description
    T newItem

    The new item to be updated as being a child of the currently selected tree node in the tree view

    Returns
    Type Description
    Task
    Overrides
    BaseTreeViewAnyController<T>.UpdateNewItem(T)

    Implements

    ICollectionExportable
    ISearchController
    IModelViewController

    Extension Methods

    LinqExtensions.AsArray<T>(T)
    LinqExtensions.ToArrayOfOne<T>(T)
    LinqExtensions.ToListOfOne<T>(T)
    MiscExtensions.SetIfNotEqual<T, TP>(T, Expression<Func<T, TP>>, TP)
    WeakReferenceExtensions.WeakReference(object)
    SQLExtensions.ToSQLValue(object, bool)
    ReflectionExtensions.ClearEventInvocations(object, string)
    StringExtensions.ToCSVFormatString(object, Type)
    In this article
    Back to top © LemonEdge Technologies. All rights reserved.