Winter Cardinal UI - v0.457.0 / DDialogSelectListItemUpdater

Class: DDialogSelectListItemUpdater<VALUE>

The primary purpose of this class is to minimize the number of rendered items (e.g., DListItem) as low as possible and to update their positions and states. For this sake, the updater calculates the required number of items whenever their container size changes and creates items if needed.

Type parameters

Name Type
VALUE unknown

Hierarchy

Table of contents

Constructors

Properties

Accessors

Methods

Constructors

constructor

• new DDialogSelectListItemUpdater<VALUE>(data, content, container, options?): DDialogSelectListItemUpdater<VALUE>

Type parameters

Name Type
VALUE unknown

Parameters

Name Type
data DListData<VALUE>
content DBase<DThemeBase, DBaseOptions<DThemeBase, any>>
container DBase<DThemeBase, DBaseOptions<DThemeBase, any>>
options? DListItemUpdaterOptions<VALUE>

Returns

DDialogSelectListItemUpdater<VALUE>

Inherited from

DListItemUpdater.constructor

Defined in

src/main/typescript/wcardinal/ui/d-item-updater.ts:82

Properties

_container

• Protected _container: DBase<DThemeBase, DBaseOptions<DThemeBase, any>>

Inherited from

DListItemUpdater._container

Defined in

src/main/typescript/wcardinal/ui/d-item-updater.ts:78


_content

• Protected _content: DBase<DThemeBase, DBaseOptions<DThemeBase, any>>

Inherited from

DListItemUpdater._content

Defined in

src/main/typescript/wcardinal/ui/d-item-updater.ts:77


_data

• Protected _data: DListData<VALUE>

Inherited from

DListItemUpdater._data

Defined in

src/main/typescript/wcardinal/ui/d-item-updater.ts:76


_initItem

• Protected _initItem: DItemUpdaterInitItem<DListData<VALUE>, DListItem<VALUE, DThemeListItem, DListItemOptions<VALUE, DThemeListItem, any>>>

Inherited from

DListItemUpdater._initItem

Defined in

src/main/typescript/wcardinal/ui/d-item-updater.ts:80


_isUpdateItemsCalled

• Protected _isUpdateItemsCalled: boolean

Inherited from

DListItemUpdater._isUpdateItemsCalled

Defined in

src/main/typescript/wcardinal/ui/d-item-updater.ts:68


_isUpdateItemsCalledForcibly

• Protected _isUpdateItemsCalledForcibly: boolean

Inherited from

DListItemUpdater._isUpdateItemsCalledForcibly

Defined in

src/main/typescript/wcardinal/ui/d-item-updater.ts:69


_itemHeight

• Protected _itemHeight: number

Inherited from

DListItemUpdater._itemHeight

Defined in

src/main/typescript/wcardinal/ui/d-item-updater.ts:70


_itemIndexEnd

• Protected _itemIndexEnd: number

Inherited from

DListItemUpdater._itemIndexEnd

Defined in

src/main/typescript/wcardinal/ui/d-item-updater.ts:74


_itemIndexStart

• Protected _itemIndexStart: number

Inherited from

DListItemUpdater._itemIndexStart

Defined in

src/main/typescript/wcardinal/ui/d-item-updater.ts:73


_itemWidth

• Protected _itemWidth: number

Inherited from

DListItemUpdater._itemWidth

Defined in

src/main/typescript/wcardinal/ui/d-item-updater.ts:71


_multiplicity

• Protected _multiplicity: number

Inherited from

DListItemUpdater._multiplicity

Defined in

src/main/typescript/wcardinal/ui/d-item-updater.ts:72


_newItem

• Protected _newItem: DItemUpdaterNewItem<DListData<VALUE>, DListItem<VALUE, DThemeListItem, DListItemOptions<VALUE, DThemeListItem, any>>>

Inherited from

DListItemUpdater._newItem

Defined in

src/main/typescript/wcardinal/ui/d-item-updater.ts:79


_updateItemsCount

• Protected _updateItemsCount: number

Inherited from

DListItemUpdater._updateItemsCount

Defined in

src/main/typescript/wcardinal/ui/d-item-updater.ts:67


_workItems

• Protected _workItems: DListItem<VALUE, DThemeListItem, DListItemOptions<VALUE, DThemeListItem, any>>[]

Inherited from

DListItemUpdater._workItems

Defined in

src/main/typescript/wcardinal/ui/d-item-updater.ts:75

Accessors

multiplicity

• get multiplicity(): number

Returns

number

Inherited from

DListItemUpdater.multiplicity

Defined in

src/main/typescript/wcardinal/ui/d-item-updater.ts:132

Methods

initItem

▸ initItem(this, item, index, data): DListItem<VALUE, DThemeListItem, DListItemOptions<VALUE, DThemeListItem, any>>

Parameters

Name Type
this undefined
item DListItem<VALUE, DThemeListItem, DListItemOptions<VALUE, DThemeListItem, any>>
index number
data DListData<VALUE>

Returns

DListItem<VALUE, DThemeListItem, DListItemOptions<VALUE, DThemeListItem, any>>

Inherited from

DListItemUpdater.initItem

Defined in

src/main/typescript/wcardinal/ui/d-item-updater.ts:123


initItemNoStriping

▸ initItemNoStriping(this, item, index, data): DListItem<VALUE, DThemeListItem, DListItemOptions<VALUE, DThemeListItem, any>>

Parameters

Name Type
this undefined
item DListItem<VALUE, DThemeListItem, DListItemOptions<VALUE, DThemeListItem, any>>
index number
data DListData<VALUE>

Returns

DListItem<VALUE, DThemeListItem, DListItemOptions<VALUE, DThemeListItem, any>>

Inherited from

DListItemUpdater.initItemNoStriping

Defined in

src/main/typescript/wcardinal/ui/d-item-updater.ts:128


lock

▸ lock(): void

Returns

void

Inherited from

DListItemUpdater.lock

Defined in

src/main/typescript/wcardinal/ui/d-item-updater.ts:136


moveFocus

▸ moveFocus(e, target, moveVertically, moveHorizontally): boolean

Parameters

Name Type
e KeyboardEvent
target DBase<DThemeBase, DBaseOptions<DThemeBase, any>>
moveVertically boolean
moveHorizontally boolean

Returns

boolean

Inherited from

DListItemUpdater.moveFocus

Defined in

src/main/typescript/wcardinal/ui/d-item-updater.ts:367


newItem

▸ newItem(this, data): DDialogSelectListItem<VALUE, DThemeDialogSelecListItem, DDialogSelectListItemOptions<VALUE, DThemeDialogSelecListItem>>

Parameters

Name Type
this undefined
data DListData<VALUE>

Returns

DDialogSelectListItem<VALUE, DThemeDialogSelecListItem, DDialogSelectListItemOptions<VALUE, DThemeDialogSelecListItem>>

Overrides

DListItemUpdater.newItem

Defined in

src/main/typescript/wcardinal/ui/d-dialog-select-list-item-updater.ts:11


reset

▸ reset(item): DListItem<VALUE, DThemeListItem, DListItemOptions<VALUE, DThemeListItem, any>>

Parameters

Name Type
item DListItem<VALUE, DThemeListItem, DListItemOptions<VALUE, DThemeListItem, any>>

Returns

DListItem<VALUE, DThemeListItem, DListItemOptions<VALUE, DThemeListItem, any>>

Inherited from

DListItemUpdater.reset

Defined in

src/main/typescript/wcardinal/ui/d-item-updater.ts:350


set

▸ set(item, value, index, forcibly?): void

Parameters

Name Type
item DListItem<VALUE, DThemeListItem, DListItemOptions<VALUE, DThemeListItem, any>>
value VALUE
index number
forcibly? boolean

Returns

void

Inherited from

DListItemUpdater.set

Defined in

src/main/typescript/wcardinal/ui/d-item-updater.ts:342


toInitItem

▸ toInitItem(options?): DItemUpdaterInitItem<DListData<VALUE>, DListItem<VALUE, DThemeListItem, DListItemOptions<VALUE, DThemeListItem, any>>>

Parameters

Name Type
options? DItemUpdaterOptions<VALUE, DListData<VALUE>, DListItem<VALUE, DThemeListItem, DListItemOptions<VALUE, DThemeListItem, any>>>

Returns

DItemUpdaterInitItem<DListData<VALUE>, DListItem<VALUE, DThemeListItem, DListItemOptions<VALUE, DThemeListItem, any>>>

Inherited from

DListItemUpdater.toInitItem

Defined in

src/main/typescript/wcardinal/ui/d-item-updater.ts:107


toMapped

▸ toMapped(data): DListDataMapped<VALUE>

Parameters

Name Type
data DListData<VALUE>

Returns

DListDataMapped<VALUE>

Inherited from

DListItemUpdater.toMapped

Defined in

src/main/typescript/wcardinal/ui/d-list-item-updater.ts:21


toNewItem

▸ toNewItem(options?): DItemUpdaterNewItem<DListData<VALUE>, DListItem<VALUE, DThemeListItem, DListItemOptions<VALUE, DThemeListItem, any>>>

Parameters

Name Type
options? DItemUpdaterOptions<VALUE, DListData<VALUE>, DListItem<VALUE, DThemeListItem, DListItemOptions<VALUE, DThemeListItem, any>>>

Returns

DItemUpdaterNewItem<DListData<VALUE>, DListItem<VALUE, DThemeListItem, DListItemOptions<VALUE, DThemeListItem, any>>>

Inherited from

DListItemUpdater.toNewItem

Defined in

src/main/typescript/wcardinal/ui/d-item-updater.ts:99


unlock

▸ unlock(callIfNeeded): void

Parameters

Name Type
callIfNeeded boolean

Returns

void

Inherited from

DListItemUpdater.unlock

Defined in

src/main/typescript/wcardinal/ui/d-item-updater.ts:144


unset

▸ unset(item): void

Parameters

Name Type
item DListItem<VALUE, DThemeListItem, DListItemOptions<VALUE, DThemeListItem, any>>

Returns

void

Inherited from

DListItemUpdater.unset

Defined in

src/main/typescript/wcardinal/ui/d-item-updater.ts:346


update

▸ update(forcibly?): void

Parameters

Name Type
forcibly? boolean

Returns

void

Inherited from

DListItemUpdater.update

Defined in

src/main/typescript/wcardinal/ui/d-item-updater.ts:155