StringListAdapterBase

List adapter providing strings only.

Constructors

this
this()

create empty string list adapter.

this
this(string[] items)

Init with array of string resource IDs.

this
this(dstring[] items)

Init with array of unicode strings.

this
this(StringListValue[] items)

Init with array of StringListValue.

Destructor

~this
~this()
Undocumented in source.

Members

Functions

add
StringListAdapterBase add(UIString item, int index)

add new item

add
StringListAdapterBase add(string item, int index)

add new string resource item

add
StringListAdapterBase add(dstring item, int index)

add new raw dstring item

clear
void clear()

remove all items

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)

remove
StringListAdapterBase remove(int index)

remove item by index

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

updateStatesLength
void updateStatesLength()
Undocumented in source. Be warned that the author may not have intended to support it.

Properties

itemCount
int itemCount [@property getter]

returns number of widgets in list

items
const(UIStringCollection) items [@property getter]

Access to items collection.

items
dstring[] items [@property setter]

Replace items collection.

items
UIString[] items [@property setter]

Replace items collection.

items
StringListValue[] items [@property setter]

Replace items collection.

Variables

_iconIds
string[] _iconIds;
Undocumented in source.
_intIds
int[] _intIds;
Undocumented in source.
_items
UIStringCollection _items;
Undocumented in source.
_lastItemIndex
int _lastItemIndex;
Undocumented in source.
_states
uint[] _states;
Undocumented in source.
_stringIds
string[] _stringIds;
Undocumented in source.

Inherited Members

From ListAdapterBase

adapterChanged
Signal!OnAdapterChangeHandler adapterChanged;

Handle items change

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)

itemStringId
string itemStringId(int index)

returns string item id by index (if supported)

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

clear
void clear()

remove all items

updateViews
void updateViews()

notify listeners about list items changes

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