Class StringListAdapter
List adapter providing strings only.
Inherits from
-
StringListAdapterBase
(base class)
Constructors
Name | Description |
---|---|
this
|
create empty string list adapter. |
this
|
Init with array of string resource IDs. |
this
|
Init with array of unicode strings. |
this
|
Init with array of StringListValue .
|
Fields
Name | Type | Description |
---|---|---|
_widget
|
TextWidget |
|
adapterChanged
|
Signal!(dlangui.widgets.lists.OnAdapterChangeHandler) |
Handle items change |
_iconIds
|
string[] |
|
_intIds
|
int[] |
|
_items
|
UIStringCollection |
|
_lastItemIndex
|
int |
|
_states
|
uint[] |
|
_stringIds
|
string[] |
Properties
Name | Type | Description |
---|---|---|
itemCount
[get]
|
int |
returns number of widgets in list |
items
[set]
|
StringListAdapterBase |
Replace items collection.
|
items
[get]
|
const(UIStringCollection) |
Access to items collection.
|
Methods
Name | Description |
---|---|
itemWidget
|
return list item widget by item index
|
onThemeChanged
|
called when theme is changed |
resetItemState
|
reset one or more list item's state flags , returns updated state
|
setItemState
|
set one or more list item's state flags , returns updated state
|
add
|
add new item
|
add
|
add new string resource item
|
add
|
add new raw dstring item
|
clear
|
remove all items
|
connect
|
connect adapter change handler
|
disconnect
|
disconnect adapter change handler
|
itemId
|
returns integer item id by index (if supported)
|
itemState
|
return list item's state flags |
itemStringId
|
returns string item id by index (if supported)
|
remove
|
remove item by index
|
updateViews
|
notify listeners about list items changes |
updateStatesLength
|
Authors
Vadim Lopatin, coolreader.org@gmail.com
Copyright
Vadim Lopatin, 2014
License
Boost License 1.0