Home Reference Source
import FindTab from './ui/components/tabs/tab_find.js'
public class | source

FindTab

tab panel for searching through the patch

Constructor Summary

Public Constructor
public

Member Summary

Private Members
private

_canceledSearch: number

private

_closed: boolean

private
private
private

_findTimeoutId: number

private
private
private

_lastSearch: string

private
private
private

_maxIdx: *

private
private
private
private
private

_tab: *

private

_tabs: *

private

_toggles: string[]

private
private

Method Summary

Public Methods
public

focus()

public

highlightWord(word: *, str: *): *

public

isClosed(): *

public

isVisible(): *

public

search(str: *, userInvoked: *)

public
public

setClicked(num: *)

public
public

setSelectedOp(opid: *)

public
Private Methods
private

_addResultOp(op: *, result: *, idx: *): *

private
private

_addResultVar(v: *): *

private

_doSearch(str: *, userInvoked: *, ops: *, results: *): *

private

_doSearchTriggers(str: *, userInvoked: *, ops: *, results: *): *

private

_doSearchVars(str: *, userInvoked: *, ops: *, results: *): *

private

Public Constructors

public constructor() source

Private Members

private _canceledSearch: number source

private _closed: boolean source

private _eleInput: * source

private _eleResults: * source

private _findTimeoutId: number source

private _inputId: * source

private _lastClicked: * source

private _lastSearch: string source

private _lastSelected: * source

private _listenerids: *[] source

private _maxIdx: * source

private _onTrigger: * source

private _resultsTriggers: * source

private _resultsTriggersTimes: {} source

private _resultsVars: *[] source

private _tab: * source

private _tabs: * source

private _toggles: string[] source

private _updateCb: * source

private _updateVarsInterval: * source

Public Methods

public focus() source

public highlightWord(word: *, str: *): * source

Params:

NameTypeAttributeDescription
word *
str *

Return:

*

public isClosed(): * source

Return:

*

public isVisible(): * source

Return:

*

Params:

NameTypeAttributeDescription
str *
userInvoked *

public searchAfterPatchUpdate() source

public setClicked(num: *) source

Params:

NameTypeAttributeDescription
num *

public setSearchInputValue(str: *) source

Params:

NameTypeAttributeDescription
str *

public setSelectedOp(opid: *) source

Params:

NameTypeAttributeDescription
opid *

public updateHistory() source

Private Methods

private _addResultOp(op: *, result: *, idx: *): * source

Params:

NameTypeAttributeDescription
op *
result *
idx *

Return:

*

private _addResultTrigger(v: *): * source

Params:

NameTypeAttributeDescription
v *

Return:

*

private _addResultVar(v: *): * source

Params:

NameTypeAttributeDescription
v *

Return:

*

private _doSearch(str: *, userInvoked: *, ops: *, results: *): * source

Params:

NameTypeAttributeDescription
str *
userInvoked *
ops *
results *

Return:

*

private _doSearchTriggers(str: *, userInvoked: *, ops: *, results: *): * source

Params:

NameTypeAttributeDescription
str *
userInvoked *
ops *
results *

Return:

*

private _doSearchVars(str: *, userInvoked: *, ops: *, results: *): * source

Params:

NameTypeAttributeDescription
str *
userInvoked *
ops *
results *

Return:

*

private _updateTriggers(n: *) source

Params:

NameTypeAttributeDescription
n *