WO2012024975A1 - 一种移动终端应用的事件处理装置和方法 - Google Patents

一种移动终端应用的事件处理装置和方法 Download PDF

Info

Publication number
WO2012024975A1
WO2012024975A1 PCT/CN2011/076230 CN2011076230W WO2012024975A1 WO 2012024975 A1 WO2012024975 A1 WO 2012024975A1 CN 2011076230 W CN2011076230 W CN 2011076230W WO 2012024975 A1 WO2012024975 A1 WO 2012024975A1
Authority
WO
WIPO (PCT)
Prior art keywords
event
window
application
processing
message
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Ceased
Application number
PCT/CN2011/076230
Other languages
English (en)
French (fr)
Inventor
黄红军
童龙仓
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
ZTE Corp
Original Assignee
ZTE Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by ZTE Corp filed Critical ZTE Corp
Publication of WO2012024975A1 publication Critical patent/WO2012024975A1/zh
Anticipated expiration legal-status Critical
Ceased legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/54Interprogram communication
    • G06F9/542Event management; Broadcasting; Multicasting; Notifications

Definitions

  • Event processing device and method for mobile terminal application are Event processing device and method for mobile terminal application
  • the present invention relates to mobile terminal application technologies, and more particularly to an event processing apparatus and method for a mobile terminal application. Background technique
  • the main object of the present invention is to provide an event processing apparatus and method for a mobile terminal application to implement decoupling between interface windows, flow control, and service functions.
  • the present invention provides an event processing apparatus for a mobile terminal application, which is located in a UI separation application development framework, and includes: a configuration management module and an event management module;
  • a configuration management module configured to configure application description information, window description information, and event action description information, and save the information;
  • the event management module is configured to obtain a corresponding processing entry from the configuration management module according to the event message, and invoke a corresponding processing function.
  • the application description information configured in the configuration management module includes: an application identifier, and a processing entry of the application;
  • the window description information includes: a window identifier, and a processing entry of the window;
  • the event action description information includes: a correspondence between a window event and a window event processing entry;
  • the event message includes: an application identifier or a window identifier, an event identifier, and additional data and/or event descriptions.
  • the event management module includes: a preprocessing module and an event distribution module; wherein
  • a pre-processing module configured to encapsulate the event message into a unified format, and send the encapsulated event message to the event distribution module together with the application identifier or the window identifier;
  • An event distribution module configured to acquire a processing entry of the corresponding application from the configuration management module according to the application identifier in the event message, or obtain a processing entry of the corresponding window from the configuration management module according to the window identifier in the event message And distributing the event message encapsulated into a unified format to a corresponding application or window, and calling a corresponding processing function.
  • the pre-processing module encapsulates the event message into a unified format, and the format includes: an event identifier, and additional data and/or event description.
  • the event management module is further configured to: when processing an input message in the graphical user interface (GUI) message, determine whether to continue the GUI default processing flow according to the processing result of the current window.
  • GUI graphical user interface
  • the present invention further provides an event processing method for a mobile terminal application, the method comprising: configuring application description information, window description information, and event action description information and saving; obtaining a corresponding processing entry from the configuration information according to the event message, And call the corresponding Processing function.
  • the application description information that is configured includes: an application identifier, and a processing entry of the application;
  • the window description information includes: a window identifier, and a processing entry of the window;
  • the event action description information includes: a correspondence between a window event and a window event processing entry;
  • the event message includes: an application identifier or a window identifier, an event identifier, and additional data and/or event descriptions.
  • the obtaining the corresponding processing entry from the configuration information according to the event message, and invoking the corresponding processing function specifically: acquiring the corresponding application from the configured application description information according to the application identifier in the event message.
  • the processing entry is obtained, or the processing entry of the corresponding window is obtained from the configured window description information according to the window identifier in the event message, and the event message encapsulated into a unified format is distributed to the corresponding application or window, and the corresponding processing function is called.
  • the method before the obtaining the corresponding processing entry from the configuration information according to the event message, the method further includes: encapsulating the event message into a unified format, where the format content includes: an event identifier, and additional data and/or Event description.
  • the method further includes: when processing the input message in the GUI message, determining whether to continue the GUI default processing flow according to the processing result of the current window.
  • the event processing apparatus and method for a mobile terminal application provided by the present invention can facilitate the introduction of a PC visual interface design tool by configuring and saving application description information, window description information, and event action description information, thereby reducing the work of the developer.
  • the corresponding processing entry is obtained from the above configuration information, and the corresponding processing function is called to process the event, which increases the portability of different development platforms and improves the application development efficiency.
  • FIG. 1 is a schematic structural diagram of an event processing apparatus of a mobile terminal application according to the present invention.
  • FIG. 2 is a flowchart of an event processing method of a mobile terminal application according to the present invention. detailed description
  • the basic idea of the present invention is: configuring application description information, window description information, and event action description information and saving; obtaining a corresponding processing entry from the above configuration information according to the event message, and calling a corresponding processing function.
  • the event processing device of the mobile terminal application provided by the present invention is located in the UI separation application development framework, and includes: a configuration management module and an event management module;
  • a configuration management module configured to configure application description information, window description information, and event action description information, and save the information
  • the event management module is configured to obtain a corresponding processing input from the configuration management module according to the event message, and invoke a corresponding processing function.
  • the application description information configured in the configuration management module includes: an application identifier, and a processing entry of the application;
  • the window description information includes: a window identifier, a processing entry of the window, and the like;
  • the event action description information includes: a correspondence between a window event and a window event processing entry;
  • the event message includes: an application identifier or a window identifier, an event identifier, and additional data and/or event descriptions, and the like.
  • the event management module includes: a pre-processing module and an event distribution module; wherein, the pre-processing module is configured to encapsulate the event message into a unified format, and send the encapsulated event message to the event distribution together with the application identifier or the window identifier Module
  • An event distribution module configured to acquire a processing entry of the corresponding application from the configuration management module according to the application identifier in the event message, or obtain a processing entry of the corresponding window from the configuration management module according to the window identifier in the event message And distributing the event message encapsulated into a unified format to a corresponding application or window, and calling a corresponding processing function.
  • the pre-processing module encapsulates the event message into a unified format, and the format content includes: an event identifier, and additional data and/or event description.
  • the event management module is further configured to: when processing an input message in a graphical user interface (GUI) message, determine whether to continue the GUI default processing flow according to the processing result of the current window.
  • GUI graphical user interface
  • the event processing method of the mobile terminal application provided by the present invention is as shown in FIG. 2, and the method comprises the following steps:
  • Step 201 Configure application description information, window description information, and event action description information and save the information;
  • the application description information may include: an application identifier, an application processing entry, and the like;
  • the window description information may include: a window identifier, The processing action description of the window or the like;
  • the event action description information includes: a correspondence between the window event and the window event processing entry, that is, the window event processing function name; wherein the configuration information may also be manually configured.
  • Step 202 Perform pre-processing on the event message, locate the corresponding processing entry, and perform event processing.
  • the event message includes: an application identifier or a window identifier, an event identifier, and additional data and/or event descriptions; and the event management module first receives the received event message.
  • the pre-processing is performed by using an event message or a window event message, which is specifically: encapsulating the event message into a unified format, and the format content includes: an event identifier, and additional data and/or event description, so as to facilitate processing of a specific event;
  • the event because the event message may not include the event description, when the event message is uniformly encapsulated, the content of the corresponding event description may be blanked, and the event management module obtains the advance information from the configuration information according to the application identifier in the event message.
  • the event management module obtains a processing entry of the child-configured window from the configuration information according to the window identifier in the event message; and then, the event management module passes the processed processing entry or window of the acquired application
  • the processing entry distributes the event message encapsulated into a unified format to the corresponding application or window processing function, and the event is specifically processed by the corresponding application or window processing function; in addition, for the window event, the processing entry of the window is obtained. After that, you can still follow things
  • the corresponding relationship between the window event configured in the action description information and the window event processing entry is obtained by the window event processing entry, and the window event is specifically processed.
  • step 202 The process of step 202 will be described in detail below through a specific embodiment.
  • Embodiment 1 The process of starting an application event:
  • Step 1 The application management module starts the application, and sends an event message of the startup application to the event management module.
  • the event message of the startup application includes an application identifier, an event identifier, and additional data.
  • Step 2 The preprocessing module in the event management module encapsulates the received message into a unified format, and the format content includes: an event identifier, an additional data, and an event description, and sends the application identifier together with the encapsulated unified format.
  • Step 3 The event distribution module obtains the processing entry of the corresponding application, that is, the processing function name of the application, in the configuration management module according to the application identifier in the event message, and distributes the event message encapsulated into a unified format to the corresponding application processing function.
  • the application processing function specifically handles the event that launches the application.
  • Embodiment 2 The event management module initializes a notification event in a GUI message, such as a window.
  • a GUI message such as a window.
  • Step 1 The GUI module sends a window initialization message to the event management module, where the window initialization message includes information such as a window identifier, an event identifier, additional data, and an event description.
  • Step 2 The preprocessing module in the event management module encapsulates the received window initialization message into a unified format, and sends the window identifier together with the encapsulated unified format to the event distribution module in the event management module;
  • Step 3 The event distribution module obtains the processing entry of the corresponding window in the configuration management module according to the window identifier, distributes the event message encapsulated into the unified format to the corresponding window processing function, and performs corresponding processing of the window initialization.
  • Embodiment 3 The event management module processes an input event such as a key event in a GUI message:
  • Step 1 The user presses the "OK" button to generate a button message in the GUI module, and the GUI module sends the button message to the event management module; wherein the button message includes a window identifier, an event identifier, additional data, and an event description.
  • Step 2 The preprocessing module in the event management module encapsulates the received window initialization message into a unified format, and sends the window identifier together with the encapsulated unified format to the event distribution module in the event management module; the event distribution module Obtaining a processing entry of the corresponding window in the configuration management module according to the window identifier, and acquiring a window event, such as a button event processing entry, according to a correspondence between the window event configured in the event action description information and the window event processing entry, and performing a button event Specific treatment.
  • a window event such as a button event processing entry
  • Step 3 According to the return value of the current window processing result, decide whether to continue the GUI default processing flow. If the GUI default processing flow is required, the GUI default processing entry is invoked, and the button is processed by default;
  • Step 4 The GUI module sends a notification event message to the event management module to notify the window of the change of the data in the window control after the default processing; wherein the notification event message includes a notification Window control data that changes the window's occurrence;
  • Step 5 After the event management module encapsulates the notification event message into a unified format, the processing management module obtains a processing entry of the corresponding window, and sends the window identifier to the window for processing together with the encapsulated unified format.
  • the introduction of the PC visual interface design tool is facilitated, and the workload of the developer is reduced; in addition, the event management module is used as the entire UI separation application development.
  • the core of the framework preprocesses all event messages in the UI separation application development framework, and obtains the corresponding processing entry from the above configuration information through the configuration management module, and calls the corresponding processing function to process the event.
  • the invention can make each part of the module develop separately, realizes decoupling between applications, increases portability of different development platforms, and improves application development efficiency.

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Multimedia (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Stored Programmes (AREA)
  • User Interface Of Digital Computer (AREA)
  • Telephone Function (AREA)

Description

一种移动终端应用的事件处理装置和方法 技术领域
本发明涉及移动终端应用技术, 特别是一种移动终端应用的事件处理 装置和方法。 背景技术
随着移动通讯技术的迅速发展, 各种移动终端发展迅速, 尤其是手机 等移动终端普及率日益提高, 终端设备制造商之间的竟争越发的激烈, 谁 能在日益激烈的市场中, 快速推出型号机, 谁就能抢得市场的先机。
当前移动终端应用开发中, 应用的界面窗口、 流程控制和业务功能之 间存在强烈的耦合关系, 事件的处理过程也耦合在应用的代码中, 界面窗 口或者业务的变更往往需要对应用进行全面的更改。 尤其是在手机领域, 市场需求变动大, 手机功能、 型号更迭频繁, 需要投入大量的人力和时间 去重新设计相关的应用, 增加了应用开发的工作量, 从而降低了代码的稳 定性和应用开发的效率, 使后续维护成本增加, 影响快速响应市场的能力。 发明内容
有鉴于此, 本发明的主要目的在于提供一种移动终端应用的事件处理 装置和方法, 以实现界面窗口、 流程控制和业务功能间的解耦。
为解决上述技术问题, 本发明的技术方案是这样实现的:
本发明提供了一种移动终端应用的事件处理装置, 位于 UI分离应用开 发框架中, 包括: 配置管理模块、 事件管理模块; 其中,
配置管理模块, 用于配置应用描述信息、 窗口描述信息和事件动作描 述信息并保存; 事件管理模块, 用于根据事件消息从配置管理模块获取相应的处理入 口, 并调用相应的处理函数。
上述方案中, 所述配置管理模块中配置的所述应用描述信息, 包括: 应用标 ΐ只、 及应用的处理入口;
所述窗口描述信息包括: 窗口标识、 及窗口的处理入口;
所述事件动作描述信息包括: 窗口事件与窗口事件处理入口的对应关 系;
所述事件消息包括: 应用标识或窗口标识、 事件标识、 以及附加数据 和 /或事件描述等。
上述方案中, 所述事件管理模块包括: 预处理模块和事件分发模块; 其中,
预处理模块, 用于将事件消息封装成统一的格式, 并将所封装的事件 消息与应用标识或窗口标识一起发送给事件分发模块;
事件分发模块, 用于根据所述事件消息中的应用标识从配置管理模块 中获取相应的应用的处理入口, 或根据所述事件消息中的窗口标识从配置 管理模块中获取相应的窗口的处理入口, 将所述封装成统一格式的事件消 息分发到相应的应用或窗口, 调用相应的处理函数。
上述方案中, 所述预处理模块将事件消息封装成的统一的格式, 其格 式内容包括: 事件标识、 及附加数据和 /或事件描述。
上述方案中, 所述事件管理模块, 还用于当处理图形用户界面 (GUI ) 消息中的输入消息时, 根据当前窗口对该消息的处理结果, 决定是否继续 GUI默认处理流程。
本发明还提供了一种移动终端应用的事件处理方法, 该方法包括: 配置应用描述信息、 窗口描述信息和事件动作描述信息并保存; 根据事件消息从上述的配置信息中获取相应的处理入口, 并调用相应 的处理函数。
上述方案中, 配置的所述应用描述信息, 包括: 应用标识、 及应用的 处理入口;
所述窗口描述信息包括: 窗口标识、 及窗口的处理入口;
所述事件动作描述信息包括: 窗口事件与窗口事件处理入口的对应关 系;
所述事件消息包括: 应用标识或窗口标识、 事件标识、 以及附加数据 和 /或事件描述等。
上述方案中, 所述根据事件消息从上述的配置信息中获取相应的处理 入口, 并调用相应的处理函数, 具体包括: 根据事件消息中的应用标识从 配置的应用描述信息中获取相应的应用的处理入口, 或根据事件消息中的 窗口标识从配置的窗口描述信息中获取相应的窗口的处理入口, 将所述封 装成统一格式的事件消息分发到相应的应用或窗口, 调用相应的处理函数。
上述方案中, 所述根据事件消息从上述的配置信息中获取相应的处理 入口之前, 该方法还包括: 将事件消息封装成统一的格式, 其格式内容包 括: 事件标识、 及附加数据和 /或事件描述。
上述方案中, 所述方法还包括: 当处理 GUI消息中的输入消息时, 根 据当前窗口对该消息的处理结果, 决定是否继续 GUI默认处理流程。
本发明所提供的一种移动终端应用的事件处理装置和方法, 通过配置 并保存应用描迷信息、 窗口描述信息和事件动作描述信息, 便于 PC可视化 界面设计工具的引入, 降低了开发人员的工作量; 根据事件消息从上述的 配置信息中获取相应的处理入口, 并调用相应的处理函数, 以对事件进行 处理, 增加了不同开发平台的可移植性, 提高了应用开发效率。 采用本发 明所述的装置及方法, 进一步对 UI分离应用开发框架中的所有事件消息进 行预处理, 并通过获取相应的处理入口实现对相应事件的处理, 可以使各 部分模块单独开发, 实现了应用间的解耦, 便于后期的维护工作, 增加了 不同开发平台的可移植性, 提高了应用开发效率; 另外, 将处理函数部分 与配置分离开发,便于 PC可视化界面设计工具的使用, 减少了开发的工作 量。 附图说明
图 1为本发明移动终端应用的事件处理装置结构示意图;
图 2为本发明移动终端应用的事件处理方法流程图。 具体实施方式
本发明的基本思想是: 配置应用描述信息、 窗口描述信息和事件动作 描述信息并保存; 根据事件消息从上述的配置信息中获取相应的处理入口, 并调用相应的处理函数。
本发明提供的移动终端应用的事件处理装置, 如图 1所示, 位于 UI分 离应用开发框架中, 包括: 配置管理模块、 事件管理模块; 其中,
配置管理模块, 用于配置应用描述信息、 窗口描述信息和事件动作描 述信息并保存;
事件管理模块, 用于根据事件消息从配置管理模块获取相应的处理入 口, 并调用相应的处理函数。
所述配置管理模块中配置的应用描述信息, 包括: 应用标识、 及应用 的处理入口等;
所述窗口描述信息包括: 窗口标识、 及窗口的处理入口等;
所述事件动作描述信息包括: 窗口事件与窗口事件处理入口的对应关 系;
所述事件消息包括: 应用标识或窗口标识、 事件标识、 以及附加数据 和 /或事件描述等。 所述事件管理模块包括: 预处理模块和事件分发模块; 其中, 预处理模块, 用于将事件消息封装成统一的格式, 并将所封装的事件 消息与应用标识或窗口标识一起发送给事件分发模块;
事件分发模块, 用于根据所述事件消息中的应用标识从配置管理模块 中获取相应的应用的处理入口, 或根据所述事件消息中的窗口标识从配置 管理模块中获取相应的窗口的处理入口, 将所述封装成统一格式的事件消 息分发到相应的应用或窗口, 调用相应的处理函数。
所述预处理模块将事件消息封装成的统一的格式, 其格式内容包括: 事件标识、 及附加数据和 /或事件描述。
所述事件管理模块, 还用于当处理图形用户界面(GUI, Graphical User Interface )消息中的输入消息时, 根据当前窗口对该消息的处理结果, 决定 是否继续 GUI默认处理流程。
本发明提供的移动终端应用的事件处理方法, 如图 2所示, 该方法包 括以下步骤:
步驟 201 : 配置应用描述信息、 窗口描述信息和事件动作描述信息并保 存;
本步骤中, 通过 PC可视化界面设计工具配置应用描述信息、 窗口描述 信息和事件动作描述信息; 其中, 应用描述信息可以包括: 应用标识、 应 用的处理入口等; 窗口描述信息可以包括: 窗口标识、 窗口的处理入口等; 事件动作描述信息包括: 窗口事件与窗口事件处理入口即窗口事件处理函 数名的对应关系; 其中, 所述配置信息也可以通过手动进行配置。
步骤 202: 对事件消息进行预处理, 定位到相应的处理入口, 进行事件 处理;
本步骤中, 所述事件消息中包括: 应用标识或窗口标识、 事件标识、 以及附加数据和 /或事件描述等; 事件管理模块先将接收到的事件消息如应 用事件消息或窗口事件消息进行预处理, 具体为: 将事件消息封装成统一 的格式, 其格式内容包括: 事件标识、 及附加数据和 /或事件描述, 以便于 对具体事件的处理; 对于应用事件, 由于事件消息中可以不包括事件描述, 则在将事件消息进行统一封装时, 将相应的事件描述的内容置空即可, 事 件管理模块根据事件消息中的应用标识从配置信息中获取预先配置的应用 的处理入口; 对于窗口事件, 事件管理模块根据事件消息中的窗口标识从 配置信息中获取子贞先配置的窗口的处理入口; 然后, 事件管理模块通过获 取的应用的处理入口或窗口的处理入口将封装成统一格式的事件消息分发 到相应的应用或窗口处理函数, 由相应的应用或窗口处理函数对该事件进 行具体处理; 另外, 对于窗口事件来说, 获取到窗口的处理入口后, 还可 以根据事件动作描述信息中配置的窗口事件与窗口事件处理入口的对应关 系获取到窗口事件处理入口, 对窗口事件进行具体处理,
下面通过具体实施例对步骤 202的过程进行详细描述。
实施例一: 启动应用事件的处理过程:
步驟 1 : 应用管理模块启动应用, 并将启动应用的事件消息发送给事件 管理模块; 其中, 启动应用的事件消息中包括应用标识、 事件标识、 及附 加数据等;
步骤 2:事件管理模块中的预处理模块将接收到的消息封装成统一的格 式, 其格式内容包括: 事件标识、 附加数据、 及事件描述, 并将应用标识 与所封装的统一格式一起发送给事件管理模块中的事件分发模块;
步骤 3:事件分发模块根据事件消息中的应用标识在配置管理模块中获 取到对应的应用的处理入口即应用的处理函数名, 将封装成统一格式的事 件消息分发到相应的应用处理函数, 由应用处理函数对启动应用的事件进 行具体处理。
实施例二: 事件管理模块对 GUI消息中的通知事件如窗口初始化的处 理过程:
步骤 1: GUI模块发送窗口初始化消息给事件管理模块, 其中, 窗口初 始化消息中包括窗口标识、 事件标识、 附加数据及事件描述等信息;
步骤 2:事件管理模块中的预处理模块将接收到的窗口初始化消息封装 成统一的格式, 并将窗口标识与所封装的统一的格式一起发送给事件管理 模块中的事件分发模块;
步骤 3:事件分发模块根据窗口标识在配置管理模块中获取到对应的窗 口的处理入口, 将封装成统一格式的事件消息分发到相应的窗口处理函数, 进行窗口初始化的相应处理。
实施例三: 事件管理模块对 GUI消息中的输入事件如按键事件的处理 过程:
步骤 1 : 用户按下 "OK" 按键, 在 GUI模块中产生按键消息, GUI模 块将该按键消息发送给事件管理模块; 其中, 该按键消息中包括窗口标识、 事件标识、 附加数据及事件描述等信息;
步驟 2:事件管理模块中的预处理模块将接收到的窗口初始化消息封装 成统一的格式, 并将窗口标识与所封装的统一的格式一起发送给事件管理 模块中的事件分发模块; 事件分发模块根据窗口标识在配置管理模块中获 取到对应的窗口的处理入口, 并根据事件动作描述信息中配置的窗口事件 与窗口事件处理入口的对应关系获取到窗口事件如按键事件处理入口, 对 按键事件进行具体处理。
步骤 3: 根据当前窗口对该消息处理结果的返回值, 决定是否继续 GUI 默认处理流程,如果需要 GUI默认处理流程,则调用 GUI默认的处理入口, 对该按键进行默认处理;
步骤 4: GUI模块发送通知事件消息给事件管理模块, 以通知窗口默认 处理之后, 窗口控件中数据的改变; 其中, 通知事件消息中包括需要通知 给窗口的发生改变的窗口控件数据;
步骤 5: 事件管理模块将该通知事件消息进行封装成统一的格式后, 在 配置管理模块中获取相应的窗口的处理入口, 将窗口标识与所封装的统一 的格式一起发送给窗口进行处理。
综上所述, 通过配置并保存应用描述信息、 窗口描述信息和事件动作 描述信息,便于 PC可视化界面设计工具的引入,降低了开发人员的工作量; 另外, 事件管理模块作为整个 UI分离应用开发框架的核心, 对 UI分离应 用开发框架中的所有事件消息进行预处理, 并通过配置管理模块从上述的 配置信息中获取相应的处理入口, 调用相应的处理函数, 以对事件进行处 理, 由此, 本发明可以使各部分模块单独开发, 实现了应用间的解耦, 增 加了不同开发平台的可移植性, 提高了应用开发效率。
以上所述, 仅为本发明的较佳实施例而已, 并非用于限定本发明的保 护范围, 凡在本发明的精神和原则之内所作的任何修改、 等同替换和改进 等, 均应包含在本发明的保护范围之内。

Claims

权利要求书
1、 一种移动终端应用的事件处理装置, 其特征在于, 位于 UI分离应 用开发框架中, 包括: 配置管理模块、 事件管理模块; 其中,
配置管理模块, 用于配置应用描述信息、 窗口描述信息和事件动作描 述信息并保存;
事件管理模块, 用于根据事件消息从配置管理模块获取相应的处理入 口, 并调用相应的处理函数。
2、 根据权利要求 1所述的装置, 其特征在于, 所述配置管理模块中配 置的所述应用描迷信息, 包括: 应用标识、 及应用的处理入口;
所述窗口描述信息包括: 窗口标识、 及窗口的处理入口;
所述事件动作描述信息包括: 窗口事件与窗口事件处理入口的对应关 系;
所述事件消息包括: 应用标识或窗口标识、 事件标识、 以及附加数据 和 /或事件描述。
3、根据权利要求 1所述的装置,其特征在于, 所述事件管理模块包括: 预处理模块和事件分发模块; 其中,
预处理模块, 用于将事件消息封装成统一的格式, 并将所封装的事件 消息与应用标识或窗口标识一起发送给事件分发模块;
事件分发模块, 用于根据所述事件消息中的应用标识从配置管理模块 中获取相应的应用的处理入口, 或根据所述事件消息中的窗口标识从配置 管理模块中获取相应的窗口的处理入口, 将所述封装成统一格式的事件消 息分发到相应的应用或窗口, 调用相应的处理函数。
4、 根据权利要求 3所述的装置, 其特征在于, 所述领处理模块将事件 消息封装成的统一的格式, 其格式内容包括: 事件标识、 及附加数据和 /或 事件描述。
5、 根据权利要求 1至 4任一项所述的装置, 其特征在于, 所述事件管 理模块, 还用于当处理图形用户界面(GUI )消息中的输入消息时, 艮据当 前窗口对该消息的处理结杲, 决定是否继续 GUI默认处理流程。
6、 一种移动终端应用的事件处理方法, 其特征在于, 包括: 配置应用描述信息、 窗口描述信息和事件动作描述信息并保存; 根据事件消息从上述的配置信息中获取相应的处理入口, 并调用相应 的处理函数。
7、 根据权利要求 6所述的方法, 其特征在于, 配置的所述应用描述信 息, 包括: 应用标识、 及应用的处理入口;
所述窗口描述信息包括: 窗口标识、 及窗口的处理入口;
所述事件动作描述信息包括: 窗口事件与窗口事件处理入口的对应关 系;
所述事件消息包括: 应用标识或窗口标识、 事件标识、 以及附加数据 和 /或事件描述。
8、 根据权利要求 7所述的方法, 其特征在于, 所述根据事件消息从上 述的配置信息中获取相应的处理入口, 并调用相应的处理函数, 具体包括: 根据事件消息中的应用标识从配置的应用描述信息中获取相应的应用的处 理入口, 或根据事件消息中的窗口标识从配置的窗口描述信息中获取相应 的窗口的处理入口, 将所述封装成统一格式的事件消息分发到相应的应用 或窗口, 调用相应的处理函数。
9、 根据权利要求 6所述的方法, 其特征在于, 所述根据事件消息从上 述的配置信息中获取相应的处理入口之前, 该方法还包括: 将事件消息封 装成统一的格式, 其格式内容包括: 事件标识、 及附加数据和 /或事件描述。
10、 根据权利要求 6至 9任一项所述的方法, 其特征在于, 所述方法 还包括: 当处理 GUI消息中的输入消息时, 根据当前窗口对该消息的处理 结果, 决定是否继续 GUI默认处理流程。
PCT/CN2011/076230 2010-08-25 2011-06-23 一种移动终端应用的事件处理装置和方法 Ceased WO2012024975A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN2010102630430A CN102375737A (zh) 2010-08-25 2010-08-25 一种移动终端应用的事件处理装置和方法
CN201010263043.0 2010-08-25

Publications (1)

Publication Number Publication Date
WO2012024975A1 true WO2012024975A1 (zh) 2012-03-01

Family

ID=45722871

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2011/076230 Ceased WO2012024975A1 (zh) 2010-08-25 2011-06-23 一种移动终端应用的事件处理装置和方法

Country Status (2)

Country Link
CN (1) CN102375737A (zh)
WO (1) WO2012024975A1 (zh)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103412742B (zh) * 2013-07-01 2018-04-10 深圳Tcl新技术有限公司 应用程序可配置ui的方法及装置
CN115048196A (zh) * 2022-05-11 2022-09-13 南方电网深圳数字电网研究院有限公司 一种模块间调用的方法和装置

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1635451A (zh) * 2003-12-26 2005-07-06 申学东 计算机界面的管理方法
CN1767679A (zh) * 2004-10-25 2006-05-03 Lg电子株式会社 用于移动通信的终端

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP3150889B2 (ja) * 1995-12-01 2001-03-26 株式会社日立製作所 ソフトウェア開発支援方法及び装置
CA2199108C (en) * 1996-03-05 2002-04-23 Hirotoshi Maegawa Parallel distributed processing system and method of same
CN100391149C (zh) * 2005-05-12 2008-05-28 中国科学院计算技术研究所 多节点智能网络应用服务系统中的应用管理子系统及方法
US20090089805A1 (en) * 2007-09-28 2009-04-02 Microsoft Corporation Profiling techniques and systems for computer programs

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1635451A (zh) * 2003-12-26 2005-07-06 申学东 计算机界面的管理方法
CN1767679A (zh) * 2004-10-25 2006-05-03 Lg电子株式会社 用于移动通信的终端

Also Published As

Publication number Publication date
CN102375737A (zh) 2012-03-14

Similar Documents

Publication Publication Date Title
CN102932238B (zh) 群组消息的提醒方法和设备
CN102520936B (zh) 一种在Android上实现Socket通讯服务共享的方法
CN102520927B (zh) 用于嵌入式终端的生成逻辑业务的方法、装置及终端
CN101958932B (zh) 一种实现电信业务的方法和装置
CN105868549B (zh) 基于互联网物联的医疗设备及其通信装置和方法
CN109981538A (zh) 订阅事件的注册方法及系统、订阅事件的处理方法及系统
CN103207811B (zh) 通用帮助系统的实现方法及其系统
CN105847319A (zh) 一种移动终端网络请求方法及系统
WO2012024975A1 (zh) 一种移动终端应用的事件处理装置和方法
WO2012024974A1 (zh) 一种移动终端数据管理的装置和方法
WO2011015099A1 (zh) 信息传送方法和系统、应用服务器及手机终端
CN106559230A (zh) 一种故障处理方法、装置及系统
CN112714170A (zh) 一种可配置通信协议的通用地面软件框架系统及应用
CN109729346B (zh) 电视的远程调试方法、调试终端、电视终端及系统
CN102014433B (zh) 多制式移动接入集成网关设备
CN102023862A (zh) 一种移动终端控制方法及系统
CN101551758A (zh) 一种实现设备管理任务并行工作的系统和方法
CN104378682A (zh) 一种基于安卓系统的按键统计方法和智能电视
HK1222230A1 (zh) 一种应用程序管理方法和装置
WO2023088198A1 (zh) 网络连接方法、装置和电子设备
WO2017076136A1 (zh) 一种移动终端多任务的显示处理方法和装置
TW201406101A (zh) 網路設備連接方法及系統
CN103049253A (zh) 一种用于手机客户端开发的系统
CN106792595A (zh) 一种远程应急管理系统及实现远程应急管理的控制方法
TWI644257B (zh) 推播通知附帶設定參數之方法

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 11819350

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 11819350

Country of ref document: EP

Kind code of ref document: A1