Search Results for

    Show / Hide Table of Contents

    Class CodeSnippetCodeController

    Inheritance
    object
    ModelViewController
    BaseDefaultSingleViewController<ICodeSnippet>
    CodeSnippetCodeController
    Implements
    IModelViewController
    Inherited Members
    BaseDefaultSingleViewController<ICodeSnippet>.ProcessCustomCommandResult(object)
    BaseDefaultSingleViewController<ICodeSnippet>.GetSingleViewController(IBaseDefaultSingleView<ICodeSnippet>, string)
    BaseDefaultSingleViewController<ICodeSnippet>.InitAsync()
    BaseDefaultSingleViewController<ICodeSnippet>.LoadSingleItem()
    BaseDefaultSingleViewController<ICodeSnippet>.LoadExtendedItem(Type)
    BaseDefaultSingleViewController<ICodeSnippet>.SetAndLoadSingleItem()
    BaseDefaultSingleViewController<ICodeSnippet>.LoadControls()
    BaseDefaultSingleViewController<ICodeSnippet>.IncrementControlCheck(int)
    BaseDefaultSingleViewController<ICodeSnippet>.DecrementControlCheck()
    BaseDefaultSingleViewController<ICodeSnippet>.DisplayUI()
    BaseDefaultSingleViewController<ICodeSnippet>.DisplayControlItem(ControlDisplayInfo, ICodeSnippet)
    BaseDefaultSingleViewController<ICodeSnippet>.DisplayFormulaItem(ControlDisplayInfo, ICodeSnippet)
    BaseDefaultSingleViewController<ICodeSnippet>.GetControls()
    BaseDefaultSingleViewController<ICodeSnippet>.GetControlDescriptor(EntityDescriptor, string)
    BaseDefaultSingleViewController<ICodeSnippet>.GetControlEntityDescriptor(string)
    BaseDefaultSingleViewController<ICodeSnippet>.SingleItem
    BaseDefaultSingleViewController<ICodeSnippet>.SingleView
    BaseDefaultSingleViewController<ICodeSnippet>.Descriptor
    BaseDefaultSingleViewController<ICodeSnippet>.ViewMaxWidth
    BaseDefaultSingleViewController<ICodeSnippet>.ViewMaxHeight
    BaseDefaultSingleViewController<ICodeSnippet>.ViewRowCount
    BaseDefaultSingleViewController<ICodeSnippet>.ViewColumnCount
    BaseDefaultSingleViewController<ICodeSnippet>.HasParentToAnyRelationship
    ModelViewController.DisplayItem(object)
    ModelViewController.GetCurrentDisplayedItem(object)
    ModelViewController.Redisplay()
    ModelViewController.CloseController()
    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.ClientEntities.dll
    Syntax
    public class CodeSnippetCodeController : BaseDefaultSingleViewController<ICodeSnippet>, IModelViewController

    Constructors

    CodeSnippetCodeController(IBaseDefaultSingleView<ICodeSnippet>)

    Declaration
    public CodeSnippetCodeController(IBaseDefaultSingleView<ICodeSnippet> view)
    Parameters
    Type Name Description
    IBaseDefaultSingleView<ICodeSnippet> view

    Properties

    ListenToChanges

    We check changes if HasParentToAnyRelationship is true

    Declaration
    public override bool ListenToChanges { get; }
    Property Value
    Type Description
    bool
    Overrides
    LemonEdge.Client.Core.Views.Core.BaseDefaultSingleViewController<LemonEdge.API.Entities.Design.ICodeSnippet>.ListenToChanges

    SelectedItemForSubViews

    Returns the item this view holds that can be passed to sub views

    This controller can change the item is passes to sub views (such as when this represents the selected item in a grid) by calling UpdateSubViews(IModelView, bool)

    Declaration
    public override object SelectedItemForSubViews { get; }
    Property Value
    Type Description
    object
    Overrides
    LemonEdge.Client.Core.Views.Core.BaseDefaultSingleViewController<LemonEdge.API.Entities.Design.ICodeSnippet>.SelectedItemForSubViews

    ViewDisplayType

    Indicates how the controls should be laid out in the client application ui for the view (in compatible UIs)

    The default is HorizontalWrapPanel

    Declaration
    public override CustomViewDisplayType ViewDisplayType { get; }
    Property Value
    Type Description
    CustomViewDisplayType
    Overrides
    LemonEdge.Client.Core.Views.Core.BaseDefaultSingleViewController<LemonEdge.API.Entities.Design.ICodeSnippet>.ViewDisplayType

    Methods

    AlterControlInfo(ControlDisplayInfo)

    Automatically assigns relationship control info and other work for controls from the entity definition itself

    Provides inheriting classes the option to tailor any control as much as they like before it is created in the SingleView

    Declaration
    protected override void AlterControlInfo(ControlDisplayInfo info)
    Parameters
    Type Name Description
    ControlDisplayInfo info

    The control definition to be altered

    Overrides
    LemonEdge.Client.Core.Views.Core.BaseDefaultSingleViewController<LemonEdge.API.Entities.Design.ICodeSnippet>.AlterControlInfo(LemonEdge.Client.UI.API.Controls.ControlDisplayInfo)

    Clear()

    Clears the associated View back to an initial blank state

    Declaration
    public override Task Clear()
    Returns
    Type Description
    Task

    A task indicating the completion of the operation

    Overrides
    ModelViewController.Clear()

    ControlNames()

    A list of all the controls to be dynamically created in the SingleView

    This is used by the system to create the actual ControlDisplayInfo classes required from the Controls() property

    You can override this to provide a simple definition of each control (combined with AlterControlInfo(ControlDisplayInfo) for more detail), or you can just override Controls() and ignore this
    Declaration
    protected override IEnumerable<ControlDisplayInfoLight> ControlNames()
    Returns
    Type Description
    IEnumerable<ControlDisplayInfoLight>

    A list of all the controls to be dynamically created in the SingleView

    Overrides
    LemonEdge.Client.Core.Views.Core.BaseDefaultSingleViewController<LemonEdge.API.Entities.Design.ICodeSnippet>.ControlNames()

    Controls()

    A list of all the controls to be dynamically created in the SingleView

    Can be overridden by the inheriting class to indicate the controls required. Typically you can override ControlNames() for a lighter approach and AlterControlInfo(ControlDisplayInfo) for any specific detail

    Declaration
    protected override IEnumerable<ControlDisplayInfo> Controls()
    Returns
    Type Description
    IEnumerable<ControlDisplayInfo>

    A list of all the controls to be dynamically created in the SingleView

    Overrides
    LemonEdge.Client.Core.Views.Core.BaseDefaultSingleViewController<LemonEdge.API.Entities.Design.ICodeSnippet>.Controls()

    InitCommands(IList<ViewCommand>)

    Provides the inheriting class an opportunity to add custom commands to this controller

    Declaration
    protected override void InitCommands(IList<ViewCommand> commands)
    Parameters
    Type Name Description
    IList<ViewCommand> commands

    The current set of commands for this controller

    Overrides
    BaseDefaultSingleViewController<ICodeSnippet>.InitCommands(IList<ViewCommand>)

    OnTrackedItemChanged(object, string)

    If HasParentToAnyRelationship is true then it will update the control holding that relationship value to keep changes in sync in the views to the user

    Declaration
    protected override void OnTrackedItemChanged(object item, string propName)
    Parameters
    Type Name Description
    object item

    The item that had a property changed

    string propName

    The name of the changed property

    Overrides
    BaseDefaultSingleViewController<ICodeSnippet>.OnTrackedItemChanged(object, string)

    Implements

    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.