Search Results for

    Show / Hide Table of Contents

    Class QuerySelectorLayoutGenerator

    A layout generator that always returns a query selection layout for the user choosing an entity of the specified type

    Inheritance
    object
    QuerySelectorLayoutGenerator
    Implements
    ILayoutGenerator
    Inherited Members
    object.GetType()
    object.MemberwiseClone()
    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 class QuerySelectorLayoutGenerator : ILayoutGenerator

    Constructors

    QuerySelectorLayoutGenerator(EntityDescriptor, SQLWrapperInterpretor, Dictionary<string, object>, IBaseEntity, IBaseEntity, string, string, string, IEntityRetriever, IFormulaFunctionsFactory, IViewDescriptorInstanceFactory)

    Declaration
    public QuerySelectorLayoutGenerator(EntityDescriptor descriptor, SQLWrapperInterpretor query, Dictionary<string, object> parameters, IBaseEntity currentItem, IBaseEntity parentItem, string currentItemFormula, string currentItemFormula2, string parentItemFormula, IEntityRetriever retriever, IFormulaFunctionsFactory formulaFunctionsFactory, IViewDescriptorInstanceFactory viewDescriptorInstanceFactory)
    Parameters
    Type Name Description
    EntityDescriptor descriptor
    SQLWrapperInterpretor query
    Dictionary<string, object> parameters
    IBaseEntity currentItem
    IBaseEntity parentItem
    string currentItemFormula
    string currentItemFormula2
    string parentItemFormula
    IEntityRetriever retriever
    IFormulaFunctionsFactory formulaFunctionsFactory
    IViewDescriptorInstanceFactory viewDescriptorInstanceFactory

    Methods

    CanGenerateLayout(string, string)

    Returns true if this default layout generator works for the specified uniqueLayoutName and layoutParam combination

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

    The unique name of the layout to generate

    string layoutParam

    Any optional parameters for the layout to use while generating it

    Returns
    Type Description
    bool

    True if this default layout generator works for the specified uniqueLayoutName and layoutParam combination

    GenerateLayout(string, string)

    Creates a LayoutDescriptor that contains the definition of tabs, views, sub-views, parameters and other interactions for the display

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

    The unique name of the layout this is being generated for

    string layoutParam

    ANy optional parameters for the layout that are could be used to generate this layout

    Returns
    Type Description
    Task<LayoutDescriptor>

    A LayoutDescriptor that details how to construct the layout in the UI of the client application

    SetDisplayableItemDescriptor(DisplayableItemDescriptor)

    Declaration
    public void SetDisplayableItemDescriptor(DisplayableItemDescriptor desc)
    Parameters
    Type Name Description
    DisplayableItemDescriptor desc

    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.