Class: GtcDurationDialog
Defined in: workingtitle-instruments-g3000/html_ui/GTC/Dialog/GtcDurationDialog.tsx:26
A pop-up dialog which allows the user to select a duration, in seconds.
Extends
Constructors
Constructor
new GtcDurationDialog(
props):GtcDurationDialog
Defined in: workingtitle-instruments-g3000/html_ui/GTC/Dialog/AbstractSimpleGtcNumberDialog.tsx:26
Parameters
| Parameter | Type |
|---|---|
props | GtcViewProps |
Returns
GtcDurationDialog
Inherit Doc
Inherited from
AbstractSimpleGtcNumberDialog.constructor
Properties
_activeComponent
protectedreadonly_activeComponent:Subject<null|GtcInteractionHandler>
Defined in: workingtitle-instruments-g3000/html_ui/GTC/GtcService/GtcView.ts:34
Inherited from
AbstractSimpleGtcNumberDialog._activeComponent
_sidebarState
protectedreadonly_sidebarState:GtcSidebarState
Defined in: workingtitle-instruments-g3000/html_ui/GTC/GtcService/GtcView.ts:36
Inherited from
AbstractSimpleGtcNumberDialog._sidebarState
_title
protectedreadonly_title:Subject<undefined|string>
Defined in: workingtitle-instruments-g3000/html_ui/GTC/GtcService/GtcView.ts:40
Inherited from
AbstractSimpleGtcNumberDialog._title
activeInputDef?
protectedoptionalactiveInputDef:GtcNumberDialogInputDefinition
Defined in: workingtitle-instruments-g3000/html_ui/GTC/Dialog/AbstractGtcNumberDialog.tsx:74
Inherited from
AbstractSimpleGtcNumberDialog.activeInputDef
backspaceRef
protectedreadonlybackspaceRef:NodeReference<ImgTouchButton>
Defined in: workingtitle-instruments-g3000/html_ui/GTC/Dialog/AbstractGtcNumberDialog.tsx:68
Inherited from
AbstractSimpleGtcNumberDialog.backspaceRef
bus
protectedreadonlybus:EventBus
Defined in: workingtitle-instruments-g3000/html_ui/GTC/GtcService/GtcView.ts:31
Inherited from
AbstractSimpleGtcNumberDialog.bus
context?
optionalcontext: [] =undefined
Defined in: sdk/components/FSComponent.ts:64
The context on this component, if any.
Inherited from
AbstractSimpleGtcNumberDialog.context
contextType?
readonlyoptionalcontextType: readonly [] =undefined
Defined in: sdk/components/FSComponent.ts:67
The type of context for this component, if any.
Inherited from
AbstractSimpleGtcNumberDialog.contextType
gtcService
protectedreadonlygtcService:GtcService
Defined in: workingtitle-instruments-g3000/html_ui/GTC/GtcService/GtcView.ts:32
Inherited from
AbstractSimpleGtcNumberDialog.gtcService
inputContainerRef
protectedreadonlyinputContainerRef:NodeReference<HTMLDivElement>
Defined in: workingtitle-instruments-g3000/html_ui/GTC/Dialog/AbstractGtcNumberDialog.tsx:66
Inherited from
AbstractSimpleGtcNumberDialog.inputContainerRef
inputDefinitions
protectedreadonlyinputDefinitions:Map<string,GtcNumberDialogInputDefinition>
Defined in: workingtitle-instruments-g3000/html_ui/GTC/Dialog/AbstractGtcNumberDialog.tsx:72
Inherited from
AbstractSimpleGtcNumberDialog.inputDefinitions
inputRef
protectedreadonlyinputRef:NodeReference<NumberInput>
Defined in: workingtitle-instruments-g3000/html_ui/GTC/Dialog/AbstractSimpleGtcNumberDialog.tsx:20
Inherited from
AbstractSimpleGtcNumberDialog.inputRef
isAlive
protectedisAlive:boolean=true
Defined in: workingtitle-instruments-g3000/html_ui/GTC/Dialog/AbstractGtcNumberDialog.tsx:81
Inherited from
AbstractSimpleGtcNumberDialog.isAlive
numpadRef
protectedreadonlynumpadRef:NodeReference<NumberPad>
Defined in: workingtitle-instruments-g3000/html_ui/GTC/Dialog/AbstractGtcNumberDialog.tsx:67
Inherited from
AbstractSimpleGtcNumberDialog.numpadRef
props
props:
GtcViewProps&ComponentProps
Defined in: sdk/components/FSComponent.ts:61
The properties of the component.
Inherited from
AbstractSimpleGtcNumberDialog.props
resolveFunction()?
protectedoptionalresolveFunction: (value) =>void
Defined in: workingtitle-instruments-g3000/html_ui/GTC/Dialog/AbstractGtcNumberDialog.tsx:76
Parameters
| Parameter | Type |
|---|---|
value | any |
Returns
void
Inherited from
AbstractSimpleGtcNumberDialog.resolveFunction
resultObject
protectedresultObject:GtcDialogResult<number>
Defined in: workingtitle-instruments-g3000/html_ui/GTC/Dialog/AbstractGtcNumberDialog.tsx:77
Inherited from
AbstractSimpleGtcNumberDialog.resultObject
rootCssClass
protectedreadonlyrootCssClass:SetSubject<string>
Defined in: workingtitle-instruments-g3000/html_ui/GTC/Dialog/AbstractGtcNumberDialog.tsx:70
Inherited from
AbstractSimpleGtcNumberDialog.rootCssClass
showDecimalButton
protectedreadonlyshowDecimalButton:Subject<boolean>
Defined in: workingtitle-instruments-g3000/html_ui/GTC/Dialog/AbstractGtcNumberDialog.tsx:87
Whether the decimal button is shown. Defaults to false.
Inherited from
AbstractSimpleGtcNumberDialog.showDecimalButton
showSignButton
protectedreadonlyshowSignButton:Subject<boolean>
Defined in: workingtitle-instruments-g3000/html_ui/GTC/Dialog/AbstractGtcNumberDialog.tsx:84
Whether the sign button is shown. Defaults to false.
Inherited from
AbstractSimpleGtcNumberDialog.showSignButton
sidebarState
readonlysidebarState:SidebarStateReadonly
Defined in: workingtitle-instruments-g3000/html_ui/GTC/GtcService/GtcView.ts:38
The GTC sidebar state (labels and buttons) requested by this view.
Inherited from
AbstractSimpleGtcNumberDialog.sidebarState
title
readonlytitle:Subscribable<undefined|string>
Defined in: workingtitle-instruments-g3000/html_ui/GTC/GtcService/GtcView.ts:42
This view's title.
Inherited from
AbstractSimpleGtcNumberDialog.title
value
protectedreadonlyvalue:Subject<number>
Defined in: workingtitle-instruments-g3000/html_ui/GTC/Dialog/AbstractSimpleGtcNumberDialog.tsx:23
This dialog's current selected value.
Inherited from
AbstractSimpleGtcNumberDialog.value
Methods
cleanupRequest()
protectedcleanupRequest():void
Defined in: workingtitle-instruments-g3000/html_ui/GTC/Dialog/AbstractGtcNumberDialog.tsx:312
Clears this dialog's pending request and fulfills the pending request Promise if one exists.
Returns
void
Inherited from
AbstractSimpleGtcNumberDialog.cleanupRequest
destroy()
destroy():
void
Defined in: workingtitle-instruments-g3000/html_ui/GTC/Dialog/AbstractGtcNumberDialog.tsx:451
Destroys this component.
Returns
void
Inherited from
AbstractSimpleGtcNumberDialog.destroy
getContext()
protectedgetContext(context):never
Defined in: sdk/components/FSComponent.ts:106
Gets a context data subscription from the context collection.
Parameters
| Parameter | Type | Description |
|---|---|---|
context | never | The 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
AbstractSimpleGtcNumberDialog.getContext
getDualConcentricKnobLabel()
protectedgetDualConcentricKnobLabel():string
Defined in: workingtitle-instruments-g3000/html_ui/GTC/Dialog/AbstractGtcNumberDialog.tsx:116
Gets the label key or label string for the dual concentric knob while this dialog is active.
Returns
string
The label key or label string for the dual concentric knob while this dialog is active.
Inherited from
AbstractSimpleGtcNumberDialog.getDualConcentricKnobLabel
getInvalidValueMessage()
protectedgetInvalidValueMessage():string
Defined in: workingtitle-instruments-g3000/html_ui/GTC/Dialog/GtcDurationDialog.tsx:59
Gets the message to display when attempting to return an invalid value.
Returns
string
The message to display when attempting to return an invalid value.
Overrides
AbstractSimpleGtcNumberDialog.getInvalidValueMessage
getInvalidValueMessageDialogKey()
protectedgetInvalidValueMessageDialogKey():string
Defined in: workingtitle-instruments-g3000/html_ui/GTC/Dialog/AbstractGtcNumberDialog.tsx:305
Gets the key of the message dialog to open to display the invalid value message.
Returns
string
The key of the message dialog to open to display the invalid value message.
Inherited from
AbstractSimpleGtcNumberDialog.getInvalidValueMessageDialogKey
getPayload()
protectedgetPayload(value):number
Defined in: workingtitle-instruments-g3000/html_ui/GTC/Dialog/GtcDurationDialog.tsx:64
Gets the payload for a completed request.
Parameters
| Parameter | Type | Description |
|---|---|---|
value | number | The numeric value to return with the request. |
Returns
number
The payload for a completed request.
Overrides
AbstractSimpleGtcNumberDialog.getPayload
getRootCssClassName()
protectedgetRootCssClassName():undefined|string
Defined in: workingtitle-instruments-g3000/html_ui/GTC/Dialog/GtcDurationDialog.tsx:69
Gets the CSS class name (singular) for this dialog's root element.
Returns
undefined | string
The CSS class name (singular) for this dialog's root element.
Overrides
AbstractSimpleGtcNumberDialog.getRootCssClassName
isValueValid()
protectedisValueValid(value):boolean
Defined in: workingtitle-instruments-g3000/html_ui/GTC/Dialog/GtcDurationDialog.tsx:54
Checks if a value is valid to be returned for a request.
Parameters
| Parameter | Type | Description |
|---|---|---|
value | number | The value to check. |
Returns
boolean
Whether the specified value is valid to be returned for a request.
Overrides
AbstractSimpleGtcNumberDialog.isValueValid
onAfterRender()
onAfterRender():
void
Defined in: workingtitle-instruments-g3000/html_ui/GTC/Dialog/AbstractGtcNumberDialog.tsx:107
A callback that is called after the component is rendered.
Returns
void
Inherited from
AbstractSimpleGtcNumberDialog.onAfterRender
onBackspacePressed()
protectedonBackspacePressed():void
Defined in: workingtitle-instruments-g3000/html_ui/GTC/Dialog/AbstractGtcNumberDialog.tsx:355
Responds to when this dialog's backspace button is pressed.
Returns
void
Inherited from
AbstractSimpleGtcNumberDialog.onBackspacePressed
onBeforeRender()
onBeforeRender():
void
Defined in: sdk/components/FSComponent.ts:80
A callback that is called before the component is rendered.
Returns
void
Inherited from
AbstractSimpleGtcNumberDialog.onBeforeRender
onCleanupRequest()
protectedonCleanupRequest():void
Defined in: workingtitle-instruments-g3000/html_ui/GTC/Dialog/AbstractGtcNumberDialog.tsx:326
A callback method which is called when this dialog cleans up a request. This method is called before the pending request Promise is fulfilled, if one exists.
Returns
void
Inherited from
AbstractSimpleGtcNumberDialog.onCleanupRequest
onClose()
onClose():
void
Defined in: workingtitle-instruments-g3000/html_ui/GTC/Dialog/AbstractGtcNumberDialog.tsx:206
A method that is called when this view is closed. A view is closed when it does not appear in the most recent history state of its parent view stack.
Returns
void
Inherited from
AbstractSimpleGtcNumberDialog.onClose
onDecimalPressed()
protectedonDecimalPressed():void
Defined in: workingtitle-instruments-g3000/html_ui/GTC/Dialog/AbstractGtcNumberDialog.tsx:348
Called when this dialog's decimal button is pressed.
Returns
void
Inherited from
AbstractSimpleGtcNumberDialog.onDecimalPressed
onEditingActiveChanged()
protectedonEditingActiveChanged(isEditingActive,activeInputDef):void
Defined in: workingtitle-instruments-g3000/html_ui/GTC/Dialog/AbstractGtcNumberDialog.tsx:126
Responds to when the editing state of this dialog's active number input changes.
Parameters
| Parameter | Type | Description |
|---|---|---|
isEditingActive | boolean | Whether editing is active. |
activeInputDef | GtcNumberDialogInputDefinition | The active input definition. |
Returns
void
Inherited from
AbstractSimpleGtcNumberDialog.onEditingActiveChanged
onGtcInteractionEvent()
onGtcInteractionEvent(
event):boolean
Defined in: workingtitle-instruments-g3000/html_ui/GTC/Dialog/AbstractGtcNumberDialog.tsx:216
Called when there is an interaction event when this is the active view.
Parameters
| Parameter | Type | Description |
|---|---|---|
event | GtcInteractionEvent | The event. |
Returns
boolean
Whether the event was handled or not.
Inherited from
AbstractSimpleGtcNumberDialog.onGtcInteractionEvent
onInUse()
onInUse():
void
Defined in: workingtitle-instruments-g3000/html_ui/GTC/GtcService/GtcView.ts:48
A method that is called when this view comes into use. A view is in-use when it appears in at least one history state of its parent view stack.
Returns
void
Inherited from
AbstractSimpleGtcNumberDialog.onInUse
onNumberPressed()
protectedonNumberPressed(value):void
Defined in: workingtitle-instruments-g3000/html_ui/GTC/Dialog/AbstractGtcNumberDialog.tsx:334
Responds to when one of this dialog's number pad buttons is pressed.
Parameters
| Parameter | Type | Description |
|---|---|---|
value | number | The value of the button that was pressed. |
Returns
void
Inherited from
AbstractSimpleGtcNumberDialog.onNumberPressed
onOpen()
onOpen(
wasPreviouslyOpened):void
Defined in: workingtitle-instruments-g3000/html_ui/GTC/GtcService/GtcView.ts:67
A method that is called when this view is opened. A view is open when it appears in the most recent history state of its parent view stack.
Parameters
| Parameter | Type | Description |
|---|---|---|
wasPreviouslyOpened | boolean | True when this view was open in a previous view stack (like if the go back button was used to reach this page). |
Returns
void
Inherited from
AbstractSimpleGtcNumberDialog.onOpen
onOutOfUse()
onOutOfUse():
void
Defined in: workingtitle-instruments-g3000/html_ui/GTC/GtcService/GtcView.ts:56
A method that is called when this view goes out of use. A view is out-of-use when it does not appear in any history states of its parent view stack.
Returns
void
Inherited from
AbstractSimpleGtcNumberDialog.onOutOfUse
onPause()
onPause():
void
Defined in: workingtitle-instruments-g3000/html_ui/GTC/GtcService/GtcView.ts:89
A method that is called when this view is paused. A view is paused when it is not the active view.
Returns
void
Inherited from
AbstractSimpleGtcNumberDialog.onPause
onRequest()
protectedonRequest(input):number
Defined in: workingtitle-instruments-g3000/html_ui/GTC/Dialog/GtcDurationDialog.tsx:42
A callback method which is called when this dialog receives a request.
Parameters
| Parameter | Type | Description |
|---|---|---|
input | GtcDurationDialogInput | The input for the request. |
Returns
number
The initial numeric value to load into this dialog's number input.
Overrides
AbstractSimpleGtcNumberDialog.onRequest
onResume()
onResume():
void
Defined in: workingtitle-instruments-g3000/html_ui/GTC/Dialog/AbstractGtcNumberDialog.tsx:211
A method that is called when this view is resumed. A view is resumed when it is the active view.
Returns
void
Inherited from
AbstractSimpleGtcNumberDialog.onResume
onSignPressed()
protectedonSignPressed():void
Defined in: workingtitle-instruments-g3000/html_ui/GTC/Dialog/AbstractGtcNumberDialog.tsx:341
Called when this dialog's sign button is pressed.
Returns
void
Inherited from
AbstractSimpleGtcNumberDialog.onSignPressed
registerInputDefinition()
protectedregisterInputDefinition(key,def):void
Defined in: workingtitle-instruments-g3000/html_ui/GTC/Dialog/AbstractGtcNumberDialog.tsx:96
Registers an input definition with this dialog. Definitions must be registered before this dialog is rendered in order to function properly.
Parameters
| Parameter | Type | Description |
|---|---|---|
key | string | The key to register the definition under. If an existing definition is already registered under the same key, it will be replaced. |
def | GtcNumberDialogInputDefinition | The definition to register. |
Returns
void
Inherited from
AbstractSimpleGtcNumberDialog.registerInputDefinition
render()
render():
VNode
Defined in: workingtitle-instruments-g3000/html_ui/GTC/Dialog/AbstractGtcNumberDialog.tsx:360
Renders the component.
Returns
A JSX element to be rendered.
Inherited from
AbstractSimpleGtcNumberDialog.render
renderBackspaceButton()
protectedrenderBackspaceButton(ref,rootCssClassName):null|VNode
Defined in: workingtitle-instruments-g3000/html_ui/GTC/Dialog/AbstractGtcNumberDialog.tsx:427
Renders this dialog's backspace button.
Parameters
| Parameter | Type | Description |
|---|---|---|
ref | NodeReference<DisplayComponent<any, []>> | The reference to which to assign the rendered button. |
rootCssClassName | undefined | string | The CSS class name for this dialog's root element. |
Returns
null | VNode
This dialog's backspace button, as a VNode, or null if this dialog does not have a backspace button.
Inherited from
AbstractSimpleGtcNumberDialog.renderBackspaceButton
renderInput()
protectedrenderInput(ref,valueToBind):VNode
Defined in: workingtitle-instruments-g3000/html_ui/GTC/Dialog/GtcDurationDialog.tsx:74
Renders this dialog's number input.
Parameters
| Parameter | Type | Description |
|---|---|---|
ref | NodeReference<NumberInput> | The reference to which to assign the rendered input. |
valueToBind | Subject<number> | The value to bind to the input. |
Returns
This dialog's number input, as a VNode.
Overrides
AbstractSimpleGtcNumberDialog.renderInput
renderInputToContainer()
protectedrenderInputToContainer(def):void
Defined in: workingtitle-instruments-g3000/html_ui/GTC/Dialog/AbstractGtcNumberDialog.tsx:195
Renders one of this dialog's registered inputs to the input container.
Parameters
| Parameter | Type | Description |
|---|---|---|
def | GtcNumberDialogInputDefinition | The definition for the input to render. |
Returns
void
Inherited from
AbstractSimpleGtcNumberDialog.renderInputToContainer
renderNumberPad()
protectedrenderNumberPad(ref,rootCssClassName):VNode
Defined in: workingtitle-instruments-g3000/html_ui/GTC/Dialog/AbstractGtcNumberDialog.tsx:395
Renders this dialog's number pad.
Parameters
| Parameter | Type | Description |
|---|---|---|
ref | NodeReference<NumberPad> | The reference to which to assign the rendered number pad. |
rootCssClassName | undefined | string | The CSS class name for this dialog's root element. |
Returns
This dialog's number pad, as a VNode.
Inherited from
AbstractSimpleGtcNumberDialog.renderNumberPad
renderOtherContents()
protectedrenderOtherContents(rootCssClassName):null|VNode
Defined in: workingtitle-instruments-g3000/html_ui/GTC/Dialog/AbstractGtcNumberDialog.tsx:446
Renders additional contents in this dialog's root container.
Parameters
| Parameter | Type | Description |
|---|---|---|
rootCssClassName | undefined | string | The CSS class name for this dialog's root element. |
Returns
null | VNode
Additional contents in this dialog's root container, as a VNode, or null if there are no additional
contents.
Inherited from
AbstractSimpleGtcNumberDialog.renderOtherContents
renderOtherNumberPadContents()
protectedrenderOtherNumberPadContents(rootCssClassName):null|VNode
Defined in: workingtitle-instruments-g3000/html_ui/GTC/Dialog/AbstractGtcNumberDialog.tsx:417
Renders additional contents in this dialog's number pad container.
Parameters
| Parameter | Type | Description |
|---|---|---|
rootCssClassName | undefined | string | The CSS class name for this dialog's root element. |
Returns
null | VNode
Additional contents in this dialog's number pad container, as a VNode, or null if there are no
additional contents.
Inherited from
AbstractSimpleGtcNumberDialog.renderOtherNumberPadContents
request()
request(
input):Promise<GtcDialogResult<number>>
Defined in: workingtitle-instruments-g3000/html_ui/GTC/Dialog/AbstractSimpleGtcNumberDialog.tsx:38
Requests a value from this dialog.
Parameters
| Parameter | Type | Description |
|---|---|---|
input | GtcDurationDialogInput | Input parameters defining the request. |
Returns
Promise<GtcDialogResult<number>>
A Promise which is fulfilled with the result of the request. The result will indicate whether the request was cancelled, and if the request was not cancelled, it will also contain the requested value.
Inherited from
AbstractSimpleGtcNumberDialog.request
resetActiveInput()
protectedresetActiveInput(key?,initialValue?,resetEditing?):void
Defined in: workingtitle-instruments-g3000/html_ui/GTC/Dialog/AbstractGtcNumberDialog.tsx:164
Resets the active input. This will
Parameters
| Parameter | Type | Default value | Description |
|---|---|---|---|
key? | string | undefined | The key of the input to set as the active input. Defaults to the key of the current active input. |
initialValue? | number | undefined | The initial value to set on the new active input. If not defined, the new active input will retain its current value. |
resetEditing? | boolean | false | Whether to reset the editing state of this dialog, in effect resetting the Back/Cancel button on the button bar to Back. Defaults to false. |
Returns
void
Inherited from
AbstractSimpleGtcNumberDialog.resetActiveInput
validateValueAndClose()
protectedvalidateValueAndClose():Promise<void>
Defined in: workingtitle-instruments-g3000/html_ui/GTC/Dialog/AbstractGtcNumberDialog.tsx:248
Validates the currently selected value, and if valid sets the value to be returned for the currently pending request and closes this dialog.
Returns
Promise<void>