This TableDataProvider
implementation wraps the contents of a List
. A common use of this data provider is to wrap a list of strings returned by a method.
FieldKey
or string field name, this name is ignored. Any field key or name will retrieve the object at the current cursor position.This data provider is one of several TableDataProvider
implementations that have the notion of a cursor that can be positioned at a particular row in the underlying data. TableDataProvider
provides both random access, where you specify both a FieldKey
and a RowKey
, and cursor-based access, where you specify a FieldKey
and the RowKey
is determined by the current setting for the cursor.
ArrayList
as its internal data storage, which is a serializable implementation of List
. The internal storage can be swapped out using the setList(List)
method. For this data provider to remain serializable, the contained List
must be a serializable implementation.