Class DisplayableItemDescriptorFactory
Implements
Inherited Members
Namespace: LemonEdge.Client.Core.Views.Core
Assembly: LemonEdge.ClientCore.dll
Syntax
public class DisplayableItemDescriptorFactory : IDisplayableItemDescriptorFactory
Constructors
DisplayableItemDescriptorFactory(IDomainContextEventHandler, IReflectionHelper, IFactoryInjector, ILogger<DisplayableItemDescriptorFactory>)
Declaration
public DisplayableItemDescriptorFactory(IDomainContextEventHandler context, IReflectionHelper reflectionHelper, IFactoryInjector factoryInjector, ILogger<DisplayableItemDescriptorFactory> logger)
Parameters
Type | Name | Description |
---|---|---|
IDomainContextEventHandler | context | |
IReflectionHelper | reflectionHelper | |
IFactoryInjector | factoryInjector | |
ILogger<DisplayableItemDescriptorFactory> | logger |
Properties
UIRestrictedMaxCollectionItems
Declaration
public int? UIRestrictedMaxCollectionItems { get; set; }
Property Value
Type | Description |
---|---|
int? |
Methods
ClearCache()
Clears the local cache of layouts so they are reloaded on next call
Declaration
public Task ClearCache()
Returns
Type | Description |
---|---|
Task |
CreateCollectionDefault(IEntityUpdater, Type)
Creates a DisplayableItemDescriptorForCollection<T> for the specified entity
forType
Declaration
public DisplayableItemDescriptor CreateCollectionDefault(IEntityUpdater context, Type forType)
Parameters
Type | Name | Description |
---|---|---|
IEntityUpdater | context | The context this collection should be loaded in, and that the IModelLayoutDisplayer should operate within |
Type | forType | The type of entity this collection displayable item should display |
Returns
Type | Description |
---|---|
DisplayableItemDescriptor | A DisplayableItemDescriptorForCollection<T> for the specified entity
|
CreateCustomSettingsDefault(IEntityUpdater, CustomSettingsItem)
Creates a DisplayableItemDescriptorForCustomSettings for the specified custom setting type
item
Declaration
public DisplayableItemDescriptor CreateCustomSettingsDefault(IEntityUpdater context, CustomSettingsItem item)
Parameters
Type | Name | Description |
---|---|---|
IEntityUpdater | context | The context this custom setting and the IModelLayoutDisplayer should operate within |
CustomSettingsItem | item | The type of custom setting to be loaded |
Returns
Type | Description |
---|---|
DisplayableItemDescriptor | A DisplayableItemDescriptorForCustomSettings for the specified custom setting type
|
CreateForCollectionAny<T>(IEntityUpdater, string)
Declaration
public DisplayableItemDescriptor CreateForCollectionAny<T>(IEntityUpdater context, string labelProperty) where T : class
Parameters
Type | Name | Description |
---|---|---|
IEntityUpdater | context | |
string | labelProperty |
Returns
Type | Description |
---|---|
DisplayableItemDescriptor |
Type Parameters
Name | Description |
---|---|
T |
CreateSingleDefault(IEntityUpdater, object)
Creates a DisplayableItemDescriptorSingle<T> for the specified entity item
Declaration
public DisplayableItemDescriptor CreateSingleDefault(IEntityUpdater context, object item)
Parameters
Type | Name | Description |
---|---|---|
IEntityUpdater | context | The context this |
object | item | The single entity to be displayed in the IModelLayoutDisplayer |
Returns
Type | Description |
---|---|
DisplayableItemDescriptor | A DisplayableItemDescriptorSingle<T> for the specified entity |
CreateToolWindowDefault(IEntityUpdater, ToolWindowItem)
Creates a DisplayableItemDescriptorForToolWindow for the specified tool window type
item
Declaration
public DisplayableItemDescriptor CreateToolWindowDefault(IEntityUpdater context, ToolWindowItem item)
Parameters
Type | Name | Description |
---|---|---|
IEntityUpdater | context | The context this tool window and the IModelLayoutDisplayer should operate within |
ToolWindowItem | item | The type of tool window to be loaded |
Returns
Type | Description |
---|---|
DisplayableItemDescriptor | A DisplayableItemDescriptorForToolWindow for the specified tool window type
|
GetAllDisplayableLayouts()
Returns all the possible layouts that are used by all implementations of DisplayableItemDescriptor
This is determined by enumerating all IDisplayableDescriptorPossibleLayouts implementations
Declaration
public Task<IEnumerable<DisplayableLayoutInfo>> GetAllDisplayableLayouts()
Returns
Type | Description |
---|---|
Task<IEnumerable<DisplayableLayoutInfo>> | All the possible layouts that are used by all implementations of DisplayableItemDescriptor |
GetDisplayableType(string, string)
Returns the type of the item that is displayed against the specified layout key combination
Declaration
public Task<Type> GetDisplayableType(string layoutName, string layoutParam)
Parameters
Type | Name | Description |
---|---|---|
string | layoutName | The unique name for the layout |
string | layoutParam | Any optional parameters for the layout |
Returns
Type | Description |
---|---|
Task<Type> | The type of the item that is displayed against the specified layout key combination |