Class StringListAdapter

List adapter providing strings only.

Inherits from

Constructors

Name Description
this create empty string list adapter.
this Init with array of string resource IDs.
this Init with array of unicode strings.

Fields

Name Type Description
_items UIStringCollection
_lastItemIndex int
_states uint[]
_widget TextWidget

Properties

Name Type Description
itemCount [get] int returns number of widgets in list
items [get] UIStringCollection Access to items collection.

Methods

Name Description
itemState return list item's state flags
itemWidget return list item widget by item index
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
updateStatesLength

Authors

Vadim Lopatin, coolreader.org@gmail.com

Copyright

Vadim Lopatin, 2014

License

Boost License 1.0