StringListAdapter

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

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

Variables

_widget
TextWidget _widget;
Undocumented in source.

Inherited Members

From StringListAdapterBase

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

remove all items

remove
StringListAdapterBase remove(int index)

remove item by index

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

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.

itemCount
int itemCount [@property getter]

returns number of widgets in list

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)

updateStatesLength
void updateStatesLength()
Undocumented in source. Be warned that the author may not have intended to support it.
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

~this
~this()
Undocumented in source.

Meta