ListAdapter

list widget adapter provides items for list widgets

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

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

Meta