Class ParamViewerController<T>
The base parameter viewer controller for all instances of a IParamViewer<T> popup window
Inheritance
ParamViewerController<T>
Inherited Members
Namespace: LemonEdge.Client.UI.API.Controllers
Assembly: LemonEdge.Client.UI.API.dll
Syntax
public abstract class ParamViewerController<T> : PopupWindowController<T>, IPopupWindowController<T>, IParamViewerController, IPopupWindowController, IController where T : SerializedParam
Type Parameters
Name | Description |
---|---|
T | The type of parameters this IParamViewer<T> works with |
Constructors
ParamViewerController(IParamViewer<T>, T)
Creates a new instance of the controller for the provided popup window and associated parameter
Declaration
protected ParamViewerController(IParamViewer<T> window, T param)
Parameters
Type | Name | Description |
---|---|---|
IParamViewer<T> | window | The popup parameter window instance this controller is for |
T | param | The initial parameters to use when displaying the popup window |
Properties
OriginalParam
The original parameters used when creating this controller
Declaration
public T? OriginalParam { get; }
Property Value
Type | Description |
---|---|
T |
Methods
Display()
Overridse the default display method to call the parameter viewer to display the current OriginalParam
Declaration
public override Task Display()
Returns
Type | Description |
---|---|
Task | A task indicating the completion of the operation |
Overrides
SetParam(T)
Sets the initial parameters to a new provided value
Declaration
protected void SetParam(T param)
Parameters
Type | Name | Description |
---|---|---|
T | param | The new value to be used as the initial parameters when displaying the popup parameter window form |