Search Results for

    Show / Hide Table of Contents

    Class ViewDescriptorEnumerator

    A class that provides an enumeration of all possible view descriptor instances for a specific IModelView

    This can be referenced in the ViewDescriptorAttribute for a IModelView

    Inheritance
    object
    ViewDescriptorEnumerator
    BaseDynamicLayoutViewEnumerator
    BaseEntityDefaultSingleViewInstanceEnumerator
    BaseEntityDefaultTreeViewInstanceEnumerator
    BaseGridEntityCollectionViewInstanceEnumerator
    Inherited Members
    object.GetType()
    object.MemberwiseClone()
    object.ToString()
    object.Equals(object)
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    object.GetHashCode()
    Namespace: LemonEdge.Client.UI.API.Views
    Assembly: LemonEdge.Client.UI.API.dll
    Syntax
    public abstract class ViewDescriptorEnumerator

    Constructors

    ViewDescriptorEnumerator(IEntityDescriptorFactory, IReflectionHelper)

    Declaration
    protected ViewDescriptorEnumerator(IEntityDescriptorFactory entityDescriptorFactory, IReflectionHelper reflectionHelper)
    Parameters
    Type Name Description
    IEntityDescriptorFactory entityDescriptorFactory
    IReflectionHelper reflectionHelper

    Fields

    EntityDescriptorFactory

    Declaration
    protected readonly IEntityDescriptorFactory EntityDescriptorFactory
    Field Value
    Type Description
    IEntityDescriptorFactory

    ReflectionHelper

    Declaration
    protected readonly IReflectionHelper ReflectionHelper
    Field Value
    Type Description
    IReflectionHelper

    Methods

    GetAnyReplacingVersion(ViewDescriptorInstance)

    Provides an opportunity to replace a view descriptor instance with another one when used from ViewDescriptorInstance.CreateView(IModelLayoutDisplayer)

    This is used by the system implementation of IBaseGrid<T> and IBaseDefaultSingleView<T> to provide an override to use a custom grid or view instead (from ICustomGrid, or ICustomView) when ReplaceCoreView is specified

    By default this just returns ofView
    Declaration
    public virtual ViewDescriptorInstance GetAnyReplacingVersion(ViewDescriptorInstance ofView)
    Parameters
    Type Name Description
    ViewDescriptorInstance ofView

    The view to automatically replace with a different view instance if the user has specified that view descriptor should always be overridden with a different one

    Returns
    Type Description
    ViewDescriptorInstance

    A different view descriptor if the user has specified to always override the provided ofView system one with a different one. otherwise just returns ofView

    GetViewInstances()

    Provides an enumeration of all the View Descriptor Instances that can be used against the IModelView the ViewDescriptorAttribute is marked against

    Declaration
    public abstract IEnumerable<ViewDescriptorInstance> GetViewInstances()
    Returns
    Type Description
    IEnumerable<ViewDescriptorInstance>

    An enumeration of all the View Descriptor Instances that can be used against the IModelView the ViewDescriptorAttribute is marked against

    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.