Skip to main content

Class: FixInfoPage

Defined in: workingtitle-instruments-wt21/instruments/html_ui/Pages/VCockpit/Instruments/WT21/FMC/Pages/FixInfo/FixInfoPage.ts:12

Fix Info page

Extends​

Constructors​

Constructor​

new FixInfoPage(bus, screen, props, fms, baseInstrument, renderCallback): FixInfoPage

Defined in: workingtitle-instruments-wt21/instruments/html_ui/Pages/VCockpit/Instruments/WT21/FMC/WT21FmcPage.ts:21

Ctor

Parameters​

ParameterTypeDescription
busEventBusthe event bus
screenWT21FmcScreenthe FMC screen instance
propsnullthe props to create the page with
fmsWT21Fmsthe fms to use
baseInstrumentWT21_FMC_Instrumentthe base FMC instrument
renderCallbackFmcRenderCallbackthe render callback

Returns​

FixInfoPage

Inherited from​

WT21FmcPage.constructor

Properties​

AbeamField​

protected readonly AbeamField: DisplayField<null | string>

Defined in: workingtitle-instruments-wt21/instruments/html_ui/Pages/VCockpit/Instruments/WT21/FMC/Pages/FixInfo/FixInfoPage.ts:261


baseInstrument​

readonly baseInstrument: WT21_FMC_Instrument

Defined in: workingtitle-instruments-wt21/instruments/html_ui/Pages/VCockpit/Instruments/WT21/FMC/WT21FmcPage.ts:27

Deprecated​

Inherited from​

WT21FmcPage.baseInstrument


bus​

readonly bus: EventBus

Defined in: workingtitle-instruments-wt21/instruments/html_ui/Pages/VCockpit/Instruments/WT21/FMC/WT21FmcPage.ts:22

the event bus

Inherited from​

WT21FmcPage.bus


clockConsumer​

protected clockConsumer: Consumer<number>

Defined in: sdk/fmc/AbstractFmcPage.ts:70

Inherited from​

WT21FmcPage.clockConsumer


controller​

protected readonly controller: WT21FixInfoPageController

Defined in: workingtitle-instruments-wt21/instruments/html_ui/Pages/VCockpit/Instruments/WT21/FMC/Pages/FixInfo/FixInfoPage.ts:14


DisCrossField​

protected readonly DisCrossField: TextInputField<[null | number, boolean], [null | number, boolean]>

Defined in: workingtitle-instruments-wt21/instruments/html_ui/Pages/VCockpit/Instruments/WT21/FMC/Pages/FixInfo/FixInfoPage.ts:159


dmsFormatter​

protected readonly dmsFormatter: DmsFormatter

Defined in: workingtitle-instruments-wt21/instruments/html_ui/Pages/VCockpit/Instruments/WT21/FMC/Pages/FixInfo/FixInfoPage.ts:15


FixField​

protected readonly FixField: TextInputField<null | string, Facility>

Defined in: workingtitle-instruments-wt21/instruments/html_ui/Pages/VCockpit/Instruments/WT21/FMC/Pages/FixInfo/FixInfoPage.ts:60


fixInfoPaging​

protected readonly fixInfoPaging: MappedSubject<[number, number], readonly [number, number]>

Defined in: workingtitle-instruments-wt21/instruments/html_ui/Pages/VCockpit/Instruments/WT21/FMC/Pages/FixInfo/FixInfoPage.ts:50


FixInfoPagingIndicator​

protected readonly FixInfoPagingIndicator: DisplayField<readonly [number, number]>

Defined in: workingtitle-instruments-wt21/instruments/html_ui/Pages/VCockpit/Instruments/WT21/FMC/Pages/FixInfo/FixInfoPage.ts:55


fms​

readonly fms: WT21Fms

Defined in: workingtitle-instruments-wt21/instruments/html_ui/Pages/VCockpit/Instruments/WT21/FMC/WT21FmcPage.ts:25

the fms to use

Inherited from​

WT21FmcPage.fms


isInitialized​

isInitialized: boolean = false

Defined in: sdk/fmc/AbstractFmcPage.ts:98

Inherited from​

WT21FmcPage.isInitialized


LatCrossField​

protected readonly LatCrossField: TextInputField<[null | number, boolean], number>

Defined in: workingtitle-instruments-wt21/instruments/html_ui/Pages/VCockpit/Instruments/WT21/FMC/Pages/FixInfo/FixInfoPage.ts:215


LonCrossField​

protected readonly LonCrossField: TextInputField<[null | number, boolean], number>

Defined in: workingtitle-instruments-wt21/instruments/html_ui/Pages/VCockpit/Instruments/WT21/FMC/Pages/FixInfo/FixInfoPage.ts:238


memorizedComponents​

readonly memorizedComponents: [null | FmcComponent<FmcComponentOptions>, null | FmcComponent<FmcComponentOptions>, null | FmcComponent<FmcComponentOptions>][] = []

Defined in: sdk/fmc/AbstractFmcPage.ts:45

Inherited from​

WT21FmcPage.memorizedComponents


PagingFormat​

protected readonly PagingFormat: Formatter<readonly [number, number]>

Defined in: workingtitle-instruments-wt21/instruments/html_ui/Pages/VCockpit/Instruments/WT21/FMC/WT21FmcPage.ts:35

Inherited from​

WT21FmcPage.PagingFormat


PagingIndicator​

readonly PagingIndicator: DisplayField<readonly [number, number]>

Defined in: workingtitle-instruments-wt21/instruments/html_ui/Pages/VCockpit/Instruments/WT21/FMC/WT21FmcPage.ts:44

Inherited from​

WT21FmcPage.PagingIndicator


params​

readonly params: Map<any, any>

Defined in: sdk/fmc/AbstractFmcPage.ts:51

Inherited from​

WT21FmcPage.params


RadCrossField​

protected readonly RadCrossField: TextInputField<[null | number, boolean], [null | number, boolean]>

Defined in: workingtitle-instruments-wt21/instruments/html_ui/Pages/VCockpit/Instruments/WT21/FMC/Pages/FixInfo/FixInfoPage.ts:106


RefCrsDistField​

protected readonly RefCrsDistField: DisplayField<[null | number, null | number]>

Defined in: workingtitle-instruments-wt21/instruments/html_ui/Pages/VCockpit/Instruments/WT21/FMC/Pages/FixInfo/FixInfoPage.ts:298


RefTitleField​

protected readonly RefTitleField: DisplayField<unknown>

Defined in: workingtitle-instruments-wt21/instruments/html_ui/Pages/VCockpit/Instruments/WT21/FMC/Pages/FixInfo/FixInfoPage.ts:280


renderCallback​

readonly renderCallback: FmcRenderCallback

Defined in: workingtitle-instruments-wt21/instruments/html_ui/Pages/VCockpit/Instruments/WT21/FMC/WT21FmcPage.ts:28

the render callback

Inherited from​

WT21FmcPage.renderCallback


screen​

readonly screen: WT21FmcScreen

Defined in: workingtitle-instruments-wt21/instruments/html_ui/Pages/VCockpit/Instruments/WT21/FMC/WT21FmcPage.ts:23

the FMC screen instance

Inherited from​

WT21FmcPage.screen


store​

protected readonly store: WT21FixInfoPageStore

Defined in: workingtitle-instruments-wt21/instruments/html_ui/Pages/VCockpit/Instruments/WT21/FMC/Pages/FixInfo/FixInfoPage.ts:13


lifecyclePolicy​

static lifecyclePolicy: FmcPageLifecyclePolicy = FmcPageLifecyclePolicy.Singleton

Defined in: sdk/fmc/AbstractFmcPage.ts:37

Configures the FmcPageLifecyclePolicy for this page

Inherited from​

WT21FmcPage.lifecyclePolicy

Accessors​

props​

Get Signature​

get props(): P

Defined in: sdk/fmc/AbstractFmcPage.ts:62

Obtains the current value of the page's props

Throws​

if the props have not yet been initialised

Returns​

P

the props value

Inherited from​

WT21FmcPage.props

Methods​

acceptPageExtension()​

acceptPageExtension(extension): void

Defined in: sdk/fmc/AbstractFmcPage.ts:316

Accepts a page extension

Parameters​

ParameterTypeDescription
extensionFmcPageExtension<FixInfoPage>the page extension

Returns​

void

Inherited from​

WT21FmcPage.acceptPageExtension


addBinding()​

addBinding(binding): void

Defined in: sdk/fmc/AbstractFmcPage.ts:361

Registers a subscription or a ConsumerSubject on the page. This enables the page to manage the lifecycle of all subscriptions that are used within it, for example by pausing them whenever the page is out of view, or destroying them when the page is destroyed.

Parameters​

ParameterTypeDescription
bindingSubscription | ConsumerSubject<any>a subscription

Returns​

void

Inherited from​

WT21FmcPage.addBinding


clockHandler()​

protected clockHandler(d): void

Defined in: sdk/fmc/AbstractFmcPage.ts:90

Handles when update/refresh of the FMCPage based on clock input

Parameters​

ParameterTypeDescription
dnumberis the Clock Value from the Event Bus

Returns​

void

Inherited from​

WT21FmcPage.clockHandler


destroy()​

destroy(): void

Defined in: sdk/fmc/AbstractFmcPage.ts:194

Destroys the page and calls appropriate event handlers

Returns​

void

Inherited from​

WT21FmcPage.destroy


formatLlForScratchpad()​

protected formatLlForScratchpad(latitude, longitude): string

Defined in: workingtitle-instruments-wt21/instruments/html_ui/Pages/VCockpit/Instruments/WT21/FMC/Pages/FixInfo/FixInfoPage.ts:34

Format a lat/lon for the scratchpad.

Parameters​

ParameterTypeDescription
latitudenumberlatitude in degrees.
longitudenumberlongitude in degrees.

Returns​

string

formatted string for the scratchpad.


formatPbdForScratchpad()​

protected formatPbdForScratchpad(fixIdent, bearing, distance): string

Defined in: workingtitle-instruments-wt21/instruments/html_ui/Pages/VCockpit/Instruments/WT21/FMC/Pages/FixInfo/FixInfoPage.ts:24

Format a PB/D for the scratchpad

Parameters​

ParameterTypeDescription
fixIdentstringIdentifier of the fix from which the PBD originates
bearingnumberBearing from the fix in degrees
distancenumberDistance from the fix in nautical miles

Returns​

string

formatted string for the scratchpad


handleLineSelectKey()​

handleLineSelectKey(event): Promise<string | boolean>

Defined in: sdk/fmc/AbstractFmcPage.ts:372

Handles a line select key received by the FMC, before passing it on to components

Parameters​

ParameterTypeDescription
eventLineSelectKeyEventthe LSK event

Returns​

Promise<string | boolean>

a Promise that resolves to a boolean or string

Inherited from​

WT21FmcPage.handleLineSelectKey


handleScrolling()​

handleScrolling(event): Promise<string | boolean>

Defined in: sdk/fmc/AbstractFmcPage.ts:412

Handles a scrolling event received by the FMC, before passing it on to components

Parameters​

ParameterTypeDescription
event"pageLeft" | "pageRight" | "pageUp" | "pageDown"the scrolling event

Returns​

Promise<string | boolean>

a Promise that resolves to a boolean or string

Inherited from​

WT21FmcPage.handleScrolling


init()​

init(): void

Defined in: sdk/fmc/AbstractFmcPage.ts:105

Initializes the page.

Use this for setting up subscriptions and such.

Returns​

void

Inherited from​

WT21FmcPage.init


initialRender()​

initialRender(): void

Defined in: sdk/fmc/AbstractFmcPage.ts:231

Initial render function

Returns​

void

Throws​

If a PositionedFmcColumn attempts to return an FmcRenderTemplate from its render function (only strings are allowed).

Inherited from​

WT21FmcPage.initialRender


invalidate()​

invalidate(): void

Defined in: sdk/fmc/AbstractFmcPage.ts:223

Invalidates the render and sets the component into the dirty state

Returns​

void

Inherited from​

WT21FmcPage.invalidate


onDestroy()​

protected onDestroy(): void

Defined in: sdk/fmc/AbstractFmcPage.ts:216

Destroy lifecycle hook

Returns​

void

Inherited from​

WT21FmcPage.onDestroy


onHandleScrolling()​

protected onHandleScrolling(event): Promise<string | boolean>

Defined in: workingtitle-instruments-wt21/instruments/html_ui/Pages/VCockpit/Instruments/WT21/FMC/Pages/FixInfo/FixInfoPage.ts:39

Handles a scrolling event received by the FMC, before passing it on to components

Parameters​

ParameterTypeDescription
event"pageLeft" | "pageRight" | "pageUp" | "pageDown"the scrolling event

Returns​

Promise<string | boolean>

a Promise that resolves to a boolean or string

Overrides​

WT21FmcPage.onHandleScrolling


onHandleSelectKey()​

protected onHandleSelectKey(event): Promise<string | boolean>

Defined in: workingtitle-instruments-wt21/instruments/html_ui/Pages/VCockpit/Instruments/WT21/FMC/Pages/FixInfo/FixInfoPage.ts:308

Handles a line select key received by the FMC, before passing it on to components

Parameters​

ParameterTypeDescription
eventLineSelectKeyEventthe LSK event

Returns​

Promise<string | boolean>

a Promise that resolves to a boolean or string

Overrides​

WT21FmcPage.onHandleSelectKey


onInit()​

onInit(): void

Defined in: workingtitle-instruments-wt21/instruments/html_ui/Pages/VCockpit/Instruments/WT21/FMC/Pages/FixInfo/FixInfoPage.ts:342

Init lifecycle hook

Returns​

void

Overrides​

WT21FmcPage.onInit


onPageButtonPressed()​

onPageButtonPressed(): void

Defined in: sdk/fmc/AbstractFmcPage.ts:187

Is called when the page button for the current page is pressed while already on that page.

Returns​

void

Inherited from​

WT21FmcPage.onPageButtonPressed


onPause()​

onPause(): void

Defined in: workingtitle-instruments-wt21/instruments/html_ui/Pages/VCockpit/Instruments/WT21/FMC/Pages/FixInfo/FixInfoPage.ts:348

Pause lifecycle hook

Returns​

void

Overrides​

WT21FmcPage.onPause


onResume()​

onResume(): void

Defined in: workingtitle-instruments-wt21/instruments/html_ui/Pages/VCockpit/Instruments/WT21/FMC/Pages/FixInfo/FixInfoPage.ts:353

Resume lifecycle hook

Returns​

void

Overrides​

WT21FmcPage.onResume


pause()​

pause(): void

Defined in: sdk/fmc/AbstractFmcPage.ts:125

Pauses the page and calls appropriate event handlers

Returns​

void

Inherited from​

WT21FmcPage.pause


render()​

render(): FmcRenderTemplate[]

Defined in: workingtitle-instruments-wt21/instruments/html_ui/Pages/VCockpit/Instruments/WT21/FMC/Pages/FixInfo/FixInfoPage.ts:319

Returns​

FmcRenderTemplate[]

Inherit Doc​

Overrides​

WT21FmcPage.render


resume()​

resume(props?): void

Defined in: sdk/fmc/AbstractFmcPage.ts:156

Resumes the page and calls appropriate event handlers

Parameters​

ParameterTypeDescription
props?nullthe props to pass in to the page, if applicable

Returns​

void

Inherited from​

WT21FmcPage.resume


isPositionedFmcColumn()​

static isPositionedFmcColumn(column): column is PositionedFmcColumn

Defined in: sdk/fmc/AbstractFmcPage.ts:325

Tests whether an FmcRenderTemplateColumn is a PositionedFmcColumn.

Parameters​

ParameterTypeDescription
columnFmcRenderTemplateColumnThe FmcRenderTemplateColumn to test.

Returns​

column is PositionedFmcColumn

Whether the column is a PositionedFmcColumn.

Inherited from​

WT21FmcPage.isPositionedFmcColumn


isRenderedPositionedFmcColumn()​

static isRenderedPositionedFmcColumn(column): column is RenderedPositionedFmcColumn

Defined in: sdk/fmc/AbstractFmcPage.ts:346

Tests whether the input is a RenderedPositionedFmcColumn.

Parameters​

ParameterTypeDescription
columnanyThe input to test.

Returns​

column is RenderedPositionedFmcColumn

Whether the column is a RenderedPositionedFmcColumn.

Inherited from​

WT21FmcPage.isRenderedPositionedFmcColumn