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
Inherited Members
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 returnsofView
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 |
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 |