Skip to main content

Class: FmcPageFactory<T>

FMC Page factory, used to instantiate pages.

FMC Pages should be instantiated with the required data and objects (FMS instances, avionics-specific utilities, event busses) in instances of subclasses of this type.

Type parameters

NameType
Textends AbstractFmcPage

Constructors

constructor

new FmcPageFactory<T>(): FmcPageFactory<T>

Type parameters

NameType
Textends AbstractFmcPage<any>

Returns

FmcPageFactory<T>

Methods

createPage

createPage<U>(pageCtor, bus, screen, props, renderCallback): T & AbstractFmcPage<U>

Creates a page of the specified subtype of AbstractFmcPage

Type parameters

NameType
Uextends null | object

Parameters

NameTypeDescription
pageCtor(...args: any[]) => Tthe page constructor
busEventBusthe event bus
screenFmcScreen<T & AbstractFmcPage<U>, any>the FMC screen instance
propsUthe props to create this page with
renderCallbackFmcRenderCallbackthe render callback to give to the page

Returns

T & AbstractFmcPage<U>

Defined in

src/sdk/fmc/FmcPageFactory.ts:24