Interface IModelSingleLayoutDisplayer
The main interface for popup windows that also implement the IModelLayoutHost but are not the IMainForm
Instead they are used purely as a host of a single IModelLayoutDisplayer in a popup window, and are not capable of displaying multiple displayers unlike the main application itself
Inherited Members
Namespace: LemonEdge.Client.Core.Views.Core
Assembly: LemonEdge.ClientCore.dll
Syntax
public interface IModelSingleLayoutDisplayer : IModelLayoutHost, IModelLayoutCommon, IBusyReporter, IDisposable, IWindow
Properties
HostOwner
the host model layout for access to core context items.
Declaration
IModelLayoutCommon HostOwner { get; set; }
Property Value
Type | Description |
---|---|
IModelLayoutCommon |
Methods
InitForItemDisplay(DisplayableItemDescriptor, DefaultLayoutGenerator)
Initializes this single layout displayer host to display the specified item with an optional custom layout
Declaration
Task InitForItemDisplay(DisplayableItemDescriptor displayItem, DefaultLayoutGenerator customLayout = null)
Parameters
Type | Name | Description |
---|---|---|
DisplayableItemDescriptor | displayItem | The item this single displayer should display |
DefaultLayoutGenerator | customLayout | An optional custom layout to use for displaying the item if you want to override the layout the system would use by default |
Returns
Type | Description |
---|---|
Task | A task indicating the completion of loading the layout and displaying the specified item |
InitForItemSelectionAny<T>(DisplayableItemDescriptor, bool, DefaultLayoutGenerator, IEnumerable<T>)
Initializes this single layout displayer host to display the specified layout for selecting items
Declaration
Task<IEnumerable<T>> InitForItemSelectionAny<T>(DisplayableItemDescriptor displayer, bool multiSelect, DefaultLayoutGenerator customLayout = null, IEnumerable<T> items = null)
Parameters
Type | Name | Description |
---|---|---|
DisplayableItemDescriptor | displayer | The item to display against the layout |
bool | multiSelect | Indicates if multi selection is allowed or not |
DefaultLayoutGenerator | customLayout | The custom layout to use, otherwise the default layout selector is used |
IEnumerable<T> | items | The restricted set of items to allow selection from |
Returns
Type | Description |
---|---|
Task<IEnumerable<T>> | The selected items if any |
Type Parameters
Name | Description |
---|---|
T | The type of item to be selecting |
InitForItemSelection<T>(DisplayableItemDescriptor, bool, DefaultLayoutGenerator, QueryableFilter, IEnumerable<T>)
Initializes this single layout displayer host to display the specified layout for selecting items
Declaration
Task<IEnumerable<IBaseEntity>> InitForItemSelection<T>(DisplayableItemDescriptor displayer, bool multiSelect, DefaultLayoutGenerator customLayout = null, QueryableFilter filter = null, IEnumerable<T> items = null) where T : IBaseEntity
Parameters
Type | Name | Description |
---|---|---|
DisplayableItemDescriptor | displayer | The item to display against the layout |
bool | multiSelect | Indicates if multi selection is allowed or not |
DefaultLayoutGenerator | customLayout | The custom layout to use, otherwise the default layout selector is used |
QueryableFilter | filter | Any filters to apply to the layout |
IEnumerable<T> | items | The restricted set of items to allow selection from |
Returns
Type | Description |
---|---|
Task<IEnumerable<IBaseEntity>> | The selected items if any |
Type Parameters
Name | Description |
---|---|
T | The type of item to be selecting |
SetHost(IModelLayoutCommon)
Sets the host model layout for access to core context items.
Declaration
void SetHost(IModelLayoutCommon host)
Parameters
Type | Name | Description |
---|---|---|
IModelLayoutCommon | host | The host context container |