Winter Cardinal UI - v0.442.0 / DItemUpdater
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.
Name | Type |
---|---|
VALUE |
unknown |
DATA |
extends DItemUpdaterData <VALUE > = DItemUpdaterData <VALUE > |
DATA_MAPPED |
extends DItemUpdaterDataMapped <VALUE > = DItemUpdaterDataMapped <VALUE > |
ITEM |
extends DItemUpdaterItem <VALUE > = DItemUpdaterItem <VALUE > |
OPTIONS |
extends DItemUpdaterOptions <VALUE , DATA , ITEM > = DItemUpdaterOptions <VALUE , DATA , ITEM > |
DItemUpdater
• new DItemUpdater<VALUE
, DATA
, DATA_MAPPED
, ITEM
, OPTIONS
>(data
, content
, container
, options?
): DItemUpdater
<VALUE
, DATA
, DATA_MAPPED
, ITEM
, OPTIONS
>
Name | Type |
---|---|
VALUE |
unknown |
DATA |
extends DItemUpdaterData <VALUE > = DItemUpdaterData <VALUE > |
DATA_MAPPED |
extends DItemUpdaterDataMapped <VALUE > = DItemUpdaterDataMapped <VALUE > |
ITEM |
extends DItemUpdaterItem <VALUE > = DItemUpdaterItem <VALUE > |
OPTIONS |
extends DItemUpdaterOptions <VALUE , DATA , ITEM > = DItemUpdaterOptions <VALUE , DATA , ITEM > |
Name | Type |
---|---|
data |
DATA |
content |
DBase <DThemeBase , DBaseOptions <DThemeBase , any >> |
container |
DBase <DThemeBase , DBaseOptions <DThemeBase , any >> |
options? |
OPTIONS |
DItemUpdater
<VALUE
, DATA
, DATA_MAPPED
, ITEM
, OPTIONS
>
src/main/typescript/wcardinal/ui/d-item-updater.ts:82
• Protected
_container: DBase
<DThemeBase
, DBaseOptions
<DThemeBase
, any
>>
src/main/typescript/wcardinal/ui/d-item-updater.ts:78
• Protected
_content: DBase
<DThemeBase
, DBaseOptions
<DThemeBase
, any
>>
src/main/typescript/wcardinal/ui/d-item-updater.ts:77
• Protected
_data: DATA
src/main/typescript/wcardinal/ui/d-item-updater.ts:76
• Protected
_initItem: DItemUpdaterInitItem
<DATA
, ITEM
>
src/main/typescript/wcardinal/ui/d-item-updater.ts:80
• Protected
_isUpdateItemsCalled: boolean
src/main/typescript/wcardinal/ui/d-item-updater.ts:68
• Protected
_isUpdateItemsCalledForcibly: boolean
src/main/typescript/wcardinal/ui/d-item-updater.ts:69
• Protected
_itemHeight: number
src/main/typescript/wcardinal/ui/d-item-updater.ts:70
• Protected
_itemIndexEnd: number
src/main/typescript/wcardinal/ui/d-item-updater.ts:74
• Protected
_itemIndexStart: number
src/main/typescript/wcardinal/ui/d-item-updater.ts:73
• Protected
_itemWidth: number
src/main/typescript/wcardinal/ui/d-item-updater.ts:71
• Protected
_multiplicity: number
src/main/typescript/wcardinal/ui/d-item-updater.ts:72
• Protected
_newItem: DItemUpdaterNewItem
<DATA
, ITEM
>
src/main/typescript/wcardinal/ui/d-item-updater.ts:79
• Protected
_updateItemsCount: number
src/main/typescript/wcardinal/ui/d-item-updater.ts:67
• Protected
_workItems: ITEM
[]
src/main/typescript/wcardinal/ui/d-item-updater.ts:75
• get
multiplicity(): number
number
src/main/typescript/wcardinal/ui/d-item-updater.ts:132
▸ initItem(this
, item
, index
, data
): ITEM
Name | Type |
---|---|
this |
undefined |
item |
ITEM |
index |
number |
data |
DATA |
ITEM
src/main/typescript/wcardinal/ui/d-item-updater.ts:123
▸ initItemNoStriping(this
, item
, index
, data
): ITEM
Name | Type |
---|---|
this |
undefined |
item |
ITEM |
index |
number |
data |
DATA |
ITEM
src/main/typescript/wcardinal/ui/d-item-updater.ts:128
▸ lock(): void
void
src/main/typescript/wcardinal/ui/d-item-updater.ts:136
▸ moveFocus(e
, target
, moveVertically
, moveHorizontally
): boolean
Name | Type |
---|---|
e |
KeyboardEvent |
target |
DBase <DThemeBase , DBaseOptions <DThemeBase , any >> |
moveVertically |
boolean |
moveHorizontally |
boolean |
boolean
src/main/typescript/wcardinal/ui/d-item-updater.ts:367
▸ newItem(this
, data
): ITEM
Name | Type |
---|---|
this |
undefined |
data |
DATA |
ITEM
src/main/typescript/wcardinal/ui/d-item-updater.ts:105
▸ reset(item
): ITEM
Name | Type |
---|---|
item |
ITEM |
ITEM
src/main/typescript/wcardinal/ui/d-item-updater.ts:350
▸ set(item
, value
, index
, forcibly?
): void
Name | Type |
---|---|
item |
ITEM |
value |
VALUE |
index |
number |
forcibly? |
boolean |
void
src/main/typescript/wcardinal/ui/d-item-updater.ts:342
▸ toInitItem(options?
): DItemUpdaterInitItem
<DATA
, ITEM
>
Name | Type |
---|---|
options? |
DItemUpdaterOptions <VALUE , DATA , ITEM > |
DItemUpdaterInitItem
<DATA
, ITEM
>
src/main/typescript/wcardinal/ui/d-item-updater.ts:107
▸ toMapped(data
): DATA_MAPPED
Name | Type |
---|---|
data |
DATA |
DATA_MAPPED
src/main/typescript/wcardinal/ui/d-item-updater.ts:340
▸ toNewItem(options?
): DItemUpdaterNewItem
<DATA
, ITEM
>
Name | Type |
---|---|
options? |
DItemUpdaterOptions <VALUE , DATA , ITEM > |
DItemUpdaterNewItem
<DATA
, ITEM
>
src/main/typescript/wcardinal/ui/d-item-updater.ts:99
▸ unlock(callIfNeeded
): void
Name | Type |
---|---|
callIfNeeded |
boolean |
void
src/main/typescript/wcardinal/ui/d-item-updater.ts:144
▸ unset(item
): void
Name | Type |
---|---|
item |
ITEM |
void
src/main/typescript/wcardinal/ui/d-item-updater.ts:346
▸ update(forcibly?
): void
Name | Type |
---|---|
forcibly? |
boolean |
void