ItemDataManager<E> mixin
ItemDataManager实现类:
维护_dataList
数据列表对DataBuildInterface接口实现,
维护_dataSetCallbacks
回调列表对DataNotifyInterface接口实现
- Implemented types
- Mixin applications
Properties
Methods
-
addItem(
E item) → void -
新增
item
override -
addItems(
List< E?> items) → void -
新增数组
items
override -
addItemsClear(
List< E?> items) → void -
清除并新增
override
-
clear(
) → void -
清除列表
override
-
indexOfItem(
E item) → int -
获取
item
数据对应首个下标override -
insert(
int position, E item) → void -
插入
item
到指定下标override -
item(
int position) → E? -
获取下标
position
数据项override -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
notifyDataSetChanged(
) → void -
通知已注册的监听器数据集已更改
override
-
notifyItemChanged(
int position) → void -
通知指定下标的监听器数据集已更改
override
-
registerCallback(
DataSetCallback onDataSetChanged) → void -
注册数据变化监听器
override
-
remove(
E item) → void -
移除
item
override -
removeAt(
int position) → void -
移除下标
position
override -
removeCallback(
DataSetCallback? onDataSetChanged) → void -
移除数据变化监听器
override
-
swap(
int current, int next) → void -
交换下标位置
override
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited