DataBuildAdapter<E> class
abstract
DataBuildAdapter适配器集合接口 数据和状态控制: ItemDataManager 视图构建: ItemBuildInterface 视图绑定器: ItemViewBinder 事件回调队列绑定器: EventsBinder
- Mixed-in types
- Implementers
Constructors
-
DataBuildAdapter({DataBuildState<
StatefulWidget> ? state, GestureCallback? gestureCallback})
Properties
-
bindEventListener
→ OnEventListener<
E> -
OnEventListener总线绑定
itemView
no setteroverride - gestureCallback → GestureCallback?
-
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
-
items
→ List<
E?> -
获取不可变数据列表
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- size → int
-
数据长度
no setterinherited
-
state
↔ DataBuildState<
StatefulWidget> ? -
getter/setter pair
Methods
-
addItem(
E item) → void -
新增
item
inherited -
addItemClickListener(
OnItemClickListener< E?> listener) → void -
添加监听事件
override
-
addItemLongClickListener(
OnItemLongClickListener< E?> listener) → void -
override
-
addItems(
List< E?> items) → void -
新增数组
items
inherited -
addItemsClear(
List< E?> items) → void -
清除并新增
inherited
-
bindItemView(
E? item, int position) → Widget -
override
-
buildItemView(
E? item, int position) → Widget -
override
-
clear(
) → void -
清除列表
inherited
-
indexOfItem(
E item) → int -
获取
item
数据对应首个下标inherited -
insert(
int position, E item) → void -
插入
item
到指定下标inherited -
item(
int position) → E? -
获取下标
position
数据项inherited -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
notifyDataSetChanged(
) → void -
通知已注册的监听器数据集已更改
inherited
-
notifyItemChanged(
int position) → void -
通知指定下标的监听器数据集已更改
inherited
-
onInitItemView(
E? item, int position) → void -
override
-
onItemClickable(
E? item, int position) → bool -
点击事件可拦截
onItemClickListeners
inherited -
onItemLongClickable(
E? item, int position) → bool -
长按事件可拦截
onItemLongClickListeners
inherited -
onItemUpdate(
E? item, int position) → Widget -
上层视图构建方法
override
-
onItemViewDispose(
E? item, int position) → void -
override
-
registerCallback(
DataSetCallback onDataSetChanged) → void -
注册数据变化监听器
inherited
-
remove(
E item) → void -
移除
item
inherited -
removeAt(
int position) → void -
移除下标
position
inherited -
removeCallback(
DataSetCallback? onDataSetChanged) → void -
移除数据变化监听器
inherited
-
removeItemClickListener(
OnItemClickListener< E?> listener) → void -
移除监听事件
override
-
removeItemLongClickListener(
OnItemClickListener< E?> listener) → void -
override
-
swap(
int current, int next) → void -
交换下标位置
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited