Class: DisplayPanesAliasedUserSettingManager
An aliased map user setting manager which can switch the true settings from which its aliased settings are sourced. The supported sources are:
- Each set of display pane settings.
Implements
UserSettingManager
<DisplayPaneSettings
>
Constructors
constructor
• new DisplayPanesAliasedUserSettingManager(bus
): DisplayPanesAliasedUserSettingManager
Constructor.
Parameters
Name | Type | Description |
---|---|---|
bus | EventBus | The event bus. |
Returns
DisplayPanesAliasedUserSettingManager
Defined in
src/workingtitle-instruments-g3000/html_ui/Pages/VCockpit/Instruments/NavSystems/WTG3000/Shared/Settings/DisplayPanesAliasedUserSettingManager.ts:23
Methods
getAllSettings
▸ getAllSettings(): UserSetting
<UserSettingValue
>[]
Returns
UserSetting
<UserSettingValue
>[]
Inherit Doc
Implementation of
UserSettingManager.getAllSettings
Defined in
src/workingtitle-instruments-g3000/html_ui/Pages/VCockpit/Instruments/NavSystems/WTG3000/Shared/Settings/DisplayPanesAliasedUserSettingManager.ts:84
getSetting
▸ getSetting<K
>(name
): UserSetting
<NonNullable
<DisplayPaneSettings
[K
]>>
Type parameters
Name | Type |
---|---|
K | extends "displayPaneVisible" | "displayPaneView" | "displayPaneDesignatedView" | "displayPaneDesignatedWeatherView" | "displayPaneController" | "displayPaneHalfSizeOnly" | "displayPaneMapPointerActive" |
Parameters
Name | Type |
---|---|
name | K |
Returns
UserSetting
<NonNullable
<DisplayPaneSettings
[K
]>>
Inherit Doc
Implementation of
UserSettingManager.getSetting
Defined in
src/workingtitle-instruments-g3000/html_ui/Pages/VCockpit/Instruments/NavSystems/WTG3000/Shared/Settings/DisplayPanesAliasedUserSettingManager.ts:74
mapTo
▸ mapTo<M
>(map
): UserSettingManager
<M
& DisplayPaneSettings
>
Type parameters
Name | Type |
---|---|
M | extends UserSettingRecord |
Parameters
Name | Type |
---|---|
map | UserSettingMap <M , DisplayPaneSettings > |
Returns
UserSettingManager
<M
& DisplayPaneSettings
>
Inherit Doc
Implementation of
UserSettingManager.mapTo
Defined in
src/workingtitle-instruments-g3000/html_ui/Pages/VCockpit/Instruments/NavSystems/WTG3000/Shared/Settings/DisplayPanesAliasedUserSettingManager.ts:89
tryGetSetting
▸ tryGetSetting<K
>(name
): K
extends keyof DisplayPaneSettings
? UserSetting
<DisplayPaneSettings
[K
]> : undefined
Type parameters
Name | Type |
---|---|
K | extends string |
Parameters
Name | Type |
---|---|
name | K |
Returns
K
extends keyof DisplayPaneSettings
? UserSetting
<DisplayPaneSettings
[K
]> : undefined
Inherit Doc
Implementation of
UserSettingManager.tryGetSetting
Defined in
src/workingtitle-instruments-g3000/html_ui/Pages/VCockpit/Instruments/NavSystems/WTG3000/Shared/Settings/DisplayPanesAliasedUserSettingManager.ts:69
useDisplayPaneSettings
▸ useDisplayPaneSettings(index
): DisplayPanesAliasedUserSettingManager
Switches the source of this manager's settings to a set of display pane settings.
Parameters
Name | Type | Description |
---|---|---|
index | DisplayPaneIndex | The index of the display pane. |
Returns
DisplayPanesAliasedUserSettingManager
Itself.
Defined in
src/workingtitle-instruments-g3000/html_ui/Pages/VCockpit/Instruments/NavSystems/WTG3000/Shared/Settings/DisplayPanesAliasedUserSettingManager.ts:63
whenSettingChanged
▸ whenSettingChanged<K
>(name
): Consumer
<NonNullable
<DisplayPaneSettings
[K
]>>
Type parameters
Name | Type |
---|---|
K | extends "displayPaneVisible" | "displayPaneView" | "displayPaneDesignatedView" | "displayPaneDesignatedWeatherView" | "displayPaneController" | "displayPaneHalfSizeOnly" | "displayPaneMapPointerActive" |
Parameters
Name | Type |
---|---|
name | K |
Returns
Consumer
<NonNullable
<DisplayPaneSettings
[K
]>>
Inherit Doc
Implementation of
UserSettingManager.whenSettingChanged
Defined in
src/workingtitle-instruments-g3000/html_ui/Pages/VCockpit/Instruments/NavSystems/WTG3000/Shared/Settings/DisplayPanesAliasedUserSettingManager.ts:79