Skip to main content

Class: MfdTrafficPage

Defined in: src/workingtitle-instruments-g3x-touch/html_ui/MFD/MainView/Pages/MfdTrafficPage/MfdTrafficPage.tsx:65

An MFD traffic page.

Extends​

Constructors​

Constructor​

new MfdTrafficPage(props): MfdTrafficPage

Defined in: src/sdk/components/FSComponent.ts:76

Creates an instance of a DisplayComponent.

Parameters​

ParameterTypeDescription
propsMfdTrafficPagePropsThe propertis of the component.

Returns​

MfdTrafficPage

Inherited from​

AbstractMfdPage.constructor

Properties​

_iconSrc​

protected readonly _iconSrc: Subject<string>

Defined in: src/workingtitle-instruments-g3x-touch/html_ui/MFD/PageNavigation/AbstractMfdPage.ts:17

Inherited from​

AbstractMfdPage._iconSrc


_knobLabelState​

protected readonly _knobLabelState: FilteredMapSubject<UiKnobId, string>

Defined in: src/workingtitle-instruments-g3x-touch/html_ui/MFD/PageNavigation/AbstractMfdPage.ts:21

Inherited from​

AbstractMfdPage._knobLabelState


_title​

protected readonly _title: Subject<string>

Defined in: src/workingtitle-instruments-g3x-touch/html_ui/MFD/PageNavigation/AbstractMfdPage.ts:13

Inherited from​

AbstractMfdPage._title


context?​

optional context: [] = undefined

Defined in: src/sdk/components/FSComponent.ts:67

The context on this component, if any.

Inherited from​

AbstractMfdPage.context


contextType?​

readonly optional contextType: readonly [] = undefined

Defined in: src/sdk/components/FSComponent.ts:70

The type of context for this component, if any.

Inherited from​

AbstractMfdPage.contextType


iconSrc​

readonly iconSrc: Subscribable<string>

Defined in: src/workingtitle-instruments-g3x-touch/html_ui/MFD/PageNavigation/AbstractMfdPage.ts:19

The file path to this page's icon's image asset.

Inherited from​

AbstractMfdPage.iconSrc


knobLabelState​

readonly knobLabelState: SubscribableMap<UiKnobId, string> & Subscribable<UiKnobRequestedLabelState>

Defined in: src/workingtitle-instruments-g3x-touch/html_ui/MFD/PageNavigation/AbstractMfdPage.ts:23

The bezel rotary knob label state requested by this page.

Inherited from​

AbstractMfdPage.knobLabelState


props​

props: MfdTrafficPageProps & ComponentProps

Defined in: src/sdk/components/FSComponent.ts:64

The properties of the component.

Inherited from​

AbstractMfdPage.props


title​

readonly title: Subscribable<string>

Defined in: src/workingtitle-instruments-g3x-touch/html_ui/MFD/PageNavigation/AbstractMfdPage.ts:15

This page's title.

Inherited from​

AbstractMfdPage.title

Methods​

destroy()​

destroy(): void

Defined in: src/workingtitle-instruments-g3x-touch/html_ui/MFD/MainView/Pages/MfdTrafficPage/MfdTrafficPage.tsx:263

Destroys this component.

Returns​

void

Overrides​

AbstractMfdPage.destroy


getContext()​

protected getContext(context): never

Defined in: src/sdk/components/FSComponent.ts:109

Gets a context data subscription from the context collection.

Parameters​

ParameterTypeDescription
contextneverThe context to get the subscription for.

Returns​

never

The requested context.

Throws​

An error if no data for the specified context type could be found.

Inherited from​

AbstractMfdPage.getContext


onAfterRender()​

onAfterRender(): void

Defined in: src/workingtitle-instruments-g3x-touch/html_ui/MFD/MainView/Pages/MfdTrafficPage/MfdTrafficPage.tsx:130

A callback that is called after the component is rendered.

Returns​

void

Overrides​

AbstractMfdPage.onAfterRender


onBeforeRender()​

onBeforeRender(): void

Defined in: src/sdk/components/FSComponent.ts:83

A callback that is called before the component is rendered.

Returns​

void

Inherited from​

AbstractMfdPage.onBeforeRender


onClose()​

onClose(): void

Defined in: src/workingtitle-instruments-g3x-touch/html_ui/MFD/MainView/Pages/MfdTrafficPage/MfdTrafficPage.tsx:167

Responds to when this page is closed. A page is closed if it is no longer visible.

Returns​

void

Overrides​

AbstractMfdPage.onClose


onOcclusionChange()​

onOcclusionChange(occlusionType): void

Defined in: src/workingtitle-instruments-g3x-touch/html_ui/MFD/PageNavigation/AbstractMfdPage.ts:64

Responds to when the occlusion type applied to this page's parent UI view changes while this page is open.

Parameters​

ParameterTypeDescription
occlusionTypeUiViewOcclusionTypeThe new occlusion type applied to this page's parent UI view.

Returns​

void

Inherited from​

AbstractMfdPage.onOcclusionChange


onOpen()​

onOpen(sizeMode, dimensions): void

Defined in: src/workingtitle-instruments-g3x-touch/html_ui/MFD/MainView/Pages/MfdTrafficPage/MfdTrafficPage.tsx:160

Responds to when this page is opened. A page is opened if it has been selected, has become active, and is visible.

Parameters​

ParameterTypeDescription
sizeModeMfdPageSizeModeThis page's size mode.
dimensionsReadonlyFloat64ArrayThis page's dimensions, as [width, height] in pixels.

Returns​

void

Overrides​

AbstractMfdPage.onOpen


onPause()​

onPause(): void

Defined in: src/workingtitle-instruments-g3x-touch/html_ui/MFD/PageNavigation/AbstractMfdPage.ts:52

Responds to when this page is paused. A page is paused if it is no longer open as the top-most view in its view stack.

Returns​

void

Inherited from​

AbstractMfdPage.onPause


onResize()​

onResize(sizeMode, dimensions): void

Defined in: src/workingtitle-instruments-g3x-touch/html_ui/MFD/MainView/Pages/MfdTrafficPage/MfdTrafficPage.tsx:172

Responds when this page's parent UI view is resized while it is resumed.

Parameters​

ParameterTypeDescription
sizeModeMfdPageSizeModeThis page's new size mode.
dimensionsReadonlyFloat64ArrayThis page's new dimensions, as [width, height] in pixels.

Returns​

void

Overrides​

AbstractMfdPage.onResize


onResume()​

onResume(): void

Defined in: src/workingtitle-instruments-g3x-touch/html_ui/MFD/PageNavigation/AbstractMfdPage.ts:47

Responds to when this page is resumed. A page is resumed when it has been opened as part of the top-most view in its view stack.

Returns​

void

Inherited from​

AbstractMfdPage.onResume


onStage()​

onStage(): void

Defined in: src/workingtitle-instruments-g3x-touch/html_ui/MFD/PageNavigation/AbstractMfdPage.ts:26

Responds to when this page is staged. A page is staged if it has been selected.

Returns​

void

Inherited from​

AbstractMfdPage.onStage


onUiInteractionEvent()​

onUiInteractionEvent(event): boolean

Defined in: src/workingtitle-instruments-g3x-touch/html_ui/MFD/MainView/Pages/MfdTrafficPage/MfdTrafficPage.tsx:204

Handles a UiInteractionEvent.

Parameters​

ParameterTypeDescription
eventUiInteractionEventThe event to handle.

Returns​

boolean

Whether the event was handled.

Overrides​

AbstractMfdPage.onUiInteractionEvent


onUnstage()​

onUnstage(): void

Defined in: src/workingtitle-instruments-g3x-touch/html_ui/MFD/PageNavigation/AbstractMfdPage.ts:31

Responds to when this page is unstaged. A page is unstaged if it is no longer selected.

Returns​

void

Inherited from​

AbstractMfdPage.onUnstage


onUpdate()​

onUpdate(time): void

Defined in: src/workingtitle-instruments-g3x-touch/html_ui/MFD/MainView/Pages/MfdTrafficPage/MfdTrafficPage.tsx:199

Called every update cycle.

Parameters​

ParameterTypeDescription
timenumberThe current real (operating system) time, as a Javascript timestamp.

Returns​

void

Overrides​

AbstractMfdPage.onUpdate


render()​

render(): VNode

Defined in: src/workingtitle-instruments-g3x-touch/html_ui/MFD/MainView/Pages/MfdTrafficPage/MfdTrafficPage.tsx:250

Renders the component.

Returns​

VNode

A JSX element to be rendered.

Overrides​

AbstractMfdPage.render