Search Results for

    Show / Hide Table of Contents

    Class DefaultEntityCollectionLayouts

    Creates a default layout generator for a specified entity descriptor that has a default collection grid view

    This single grid view takes up 100% of the layout

    This is used automatically by the system if a collection of entities needs to be displayed, but there are no layouts for it. As long as there is a grid it will generate this default layout that uses that for the entire layout
    Inheritance
    object
    DefaultLayoutGenerator
    DefaultEntityCollectionLayouts
    Implements
    ILayoutGenerator
    Inherited Members
    DefaultLayoutGenerator.LayoutHelpURL
    object.GetType()
    object.ToString()
    object.Equals(object)
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    object.GetHashCode()
    Namespace: LemonEdge.Client.Core.Views.DefaultLayouts
    Assembly: LemonEdge.ClientCore.dll
    Syntax
    public sealed class DefaultEntityCollectionLayouts : DefaultLayoutGenerator, ILayoutGenerator

    Constructors

    DefaultEntityCollectionLayouts(EntityDescriptor, IRootController)

    Creates a new DefaultEntityCollectionLayouts for the specified entity type descriptor

    Declaration
    public DefaultEntityCollectionLayouts(EntityDescriptor descriptor, IRootController rootController)
    Parameters
    Type Name Description
    EntityDescriptor descriptor

    The type of entity to create a layout with a single grid in it for

    IRootController rootController

    The root controller, for access to services

    Methods

    CanGenerateLayout(string, string)

    Returns true if the uniqueLayoutName matches the SetName

    Declaration
    public override bool CanGenerateLayout(string uniqueLayoutName, string layoutParam)
    Parameters
    Type Name Description
    string uniqueLayoutName

    The unique layout name to generate a layout for

    string layoutParam

    Any optional parameters for the layout

    Returns
    Type Description
    bool

    True if the uniqueLayoutName matches the SetName

    Overrides
    DefaultLayoutGenerator.CanGenerateLayout(string, string)

    GenerateLayout(string, string)

    Creates a new layout that has a single IBaseGrid grid of the specified entity type that takes 100% of the layout

    Declaration
    public override Task<LayoutDescriptor> GenerateLayout(string uniqueLayoutName, string layoutParam)
    Parameters
    Type Name Description
    string uniqueLayoutName

    The name of the layout being generated

    string layoutParam

    ANy optional parameters for the layout

    Returns
    Type Description
    Task<LayoutDescriptor>

    A new layout that has a single IBaseGrid grid of the specified entity type that takes 100% of the layout

    Overrides
    DefaultLayoutGenerator.GenerateLayout(string, string)

    Implements

    ILayoutGenerator

    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.