Class BaseDefaultSingleViewRelatedItemCustomController<Parent, Single>
Inheritance
Implements
Inherited Members
Namespace: LemonEdge.Client.Core.Views.Core
Assembly: LemonEdge.ClientCore.dll
Syntax
public class BaseDefaultSingleViewRelatedItemCustomController<Parent, Single> : BaseDefaultSingleViewRelatedItemController<Parent, Single>, IModelViewController where Parent : IBaseEntity where Single : IBaseEntity
Type Parameters
Name | Description |
---|---|
Parent | |
Single |
Constructors
BaseDefaultSingleViewRelatedItemCustomController(IBaseDefaultSingleViewRelatedItem<Parent, Single>)
Declaration
public BaseDefaultSingleViewRelatedItemCustomController(IBaseDefaultSingleViewRelatedItem<Parent, Single> view)
Parameters
Type | Name | Description |
---|---|---|
IBaseDefaultSingleViewRelatedItem<Parent, Single> | view |
Properties
ContextHelpURL
An optional associated url of a help file for the view this controller works with
Declaration
public override string ContextHelpURL { get; }
Property Value
Type | Description |
---|---|
string |
Overrides
ListenToChanges
We check changes if HasParentToAnyRelationship is true
Declaration
public override bool ListenToChanges { get; }
Property Value
Type | Description |
---|---|
bool |
Overrides
ParentToSingleItemRelationshipColumnName
Declaration
public override string ParentToSingleItemRelationshipColumnName { get; }
Property Value
Type | Description |
---|---|
string |
Overrides
ViewDisplayType
Indicates how the controls should be laid out in the client application ui for the view (in compatible UIs)
The default is HorizontalWrapPanel
Declaration
public override CustomViewDisplayType ViewDisplayType { get; }
Property Value
Type | Description |
---|---|
CustomViewDisplayType |
Overrides
Methods
Controls()
Returns all the controls loaded from LoadControls()
Declaration
protected override IEnumerable<ControlDisplayInfo> Controls()
Returns
Type | Description |
---|---|
IEnumerable<ControlDisplayInfo> | All the controls loaded from LoadControls() which dynamically represent the definitions in ICustomViewControl for this ICustomView |
Overrides
DisplayItem(object)
Clears the view, determines if CanWrite is true, and if it ShouldDisplayItem(object?) then calls AddHandlers(object) and DisplayUI()
Declaration
public override Task DisplayItem(object item)
Parameters
Type | Name | Description |
---|---|---|
object | item | The item to be displayed against this View |
Returns
Type | Description |
---|---|
Task | A task indicating the completion of the operation |
Overrides
InitAsync()
Provides the controller a chance to initialize any dependant data. Called once by the system after controller creation.
Declaration
public override Task InitAsync()
Returns
Type | Description |
---|---|
Task | A task indicating the completion of the operation |
Overrides
LoadControls()
Loads all the control definitions as defined by the ICustomViewControl collection for the ICustomView specified in the SingleViewControllerCustomViewParams for this view
Declaration
public override Task LoadControls()
Returns
Type | Description |
---|---|
Task | All the control definitions as defined by the ICustomViewControl collection for the ICustomView specified in the SingleViewControllerCustomViewParams for this view |
Overrides
OnTrackedItemChanged(object, string)
If HasParentToAnyRelationship is true then it will update the control holding that relationship value to keep changes in sync in the views to the user
Declaration
protected override void OnTrackedItemChanged(object item, string propName)
Parameters
Type | Name | Description |
---|---|---|
object | item | The item that had a property changed |
string | propName | The name of the changed property |