ListAdapterBase

List adapter for simple list of widget instances

Members

Functions

clear
void clear()

remove all items

connect
ListAdapter connect(OnAdapterChangeHandler handler)

connect adapter change handler

disconnect
ListAdapter disconnect(OnAdapterChangeHandler handler)

disconnect adapter change handler

itemId
int itemId(int index)

returns integer item id by index (if supported)

itemState
uint itemState(int index)

return list item's state flags

itemStringId
string itemStringId(int index)

returns string item id by index (if supported)

itemWidget
Widget itemWidget(int index)

return list item widget by item index

onThemeChanged
void onThemeChanged()

called when theme is changed

resetItemState
uint resetItemState(int index, uint flags)

reset one or more list item's state flags, returns updated state

setItemState
uint setItemState(int index, uint flags)

set one or more list item's state flags, returns updated state

updateViews
void updateViews()

notify listeners about list items changes

Properties

itemCount
int itemCount [@property getter]

returns number of widgets in list

wantKeyEvents
bool wantKeyEvents [@property getter]

return true to receive keyboard events

wantMouseEvents
bool wantMouseEvents [@property getter]

return true to receive mouse events

Variables

adapterChanged
Signal!OnAdapterChangeHandler adapterChanged;

Handle items change

Inherited Members

From ListAdapter

itemCount
int itemCount [@property getter]

returns number of widgets in list

itemWidget
Widget itemWidget(int index)

return list item widget by item index

itemState
uint itemState(int index)

return list item's state flags

setItemState
uint setItemState(int index, uint flags)

set one or more list item's state flags, returns updated state

resetItemState
uint resetItemState(int index, uint flags)

reset one or more list item's state flags, returns updated state

itemId
int itemId(int index)

returns integer item id by index (if supported)

itemStringId
string itemStringId(int index)

returns string item id by index (if supported)

clear
void clear()

remove all items

connect
ListAdapter connect(OnAdapterChangeHandler handler)

connect adapter change handler

disconnect
ListAdapter disconnect(OnAdapterChangeHandler handler)

disconnect adapter change handler

onThemeChanged
void onThemeChanged()

called when theme is changed

wantMouseEvents
bool wantMouseEvents [@property getter]

return true to receive mouse events

wantKeyEvents
bool wantKeyEvents [@property getter]

return true to receive keyboard events

Meta