Search Results for

    Show / Hide Table of Contents

    Class DisplayableItemDescriptorSingle<T>

    The DisplayableItemDescriptor for an instance of an entity type T

    The Item is the entity itself

    Inheritance
    object
    DisplayableItemDescriptor
    DisplayableItemDescriptorSingle<T>
    Implements
    IEquatable<DisplayableItemDescriptor>
    Inherited Members
    DisplayableItemDescriptor.ItemParams
    DisplayableItemDescriptor.SetLayoutDisplayParam(string)
    DisplayableItemDescriptor.GetLabel()
    DisplayableItemDescriptor.GetLabelWithChanges()
    DisplayableItemDescriptor.Clone(IEntityUpdaterUI)
    DisplayableItemDescriptor.RefreshItemParams()
    DisplayableItemDescriptor.Equals(object)
    DisplayableItemDescriptor.GetHashCode()
    DisplayableItemDescriptor.HelpURL
    DisplayableItemDescriptor.OverlayImageID
    DisplayableItemDescriptor.LayoutDisplayParam
    DisplayableItemDescriptor.ReadOnly
    DisplayableItemDescriptor.Context
    DisplayableItemDescriptor.ParentLayout
    DisplayableItemDescriptor.CustomLayoutOverrideID
    DisplayableItemDescriptor.CustomLayoutOverride
    object.GetType()
    object.MemberwiseClone()
    object.ToString()
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    Namespace: LemonEdge.Client.Core.Views.Core
    Assembly: LemonEdge.ClientCore.dll
    Syntax
    public class DisplayableItemDescriptorSingle<T> : DisplayableItemDescriptor, IEquatable<DisplayableItemDescriptor> where T : IBaseEntity
    Type Parameters
    Name Description
    T

    The type of entity to be loaded and displayed as a collection

    Constructors

    DisplayableItemDescriptorSingle(IEntityUpdaterUI, T)

    Creates a new single item display descriptor for the specified item of type T

    Declaration
    public DisplayableItemDescriptorSingle(IEntityUpdaterUI context, T item)
    Parameters
    Type Name Description
    IEntityUpdaterUI context

    The context updater this descriptor and IModelLayoutDisplayer will operate within

    T item

    The instance of the entity to be displayed in the IModelLayoutDisplayer

    Properties

    ImageID

    Returns the DefaultIconID for this entity type T

    Declaration
    public override Guid ImageID { get; }
    Property Value
    Type Description
    Guid
    Overrides
    DisplayableItemDescriptor.ImageID

    Item

    The entity of type T to be displayed in the IModelLayoutDisplayer

    Declaration
    public override object Item { get; }
    Property Value
    Type Description
    object
    Overrides
    DisplayableItemDescriptor.Item

    LabelBinding

    Returns the LabelColumn for this entity type T

    Declaration
    public override string LabelBinding { get; }
    Property Value
    Type Description
    string
    Overrides
    DisplayableItemDescriptor.LabelBinding

    UniqueLayoutDisplayName

    The unique name for loading a layout to display this item is ItemName

    Declaration
    public override string UniqueLayoutDisplayName { get; }
    Property Value
    Type Description
    string
    Overrides
    DisplayableItemDescriptor.UniqueLayoutDisplayName

    Methods

    ClearItem()

    Declaration
    public override void ClearItem()
    Overrides
    DisplayableItemDescriptor.ClearItem()

    Equals(DisplayableItemDescriptor)

    Declaration
    public override bool Equals(DisplayableItemDescriptor other)
    Parameters
    Type Name Description
    DisplayableItemDescriptor other
    Returns
    Type Description
    bool
    Overrides
    DisplayableItemDescriptor.Equals(DisplayableItemDescriptor?)

    GetTooltip()

    Returns additional information for this entity Item including when it was created (and by whom), along with when it was last updated (and by whom)

    Declaration
    public override Task<string> GetTooltip()
    Returns
    Type Description
    Task<string>

    The standard tool tip for this Item along with additional information for this entity Item including when it was created (and by whom), along with when it was last updated (and by whom)

    Overrides
    DisplayableItemDescriptor.GetTooltip()

    Recreate()

    Recreates this descriptor instance with a new Context and reloads the Item

    Declaration
    public override Task<DisplayableItemDescriptor> Recreate()
    Returns
    Type Description
    Task<DisplayableItemDescriptor>

    A new descriptor instance identical to this one with a new Context and Item

    Overrides
    DisplayableItemDescriptor.Recreate()

    Implements

    IEquatable<T>

    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.