Skip to main content

Class: FlightLogPage

Defined in: workingtitle-instruments-wt21/instruments/html_ui/Pages/VCockpit/Instruments/WT21v2/FMC/Pages/FlightLogPage.ts:29

Flight Log Page

Extends​

Constructors​

Constructor​

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

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

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​

FlightLogPage

Inherited from​

WT21FmcPage.constructor

Properties​

avgSpeedsData​

protected readonly avgSpeedsData: MappedSubject<[number, number], AverageSpeedsData>

Defined in: workingtitle-instruments-wt21/instruments/html_ui/Pages/VCockpit/Instruments/WT21v2/FMC/Pages/FlightLogPage.ts:32


baseInstrument​

readonly baseInstrument: WT21_FMC_Instrument

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

Deprecated​

Inherited from​

WT21FmcPage.baseInstrument


bus​

readonly bus: EventBus

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

the event bus

Inherited from​

WT21FmcPage.bus


clockConsumer​

protected clockConsumer: Consumer<number>

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

Inherited from​

WT21FmcPage.clockConsumer


defaultLifecycle​

readonly defaultLifecycle: ReadonlyLifecycle

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

The default lifecycle for this page

Inherited from​

WT21FmcPage.defaultLifecycle


fms​

readonly fms: WT21Fms

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

the fms to use

Inherited from​

WT21FmcPage.fms


isInitialized​

isInitialized: boolean = false

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

Inherited from​

WT21FmcPage.isInitialized


memorizedComponents​

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

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

Inherited from​

WT21FmcPage.memorizedComponents


PagingFormat​

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

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

Inherited from​

WT21FmcPage.PagingFormat


PagingIndicator​

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

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

Inherited from​

WT21FmcPage.PagingIndicator


params​

readonly params: Map<any, any>

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

Inherited from​

WT21FmcPage.params


renderCallback​

readonly renderCallback: FmcRenderCallback

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

the render callback

Inherited from​

WT21FmcPage.renderCallback


screen​

readonly screen: WT21FmcScreen

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

the FMC screen instance

Inherited from​

WT21FmcPage.screen


lifecyclePolicy​

static lifecyclePolicy: FmcPageLifecyclePolicy = FmcPageLifecyclePolicy.Singleton

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

Configures the FmcPageLifecyclePolicy for this page

Inherited from​

WT21FmcPage.lifecyclePolicy

Accessors​

props​

Get Signature​

get props(): P

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

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:344

Accepts a page extension

Parameters​

ParameterTypeDescription
extensionFmcPageExtension<FlightLogPage>the page extension

Returns​

void

Inherited from​

WT21FmcPage.acceptPageExtension


addBinding()​

addBinding(binding): void

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

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

Deprecated​

use the lifecycle API with defaultLifecycle instead

Inherited from​

WT21FmcPage.addBinding


clockHandler()​

protected clockHandler(d): void

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

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


createDefaultLifecycle()​

protected createDefaultLifecycle(): Lifecycle

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

Creates the page's default lifecycle.

Returns​

Lifecycle

A lifecycle to use as the default.

Inherited from​

WT21FmcPage.createDefaultLifecycle


destroy()​

destroy(): void

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

Destroys the page and calls appropriate event handlers

Returns​

void

Inherited from​

WT21FmcPage.destroy


handleLineSelectKey()​

handleLineSelectKey(event): Promise<string | boolean>

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

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:442

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:127

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:256

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:248

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:241

Destroy lifecycle hook

Returns​

void

Inherited from​

WT21FmcPage.onDestroy


onHandleScrolling()​

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

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

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.onHandleScrolling


onHandleSelectKey()​

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

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

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.onHandleSelectKey


onInit()​

protected onInit(): void

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

Init lifecycle hook

Returns​

void

Inherited from​

WT21FmcPage.onInit


onPageButtonPressed()​

onPageButtonPressed(): void

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

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

Returns​

void

Inherited from​

WT21FmcPage.onPageButtonPressed


onPause()​

protected onPause(): void

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

Pause lifecycle hook

Returns​

void

Inherited from​

WT21FmcPage.onPause


onResume()​

protected onResume(): void

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

Resume lifecycle hook

Returns​

void

Inherited from​

WT21FmcPage.onResume


pause()​

pause(): void

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

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/WT21v2/FMC/Pages/FlightLogPage.ts:67

Returns​

FmcRenderTemplate[]

Inherit Doc​

Overrides​

WT21FmcPage.render


resume()​

resume(props?): void

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

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:353

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:374

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