Search Results for

    Show / Hide Table of Contents

    Class TopSingleWithBottomViewLayoutGenerator<T>

    A default layout generator that creates a standard IBaseDefaultSingleView<T> view of type T on the top, and another view on the bottom

    If T implements IHasVersion, then this creates the top view on the left 75%, and adds a HasVersion view on the top right 25%

    Inheritance
    object
    DefaultLayoutGenerator
    TopSingleWithBottomViewLayoutGenerator<T>
    TopSingleViewWithBottomCollectionLayoutGenerator<T, TBottom>
    Implements
    ILayoutGenerator
    Inherited Members
    DefaultLayoutGenerator.RootController
    DefaultLayoutGenerator.LayoutHelpURL
    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.Core
    Assembly: LemonEdge.ClientCore.dll
    Syntax
    public abstract class TopSingleWithBottomViewLayoutGenerator<T> : DefaultLayoutGenerator, ILayoutGenerator where T : IBaseEntity
    Type Parameters
    Name Description
    T

    The type of entity that is in the grid on the left of this layout

    Constructors

    TopSingleWithBottomViewLayoutGenerator(IRootController)

    Creates a new default generator that creates a single view on the top with a custom view on the bottom

    Declaration
    protected TopSingleWithBottomViewLayoutGenerator(IRootController rootController)
    Parameters
    Type Name Description
    IRootController rootController

    The root controller, for service access

    Properties

    Descriptor

    The entity descriptor for type T

    Declaration
    protected EntityDescriptor Descriptor { get; }
    Property Value
    Type Description
    EntityDescriptor

    TopViewPercentHeight

    Indicates the percentage of the vertical available screen space the top view should take up.

    The default is 20

    Declaration
    protected virtual int TopViewPercentHeight { get; }
    Property Value
    Type Description
    int

    Methods

    CanGenerateLayout(string, string)

    Returns true if this is the default layout generator for displaying an instance of type T

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

    The unique layout name to see if it matches the ItemName of entity type T

    string layoutParam

    Optionaly parameters for this layout

    Returns
    Type Description
    bool

    True if this is the default layout generator for displaying an instance of type T

    Overrides
    DefaultLayoutGenerator.CanGenerateLayout(string, string)

    GenerateAdditionalTabsForLayout(LayoutDescriptor)

    Provides any inheriting implementation the option to generate additional tabs for the layout before it is returned

    Declaration
    protected virtual Task GenerateAdditionalTabsForLayout(LayoutDescriptor rootDescriptor)
    Parameters
    Type Name Description
    LayoutDescriptor rootDescriptor

    The top level descriptor to add additional tabs to

    Returns
    Type Description
    Task

    A task indicating the completion of the operation

    GenerateLayout(string, string)

    Generates a layout with a standard IBaseDefaultSingleView<T> view of type T on the top, and another view on the bottom

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

    The unique layout name of the layout to be generated

    string layoutParam

    ANy optional parameters for generating the layout with

    Returns
    Type Description
    Task<LayoutDescriptor>

    A layout with a standard IBaseDefaultSingleView<T> view of type T on the top, and another view on the bottom

    Overrides
    DefaultLayoutGenerator.GenerateLayout(string, string)

    GetBottomView(ViewDescriptorInstance)

    Provides the inheriting implementation the ability to create the type of view that will be created on the bottom of this layout

    Declaration
    protected abstract Task<ViewDescriptorInstance> GetBottomView(ViewDescriptorInstance topView)
    Parameters
    Type Name Description
    ViewDescriptorInstance topView
    Returns
    Type Description
    Task<ViewDescriptorInstance>

    The view that should be at thebottom of this layout

    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.