Search Results for

    Show / Hide Table of Contents

    Class BaseDefaultSingleViewRelatedItemCustomController<Parent, Single>

    Inheritance
    object
    ModelViewController
    BaseDefaultSingleViewController<Single>
    BaseDefaultSingleViewRelatedItemController<Parent, Single>
    BaseDefaultSingleViewRelatedItemCustomController<Parent, Single>
    Implements
    IModelViewController
    Inherited Members
    BaseDefaultSingleViewRelatedItemController<Parent, Single>.LoadSingleItem()
    BaseDefaultSingleViewRelatedItemController<Parent, Single>.AddRelationshipJoin(QueryableExecuter<Single>)
    BaseDefaultSingleViewRelatedItemController<Parent, Single>.Parent
    BaseDefaultSingleViewRelatedItemController<Parent, Single>.ParentToSingleItemRelationshipColumnName
    BaseDefaultSingleViewController<Single>.InitCommands(IList<ViewCommand>)
    BaseDefaultSingleViewController<Single>.ProcessCustomCommandResult(object)
    BaseDefaultSingleViewController<Single>.GetSingleViewController(IBaseDefaultSingleView<Single>, string)
    BaseDefaultSingleViewController<Single>.LoadSingleItem()
    BaseDefaultSingleViewController<Single>.LoadExtendedItem(Type)
    BaseDefaultSingleViewController<Single>.SetAndLoadSingleItem()
    BaseDefaultSingleViewController<Single>.IncrementControlCheck(int)
    BaseDefaultSingleViewController<Single>.DecrementControlCheck()
    BaseDefaultSingleViewController<Single>.DisplayUI()
    BaseDefaultSingleViewController<Single>.DisplayControlItem(ControlDisplayInfo, Single)
    BaseDefaultSingleViewController<Single>.DisplayFormulaItem(ControlDisplayInfo, Single)
    BaseDefaultSingleViewController<Single>.GetControls()
    BaseDefaultSingleViewController<Single>.ControlNames()
    BaseDefaultSingleViewController<Single>.AlterControlInfo(ControlDisplayInfo)
    BaseDefaultSingleViewController<Single>.GetControlDescriptor(EntityDescriptor, string)
    BaseDefaultSingleViewController<Single>.GetControlEntityDescriptor(string)
    BaseDefaultSingleViewController<Single>.SingleItem
    BaseDefaultSingleViewController<Single>.SelectedItemForSubViews
    BaseDefaultSingleViewController<Single>.SingleView
    BaseDefaultSingleViewController<Single>.Descriptor
    BaseDefaultSingleViewController<Single>.ViewMaxWidth
    BaseDefaultSingleViewController<Single>.ViewMaxHeight
    BaseDefaultSingleViewController<Single>.ViewRowCount
    BaseDefaultSingleViewController<Single>.ViewColumnCount
    BaseDefaultSingleViewController<Single>.HasParentToAnyRelationship
    ModelViewController.GetCurrentDisplayedItem(object)
    ModelViewController.Redisplay()
    ModelViewController.Clear()
    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
    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 class BaseDefaultSingleViewRelatedItemCustomController<Parent, Single> : BaseDefaultSingleViewRelatedItemController<Parent, Single>, IModelViewController where Parent : IBaseEntity where Single : IBaseEntity
    Type Parameters
    Name Description
    Parent
    Single

    Constructors

    BaseDefaultSingleViewRelatedItemCustomController(IBaseDefaultSingleViewRelatedItem<Parent, Single>)

    Declaration
    public BaseDefaultSingleViewRelatedItemCustomController(IBaseDefaultSingleViewRelatedItem<Parent, Single> view)
    Parameters
    Type Name Description
    IBaseDefaultSingleViewRelatedItem<Parent, Single> view

    Properties

    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
    ModelViewController.ContextHelpURL

    ListenToChanges

    We check changes if HasParentToAnyRelationship is true

    Declaration
    public override bool ListenToChanges { get; }
    Property Value
    Type Description
    bool
    Overrides
    BaseDefaultSingleViewController<Single>.ListenToChanges

    ParentToSingleItemRelationshipColumnName

    Declaration
    public override string ParentToSingleItemRelationshipColumnName { get; }
    Property Value
    Type Description
    string
    Overrides
    BaseDefaultSingleViewRelatedItemController<Parent, Single>.ParentToSingleItemRelationshipColumnName

    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
    BaseDefaultSingleViewController<Single>.ViewDisplayType

    Methods

    Controls()

    Returns all the controls loaded from LoadControls()

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

    All the controls loaded from LoadControls() which dynamically represent the definitions in ICustomViewControl for this ICustomView

    Overrides
    BaseDefaultSingleViewController<Single>.Controls()

    DisplayItem(object)

    Clears the view, determines if CanWrite is true, and if it ShouldDisplayItem(object?) then calls AddHandlers(object) and DisplayUI()

    Declaration
    public override Task DisplayItem(object item)
    Parameters
    Type Name Description
    object item

    The item to be displayed against this View

    Returns
    Type Description
    Task

    A task indicating the completion of the operation

    Overrides
    ModelViewController.DisplayItem(object)

    InitAsync()

    Provides the controller a chance to initialize any dependant data. Called once by the system after controller creation.

    Declaration
    public override Task InitAsync()
    Returns
    Type Description
    Task

    A task indicating the completion of the operation

    Overrides
    BaseDefaultSingleViewController<Single>.InitAsync()

    LoadControls()

    Loads all the control definitions as defined by the ICustomViewControl collection for the ICustomView specified in the SingleViewControllerCustomViewParams for this view

    Declaration
    public override Task LoadControls()
    Returns
    Type Description
    Task

    All the control definitions as defined by the ICustomViewControl collection for the ICustomView specified in the SingleViewControllerCustomViewParams for this view

    Overrides
    BaseDefaultSingleViewController<Single>.LoadControls()

    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<Single>.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.