Class DisplayableItemDescriptorSingle<T>
The DisplayableItemDescriptor for an instance of an entity type T
The Item is the entity itself
Implements
Inherited Members
Namespace: LemonEdge.Client.Core.Views.Core
Assembly: ClientCore.dll
Syntax
public class DisplayableItemDescriptorSingle<T> : DisplayableItemDescriptor, IEquatable<DisplayableItemDescriptor> where T : IBaseEntity
Type Parameters
Name | Description |
---|---|
T | The type of entity to be loaded and displayed as a collection |
Constructors
DisplayableItemDescriptorSingle(IEntityUpdaterUI, T)
Creates a new single item display descriptor for the specified item
of type T
Declaration
public DisplayableItemDescriptorSingle(IEntityUpdaterUI context, T item)
Parameters
Type | Name | Description |
---|---|---|
IEntityUpdaterUI | context | The context updater this descriptor and IModelLayoutDisplayer will operate within |
T | item | The instance of the entity to be displayed in the IModelLayoutDisplayer |
Properties
ImageID
Returns the DefaultIconID for this entity type T
Declaration
public override Guid ImageID { get; }
Property Value
Type | Description |
---|---|
System.Guid |
Overrides
Item
The entity of type T
to be displayed in the IModelLayoutDisplayer
Declaration
public override object Item { get; }
Property Value
Type | Description |
---|---|
System.Object |
Overrides
LabelBinding
Returns the LabelColumn for this entity type T
Declaration
public override string LabelBinding { get; }
Property Value
Type | Description |
---|---|
System.String |
Overrides
UniqueLayoutDisplayName
The unique name for loading a layout to display this item is ItemName
Declaration
public override string UniqueLayoutDisplayName { get; }
Property Value
Type | Description |
---|---|
System.String |
Overrides
Methods
Equals(DisplayableItemDescriptor)
Declaration
public override bool Equals(DisplayableItemDescriptor other)
Parameters
Type | Name | Description |
---|---|---|
DisplayableItemDescriptor | other |
Returns
Type | Description |
---|---|
System.Boolean |
Overrides
GetTooltip()
Returns additional information for this entity Item including when it was created (and by whom), along with when it was last updated (and by whom)
Declaration
public override Task<string> GetTooltip()
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task<System.String> | The standard tool tip for this Item along with additional information for this entity Item including when it was created (and by whom), along with when it was last updated (and by whom) |
Overrides
Recreate()
Declaration
public override Task<DisplayableItemDescriptor> Recreate()
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task<DisplayableItemDescriptor> | A new descriptor instance identical to this one with a new Context and Item |