Skip to main content

Class: MfdMainPageRegistrar

Defined in: src/workingtitle-instruments-g3x-touch/html_ui/MFD/MainView/MfdMainPageRegistrar.ts:6

A record of registered MFD main pages.

Constructors

Constructor

new MfdMainPageRegistrar(): MfdMainPageRegistrar

Returns

MfdMainPageRegistrar

Methods

getRegisteredPagesArray()

getRegisteredPagesArray(): Readonly<MfdPageDefinition>[]

Defined in: src/workingtitle-instruments-g3x-touch/html_ui/MFD/MainView/MfdMainPageRegistrar.ts:46

Gets an array of page definitions registered with this registrar, in ascending order according to the values of their order properties.

Returns

Readonly<MfdPageDefinition>[]

An array of page definitions registered with this registrar, in ascending order according to the values of their order properties.


isPageRegistered()

isPageRegistered(key): boolean

Defined in: src/workingtitle-instruments-g3x-touch/html_ui/MFD/MainView/MfdMainPageRegistrar.ts:18

Checks if a page is registered with a given key.

Parameters

ParameterTypeDescription
keystringThe key to check.

Returns

boolean

Whether a page is registered with the specified key.


registerPage()

registerPage(pageDef): void

Defined in: src/workingtitle-instruments-g3x-touch/html_ui/MFD/MainView/MfdMainPageRegistrar.ts:27

Registers an MFD main page. Registering a page with an existing key will replace the old page registered under that key.

Parameters

ParameterTypeDescription
pageDefReadonly<MfdPageDefinition>The definition of the page to register.

Returns

void


unregisterPage()

unregisterPage(key): boolean

Defined in: src/workingtitle-instruments-g3x-touch/html_ui/MFD/MainView/MfdMainPageRegistrar.ts:36

Unregisters an MFD main page.

Parameters

ParameterTypeDescription
keystringThe key of the page to unregister.

Returns

boolean

Whether the page with the specified key was successfully unregistered.