public static interface Component.DraggedListener
提供当手势识别器将拖动事件分派到组件时要调用的回调。
修饰符和类型 | 方法 | 描述 |
---|---|---|
void | onDragCancel(Component component, DragInfo dragInfo) | 处理分派给组件的拖动取消事件。 |
void | onDragDown(Component component, DragInfo dragInfo) | 处理分派给组件的下拉事件。 |
void | onDragEnd(Component component, DragInfo dragInfo) | 处理分派给组件的拖动结束事件。 |
default boolean | onDragPreAccept(Component component, int dragDirection) | 接受分派给组件的拖动事件。 |
void | onDragStart(Component component, DragInfo dragInfo) | 处理分派给组件的拖动开始事件。 |
void | onDragUpdate(Component component, DragInfo dragInfo) | 处理分派给组件的拖动更新事件。 |
void onDragDown(Component component, DragInfo dragInfo)
处理分派给组件的下拉事件。
参数:
参数名称 | 参数描述 |
---|---|
component | 指示拖拽事件被调度到的组件。 |
dragInfo | 指示下拉信息对象 DragInfo。 |
void onDragStart(Component component, DragInfo dragInfo)
处理分派给组件的拖动开始事件。
参数:
参数名称 | 参数描述 |
---|---|
component | 指示拖动开始事件被调度到的组件。 |
dragInfo | 指示拖动开始信息对象 DragInfo。 |
void onDragUpdate(Component component, DragInfo dragInfo)
处理分派给组件的拖动更新事件。
参数:
参数名称 | 参数描述 |
---|---|
component | 指示拖动更新事件被调度到的组件。 |
dragInfo | 指示拖动更新信息对象 DragInfo。 |
void onDragEnd(Component component, DragInfo dragInfo)
处理分派给组件的拖动结束事件。
参数:
参数名称 | 参数描述 |
---|---|
component | 指示拖拽结束事件被调度到的组件。 |
dragInfo | 表示拖动结束信息对象 DragInfo。 |
void onDragCancel(Component component, DragInfo dragInfo)
处理分派给组件的拖动取消事件。
参数:
参数名称 | 参数描述 |
---|---|
component | 指示拖拽结束事件被调度到的组件。 |
dragInfo | 表示拖动结束信息对象 DragInfo。 |
default boolean onDragPreAccept(Component component, int dragDirection)
接受分派给组件的拖动事件。
此方法支持 Component.DRAG_HORIZONTAL、Component.DRAG_VERTICAL 和 Component.DRAG_HORIZONTAL_VERTICAL。 当设置了 Component.DRAG_HORIZONTAL_VERTICAL 时,拖动方向可能会比较粗略。
参数:
参数名称 | 参数描述 |
---|---|
component | 指示拖动事件被调度到的组件。 |
dragDirection | 指示拖动方向,可以是 Component.DRAG_UP、Component.DRAG_DOWN、Component.DRAG_LEFT 或 Component.DRAG_RIGHT。 |
返回:
如果当前拖动事件被接受,则返回 true(默认值); 否则返回 false。
Component.KeyEventListenerpublic static interface Component.KeyEventListener提供从组件调度键事件时要调用的回调。该回调将...
ComponentTreeObserver.ScrollChangedListenerpublic static interface ComponentTreeObserver.ScrollChangedListener滚动组件层...
Picker.ElementFormatterpublic static interface Picker.ElementFormatter为 Picker 的每一项格式化左右复合元素对象。需要实现...
AttrHelperjava.lang.Object |---ohos.agp.components.AttrHelperpublic class AttrHelperextends Object将属性值的类型从字符串...
ComponentHolderjava.lang.Object |---ohos.agp.components.ComponentHolderpublic class ComponentHolderextends Object表示 XM...
到目前为止,我们讨论了 Kafka 的核心概念。让我们现在来看一下 Kafka 的工作流程。Kafka 只是分为一个或多个分区的主题的集合。...
GROUP 运算符用于在一个或多个关系中对数据进行分组,它收集具有相同key的数据。语法下面给出了 group 运算符的语法。grunt Grou...
HDFS - 命令工具fsck: 检查文件的完整性start-balancer.sh: 重新平衡HDFShdfs dfs -copyFromLocal 从本地磁盘复制文件到HDFS...
用户注册/签约(可选)微信后台向业主方发起用户注册。1、请求参数参数名称类型必选备注appidstringY小程序appidmch_idstringY支...