Search Results for

    Show / Hide Table of Contents

    Class FoldersController

    Inheritance
    object
    ModelViewController
    BaseTreeViewAnyController<IFolder>
    BaseTreeViewController<IFolder>
    FoldersController
    Implements
    ICollectionExportable
    ISearchController
    IModelViewController
    Inherited Members
    BaseTreeViewController<IFolder>.AlterQuery(QueryableExecuter<IFolder>)
    BaseTreeViewController<IFolder>.GetIDValue(IFolder)
    BaseTreeViewController<IFolder>.CreateNewItem()
    BaseTreeViewController<IFolder>.OnItemMovedUpOrDown(IFolder, bool)
    BaseTreeViewController<IFolder>.InsertAndSelectNewItem(IFolder)
    BaseTreeViewController<IFolder>.CreateCopiedNode(TreeNode<IFolder>, TreeNode<IFolder>)
    BaseTreeViewController<IFolder>.LoadItems()
    BaseTreeViewController<IFolder>.GetQueryForExcelResults()
    BaseTreeViewController<IFolder>.CommandNewAllow
    BaseTreeViewController<IFolder>.CommandDeleteAllow
    BaseTreeViewController<IFolder>.CommandNewType
    BaseTreeViewController<IFolder>.CommandNew
    BaseTreeViewController<IFolder>.CommandCopy
    BaseTreeViewController<IFolder>.CommandOpen
    BaseTreeViewController<IFolder>.CommandDelete
    BaseTreeViewController<IFolder>.AutoPromptForLabelOnNew
    BaseTreeViewAnyController<IFolder>._descriptor
    BaseTreeViewAnyController<IFolder>._items
    BaseTreeViewAnyController<IFolder>._rootNodes
    BaseTreeViewAnyController<IFolder>.HasLazyChildrenToLoad(TreeNode<IFolder>)
    BaseTreeViewAnyController<IFolder>.CanMoveToRoot(IFolder)
    BaseTreeViewAnyController<IFolder>.CanMoveAsChildOfItem(IFolder, IFolder)
    BaseTreeViewAnyController<IFolder>.OnNodeMoved(TreeNode<IFolder>, TreeNode<IFolder>, TreeNode<IFolder>)
    BaseTreeViewAnyController<IFolder>.LoadDataForCopyingNode(TreeNode<IFolder>)
    BaseTreeViewAnyController<IFolder>.UpdateRootCopiedNode(TreeNode<IFolder>, TreeNode<IFolder>)
    BaseTreeViewAnyController<IFolder>.GetTreeController(IBaseTreeView<IFolder>)
    BaseTreeViewAnyController<IFolder>.Clear()
    BaseTreeViewAnyController<IFolder>.CloseController()
    BaseTreeViewAnyController<IFolder>.LazyLoadChildren(TreeNode<IFolder>)
    BaseTreeViewAnyController<IFolder>.WrapAsTreeNodes(IEnumerable<IFolder>)
    BaseTreeViewAnyController<IFolder>.CreateWrapper(IFolder, TreeNode<IFolder>)
    BaseTreeViewAnyController<IFolder>.OnSelectionChanged(object, EventArgs)
    BaseTreeViewAnyController<IFolder>.OpenItem(IFolder)
    BaseTreeViewAnyController<IFolder>.OnDeleteItem(IFolder)
    BaseTreeViewAnyController<IFolder>.WrapAsTreeNodes(TreeNode<IFolder>, IEnumerable<IFolder>)
    BaseTreeViewAnyController<IFolder>.ToggleSearch(bool)
    BaseTreeViewAnyController<IFolder>.SetSearch(string, IEnumerable<string>)
    BaseTreeViewAnyController<IFolder>.GetExportableColumnInfo(IEnumerable<ColumnDescriptor>)
    BaseTreeViewAnyController<IFolder>.GetVisibleColumnNames()
    BaseTreeViewAnyController<IFolder>.ColumnGroups()
    BaseTreeViewAnyController<IFolder>.IgnoreEvents
    BaseTreeViewAnyController<IFolder>.TreeView
    BaseTreeViewAnyController<IFolder>.Descriptor
    BaseTreeViewAnyController<IFolder>.Roots
    BaseTreeViewAnyController<IFolder>.SelectedItemForSubViews
    BaseTreeViewAnyController<IFolder>.GetDefaultOrderPropertyName
    BaseTreeViewAnyController<IFolder>.GetDefaultOrder
    BaseTreeViewAnyController<IFolder>.GetTreeNodeColorPropertyName
    BaseTreeViewAnyController<IFolder>.GetTreeNodeTooltipPropertyName
    BaseTreeViewAnyController<IFolder>.LoadedItems
    BaseTreeViewAnyController<IFolder>.CommandNewCanCreate
    BaseTreeViewAnyController<IFolder>.CommandDeleteCanDelete
    BaseTreeViewAnyController<IFolder>.CommandRenameAllow
    BaseTreeViewAnyController<IFolder>.CommandAllowSearch
    BaseTreeViewAnyController<IFolder>.OpenFromRelatedColumnName
    BaseTreeViewAnyController<IFolder>.CommandNewAllowMultipleRoots
    BaseTreeViewAnyController<IFolder>.AutoExpandAll
    BaseTreeViewAnyController<IFolder>.SearchColumns
    BaseTreeViewAnyController<IFolder>.SearchGroups
    BaseTreeViewAnyController<IFolder>.SearchElements
    BaseTreeViewAnyController<IFolder>.CollectionType
    BaseTreeViewAnyController<IFolder>.OnlyExportGrid
    BaseTreeViewAnyController<IFolder>.OnlyExportFromQuery
    BaseTreeViewAnyController<IFolder>.PagerRequired
    BaseTreeViewAnyController<IFolder>.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.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.Controllers
    Assembly: LemonEdge.ClientCore.dll
    Syntax
    public class FoldersController : BaseTreeViewController<IFolder>, ICollectionExportable, ISearchController, IModelViewController

    Constructors

    FoldersController(IBaseTreeView<IFolder>)

    Declaration
    public FoldersController(IBaseTreeView<IFolder> view)
    Parameters
    Type Name Description
    IBaseTreeView<IFolder> view

    Properties

    AllowXMLImportExport

    Declaration
    public override bool AllowXMLImportExport { get; }
    Property Value
    Type Description
    bool
    Overrides
    BaseTreeViewAnyController<IFolder>.AllowXMLImportExport

    CommandCopyAllow

    Indicates if copying should be allowed in this view

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

    CommandOpenAllow

    Indicates if the view should show the Open command - default is false

    Declaration
    public override bool CommandOpenAllow { get; }
    Property Value
    Type Description
    bool
    Overrides
    BaseTreeViewAnyController<IFolder>.CommandOpenAllow

    ForceSubViewUpdateOnChangeEvenIfSame

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

    GetParentIDPropertyName

    Returns the property on the entity type IFolder that holds the relationship to the parent instance of type IFolder too

    Declaration
    protected override string GetParentIDPropertyName { get; }
    Property Value
    Type Description
    string
    Overrides
    BaseTreeViewAnyController<IFolder>.GetParentIDPropertyName

    GetTreeNodeIconPropertyName

    Declaration
    public override string GetTreeNodeIconPropertyName { get; }
    Property Value
    Type Description
    string
    Overrides
    BaseTreeViewAnyController<IFolder>.GetTreeNodeIconPropertyName

    GetTreeNodeLabelPropertyName

    Returns the property on the entity type IFolder 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
    BaseTreeViewAnyController<IFolder>.GetTreeNodeLabelPropertyName

    ListenToChanges

    Indicates that this controller should be notified of changes made to any tracked item in this context via the OnTrackedItemChanged(object, string)

    Declaration
    public override bool ListenToChanges { get; }
    Property Value
    Type Description
    bool
    Overrides
    ModelViewController.ListenToChanges

    RenameHasOtherProperties

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

    ShouldShowHiddenFolders

    Declaration
    public bool ShouldShowHiddenFolders { get; set; }
    Property Value
    Type Description
    bool

    Methods

    DisplayUI()

    Loads all the entities of type IFolder 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
    BaseTreeViewAnyController<IFolder>.DisplayUI()

    GetQuery()

    Returns the query to load all the entities of type IFolder 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 override QueryableExecuter<IFolder> GetQuery()
    Returns
    Type Description
    QueryableExecuter<IFolder>

    The query to load all the relevant tree view entities with

    Overrides
    BaseTreeViewController<IFolder>.GetQuery()

    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
    BaseTreeViewController<IFolder>.InitCommands(IList<ViewCommand>)

    PromptForItemLabel(IFolder)

    Declaration
    public override Task PromptForItemLabel(IFolder item)
    Parameters
    Type Name Description
    IFolder item
    Returns
    Type Description
    Task
    Overrides
    BaseTreeViewAnyController<IFolder>.PromptForItemLabel(IFolder)

    UpdateNewItem(IFolder)

    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(IFolder newItem)
    Parameters
    Type Name Description
    IFolder 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
    BaseTreeViewController<IFolder>.UpdateNewItem(IFolder)

    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.