Movatterモバイル変換


[0]ホーム

URL:


CN102375668B - Window management method and device for mobile terminal - Google Patents

Window management method and device for mobile terminal
Download PDF

Info

Publication number
CN102375668B
CN102375668BCN201010263052.XACN201010263052ACN102375668BCN 102375668 BCN102375668 BCN 102375668BCN 201010263052 ACN201010263052 ACN 201010263052ACN 102375668 BCN102375668 BCN 102375668B
Authority
CN
China
Prior art keywords
window
instance
attribute
stack
control module
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.)
Expired - Fee Related
Application number
CN201010263052.XA
Other languages
Chinese (zh)
Other versions
CN102375668A (en
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 CorpfiledCriticalZTE Corp
Priority to CN201010263052.XApriorityCriticalpatent/CN102375668B/en
Priority to PCT/CN2011/074594prioritypatent/WO2012024951A1/en
Publication of CN102375668ApublicationCriticalpatent/CN102375668A/en
Application grantedgrantedCritical
Publication of CN102375668BpublicationCriticalpatent/CN102375668B/en
Expired - Fee Relatedlegal-statusCriticalCurrent
Anticipated expirationlegal-statusCritical

Links

Classifications

Landscapes

Abstract

Translated fromChinese

本发明公开了一种移动终端的窗口管理方法和装置,配置应用及窗口信息,生成相应配置文件并保存;根据所述相应配置文件中的窗口信息生成窗口代码;根据用户的操作生成初始窗口栈,并根据窗口的实例属性对初始窗口栈中窗口的顺序进行重新排序和组织。采用本发明所述的方法和装置,支持PC可视化界面设计工具自动生成窗口代码,实现窗口管理的灵活性和可定制化,能够极大提升型号机开发速度和质量,增加代码稳定性的同时减少维护人员成本,促进手机型号机的快速定制。

The invention discloses a window management method and device of a mobile terminal, which configures applications and window information, generates and saves corresponding configuration files; generates window codes according to the window information in the corresponding configuration files; generates initial window stacks according to user operations , and reorders and organizes the order of the windows in the initial window stack according to the window's instance properties. Adopting the method and device of the present invention supports PC visual interface design tools to automatically generate window codes, realizes the flexibility and customization of window management, can greatly improve the development speed and quality of model machines, and increases code stability while reducing Maintain personnel costs and promote rapid customization of mobile phone models.

Description

Translated fromChinese
一种移动终端的窗口管理方法和装置A window management method and device for a mobile terminal

技术领域technical field

本发明涉及移动终端的窗口界面控制领域,特别是一种移动终端的窗口管理方法和装置。The invention relates to the field of window interface control of mobile terminals, in particular to a method and device for window management of mobile terminals.

背景技术Background technique

移动终端的窗口管理,用于解决图层切换故障问题、窗口切换问题、刷新闪屏问题、CPU及电量、内存额外开销等问题。随着嵌入式移动终端的不断发展,嵌入式移动终端的窗口显示也越来越丰富,为用户提供了更多的需求。对用户而言,为了进行某一功能的操作而打开的一系列窗口,可被用户视为一组窗口,因此开发人员需要对这样一组窗口进行有序管理,从而达到方便用户完成相关功能的操作,使用户可以按照功能需求,通过相应的菜单逐级打开自己需要的窗口界面。The window management of mobile terminals is used to solve problems such as layer switching failures, window switching problems, refreshing splash screen problems, CPU and power consumption, memory overhead and other problems. With the continuous development of embedded mobile terminals, the window displays of embedded mobile terminals are becoming more and more abundant, which provides more demands for users. For users, a series of windows opened for the operation of a certain function can be regarded as a group of windows by users, so developers need to manage such a group of windows in an orderly manner, so as to facilitate users to complete related functions. Operation, so that users can open the window interface they need step by step through the corresponding menu according to the functional requirements.

现有技术中,在嵌入式移动终端开发过程中,开发人员想创建何种窗口,必须通过手工编写代码的方式实现窗口的创建、销毁和切换,但上述方法易造成开发方式混乱,使开发和维护效率比较低,对窗口的管理控制随意性比较大,每种型号的终端都可以拥有自己的显示和管理方式,而没有一个模块化、统一化的窗口管理模式,增加了开发过程的复杂性和开发的成本。In the prior art, in the development process of an embedded mobile terminal, what kind of window the developer wants to create must be created, destroyed and switched by manually writing codes, but the above method is likely to cause confusion in the development method, making development and The maintenance efficiency is relatively low, and the management and control of windows is relatively random. Each type of terminal can have its own display and management methods, but there is no modular and unified window management mode, which increases the complexity of the development process. and development costs.

另外,开发人员将窗口的实现代码封装在嵌入式移动终端应用的内部,使得开发方式缺乏灵活性;当遇到问题时,往往要深入到代码当中去进行查找修改,特别是在当前客户订制多、型号机型多的时候,要针对每一个机型进行修改,不仅占用大量人力而且后期维护压力较大,程序错误率较大。In addition, developers encapsulate the implementation code of the window inside the embedded mobile terminal application, which makes the development method inflexible; When there are many models and models, it is necessary to modify each model, which not only takes up a lot of manpower, but also requires a lot of maintenance pressure in the later period, and the program error rate is relatively high.

发明内容Contents of the invention

有鉴于此,本发明的主要目的在于提供一种移动终端的窗口管理方法和装置,灵活实现移动终端应用中的窗口显示,提高型号机开发的速率,降低维护成本。In view of this, the main purpose of the present invention is to provide a mobile terminal window management method and device, which can flexibly realize the window display in mobile terminal applications, increase the speed of model machine development, and reduce maintenance costs.

为达到上述目的,本发明的技术方案是这样实现的:In order to achieve the above object, technical solution of the present invention is achieved in that way:

本发明提供了一种移动终端的窗口管理方法,该方法包括:The invention provides a window management method of a mobile terminal, the method comprising:

配置窗口信息,生成相应配置文件并保存;Configure the window information, generate the corresponding configuration file and save it;

根据所述相应配置文件中的所配置的窗口信息生成窗口代码;generating window codes according to the configured window information in the corresponding configuration file;

根据用户的操作生成初始窗口栈,并根据窗口的实例属性对初始窗口栈中窗口的顺序进行重新排序和组织。Generate an initial window stack according to the user's operation, and reorder and organize the order of the windows in the initial window stack according to the instance properties of the windows.

上述方案中,所述窗口信息包括:窗口标识、窗口实例属性、窗口所属应用标识、窗口布局信息。In the above solution, the window information includes: window identifier, window instance attribute, application identifier to which the window belongs, and window layout information.

上述方案中,所述窗口实例属性包括:单实例属性和多实例属性。In the above solution, the window instance attributes include: single instance attributes and multi-instance attributes.

上述方案中,所述根据窗口的实例属性对初始窗口栈中窗口的顺序进行重新排序和组织,具体包括:当窗口栈中的窗口被再次打开时,将该窗口移至窗口栈的最上层,如果该窗口为单实例属性,则将窗口栈中最先打开的该窗口删除;如果该窗口为多实例属性,则保留窗口栈中最先打开的该窗口。In the above solution, the order of the windows in the initial window stack is reordered and organized according to the instance attributes of the windows, specifically including: when a window in the window stack is opened again, the window is moved to the top layer of the window stack, If the window is a single-instance attribute, the first opened window in the window stack is deleted; if the window is a multi-instance attribute, the first opened window in the window stack is retained.

本发明还提供了一种移动终端的窗口管理装置,该装置包括::窗口配置模块、窗口控制模块、窗口属性控制模块、窗口顺序控制模块;其中,The present invention also provides a window management device for a mobile terminal, which includes: a window configuration module, a window control module, a window attribute control module, and a window sequence control module; wherein,

窗口配置模块,用于配置窗口信息,生成相应配置文件并保存;The window configuration module is used to configure window information, generate corresponding configuration files and save them;

窗口属性控制模块,用于从相应配置文件中获取所配置的窗口的实例属性,并通过窗口属性控制模块的属性接口提供给窗口控制模块和窗口顺序控制模块;The window attribute control module is used to obtain the instance attribute of the configured window from the corresponding configuration file, and provide it to the window control module and the window sequence control module through the attribute interface of the window attribute control module;

窗口控制模块,用于通过所述窗口属性控制模块的属性接口获取配置的窗口信息,并生成窗口代码;A window control module, configured to obtain configured window information through the attribute interface of the window attribute control module, and generate window codes;

窗口顺序控制模块,用于根据用户的操作生成初始窗口栈,并根据所述窗口的实例属性对初始窗口栈中窗口的顺序进行重新排序和组织。The window sequence control module is used to generate an initial window stack according to the user's operation, and reorder and organize the order of the windows in the initial window stack according to the instance attributes of the windows.

上述方案中,所述窗口信息包括:窗口标识、窗口实例属性、窗口所属应用标识、窗口布局信息。In the above solution, the window information includes: window identifier, window instance attribute, application identifier to which the window belongs, and window layout information.

上述方案中,所述窗口实例属性包括:单实例属性和多实例属性。In the above solution, the window instance attributes include: single instance attributes and multi-instance attributes.

上述方案中,所述窗口顺序控制模块根据所述窗口的实例属性对初始窗口栈中窗口的顺序进行重新排序和组织,具体包括:当窗口栈中的窗口被用户再次打开时,将该窗口移至窗口栈的最上层,如果该窗口为单实例属性,则将窗口栈中最先打开的该窗口删除;如果该窗口为多实例属性,则保留窗口栈中最先打开的该窗口。In the above solution, the window order control module reorders and organizes the order of the windows in the initial window stack according to the instance attributes of the windows, specifically including: when a window in the window stack is opened again by the user, moving the window to To the top layer of the window stack, if the window is a single-instance attribute, delete the first opened window in the window stack; if the window is a multi-instance attribute, keep the first opened window in the window stack.

本发明所提供的一种移动终端的窗口管理方法和装置,配置应用及窗口信息,生成相应配置文件并保存;根据所述相应配置文件中的窗口信息生成窗口代码;根据用户的操作生成初始窗口栈,并根据窗口的实例属性对初始窗口栈中窗口的顺序进行重新排序和组织。The window management method and device of a mobile terminal provided by the present invention configure applications and window information, generate corresponding configuration files and save them; generate window codes according to the window information in the corresponding configuration files; generate initial windows according to user operations stack, and reorders and organizes the order of the windows in the initial window stack according to the window's instance properties.

采用本发明所述的方法和装置,通过窗口的实例属性并依据用户的行为习惯对嵌入式移动终端的窗口进行有效管理,提高窗口之间的切换效率,支持PC可视化界面设计工具自动生成窗口代码,实现窗口管理的灵活性和可定制化,灵活实现嵌入式移动终端应用各种定制界面显示,能够极大提升型号机开发速度和质量,增加代码稳定性的同时减少维护人员成本,促进手机型号机的快速定制。Using the method and device of the present invention, the windows of the embedded mobile terminal are effectively managed through the instance attributes of the windows and according to the user's behavior habits, the switching efficiency between windows is improved, and the PC visual interface design tool is supported to automatically generate window codes , realize the flexibility and customization of window management, and flexibly realize various customized interface displays for embedded mobile terminal applications, which can greatly improve the speed and quality of model machine development, increase code stability and reduce maintenance personnel costs, and promote mobile phone models. Quick customization of the machine.

附图说明Description of drawings

图1为本发明移动终端的窗口管理方法流程图;Fig. 1 is the flowchart of the window management method of the mobile terminal of the present invention;

图2为本发明移动终端的窗口管理装置组成结构图。FIG. 2 is a structural diagram of a window management device of a mobile terminal according to the present invention.

具体实施方式Detailed ways

本发明的基本思想是:配置应用及窗口信息,生成相应配置文件并保存;根据所述相应配置文件中所配置的窗口信息生成窗口代码;根据用户的操作生成初始窗口栈,并根据窗口的实例属性对初始窗口栈中窗口的顺序进行重新排序和组织。The basic idea of the present invention is: configure application and window information, generate corresponding configuration file and save; generate window code according to the window information configured in the corresponding configuration file; generate initial window stack according to user's operation, and Properties reorder and organize the order of windows in the initial window stack.

本发明所述窗口管理的过程中,需要完成以下工作:窗口有序管理、窗口定制化管理和窗口属性管理;其中,In the window management process of the present invention, the following tasks need to be completed: orderly window management, window customization management and window attribute management; wherein,

窗口有序管理,当用户实现某一功能时,需要打开一系列窗口,因此需要对上述一系列窗口进行有序管理,从而方便用户完成相关功能操作;Orderly management of windows. When a user implements a certain function, a series of windows need to be opened, so the above series of windows need to be managed in an orderly manner, so as to facilitate the user to complete related functional operations;

窗口定制化管理,需要结合PC可视化界面设计工具进行窗口的代码实现,以减轻开发人员的代码开发工作量,降低开发成本;Window customization management requires the combination of PC visual interface design tools for window code implementation, so as to reduce the developer's code development workload and reduce development costs;

窗口属性管理,通过配置窗口的属性,即窗口的单实例或多实例属性,并影响窗口在窗口栈中出现的次数,以提高开发效率。Window attribute management, by configuring the attributes of the window, that is, the single instance or multi-instance attribute of the window, and affecting the number of times the window appears in the window stack to improve development efficiency.

本发明提供的移动终端的窗口管理方法,如图1所示,包括以下步骤:The window management method of the mobile terminal provided by the present invention, as shown in Figure 1, comprises the following steps:

步骤101:通过PC可视化界面设计工具配置应用及窗口信息,并生成相应配置文件;Step 101: Configure application and window information through the PC visual interface design tool, and generate corresponding configuration files;

本步骤中,通过PC可视化界面设计工具配置需要在移动终端中展现的应用及窗口信息,包括:应用基本属性信息、应用状态信息、应用启动信息、应用窗口信息、应用数据信息等;其中,应用基本属性信息可以是应用ID、应用标识、应用类型、应用级别等;其中,应用级别又可以分为多个级别,如按使用频率分为五个级别:最低、正常偏低、正常、正常偏高、最高;应用状态信息可以是应用常驻标识、应用是否启动主窗口标识等,主窗口为打开应用时打开的第一个窗口;应用启动信息可以是应用是否线程模式启动标识、应用启动附加参数等;应用窗口信息可以是窗口标识、窗口所属应用标识、窗口布局信息、窗口实例属性等;其中,窗口布局信息包括所需控件及其位置、大小等信息;窗口实例属性包括:单实例属性和多实例属性;其中,所述单实例属性,是指同一个窗口在一个窗口栈中只能出现一次的窗口属性;所述多实例属性,是指同一个窗口在一个窗口栈中可以重复出现的窗口属性;其中,可以根据移动终端的进程性质或空间大小等因素来设置窗口的单实例或多实例属性,例如:为降低移动终端的使用空间,节省资源,可以将窗口设置为单实例属性;当移动终端为多进程终端时,可以将窗口设置为多实例属性;所述窗口栈,是指按照一定顺序而排列的窗口队列,窗口栈中窗口的初始排列顺序由用户打开窗口的顺序所决定,但是会根据窗口的实例属性而发生变化。例如:在用户的操作过程中,用户从应用B开始,打开一系列窗口,由窗口B.1打开到窗口B.2,再由窗口B.2打开到属于应用A的窗口A.4,且窗口A.4的数据由应用A提供,至此用户完成了需要达成某一功能的操作,初始窗口栈为:B.1-B.2-A.4,然后当用户再次打开窗口B.1,此时,用户打开的窗口顺序为B.1-B.2-A.4-B.1,如果窗口B.1为单实例属性,即窗口B.1只能在窗口栈中出现一次,则窗口栈变为:B.2-A.4-B.1;如果窗口B.1为多实例属性,即窗口B.1可以在窗口栈中多次出现,则窗口栈为:B.1-B.2-A.4-B.1。In this step, configure the application and window information that needs to be displayed in the mobile terminal through the PC visual interface design tool, including: application basic attribute information, application status information, application startup information, application window information, application data information, etc.; The basic attribute information can be application ID, application identification, application type, application level, etc. Among them, the application level can be divided into multiple levels, such as five levels according to the frequency of use: lowest, normal low, normal, normal High, highest; application status information can be the application resident identification, whether the application starts the main window identification, etc., the main window is the first window opened when the application is opened; application startup information can be the application startup thread mode identification, application startup Parameters, etc.; the application window information can be the window ID, the application ID to which the window belongs, window layout information, window instance properties, etc.; among them, the window layout information includes information such as the required control and its position, size, etc.; the window instance properties include: single instance properties and multi-instance attributes; wherein, the single-instance attribute refers to a window attribute that the same window can only appear once in a window stack; the multi-instance attribute refers to the same window that can appear repeatedly in a window stack Window attributes; Among them, the single-instance or multi-instance attributes of the window can be set according to the process nature or space size of the mobile terminal. For example, in order to reduce the space used by the mobile terminal and save resources, the window can be set as a single-instance attribute ; When the mobile terminal is a multi-process terminal, the window can be set as a multi-instance attribute; the window stack refers to a window queue arranged in a certain order, and the initial arrangement order of the windows in the window stack is determined by the order in which the windows are opened by the user Determined, but subject to change based on the window's instance properties. For example: during the user's operation, the user starts from application B, opens a series of windows, opens from window B.1 to window B.2, and then opens from window B.2 to window A.4 belonging to application A, and The data of window A.4 is provided by application A. So far, the user has completed the operation that needs to achieve a certain function. The initial window stack is: B.1-B.2-A.4, and then when the user opens window B.1 again, At this time, the sequence of windows opened by the user is B.1-B.2-A.4-B.1. If window B.1 is a single instance attribute, that is, window B.1 can only appear once in the window stack, then The window stack becomes: B.2-A.4-B.1; if window B.1 is a multi-instance attribute, that is, window B.1 can appear multiple times in the window stack, then the window stack is: B.1- B.2-A.4-B.1.

将上述应用及窗口信息配置后,分别生成相应的配置文件并存储。After the above application and window information are configured, corresponding configuration files are respectively generated and stored.

步骤102:PC可视化界面设计工具根据配置文件中的应用及窗口信息显示所需应用及相应窗口的预览效果;Step 102: The PC visual interface design tool displays the desired application and the preview effect of the corresponding window according to the application and window information in the configuration file;

步骤103:根据配置文件中的窗口布局信息生成窗口代码;Step 103: Generate window codes according to the window layout information in the configuration file;

本步骤中,根据相应配置文件中所配置的窗口布局信息调用GUI相关接口生成窗口代码,包括窗口的创建、销毁和切换代码等,通过调用上述代码实现对窗口的相应操作;例如:当用户打开之前未打开过的某一窗口时,即通过调用窗口的创建代码实现了窗口的创建过程;当用户关闭该窗口时,即通过调用窗口的销毁代码实现窗口的销毁过程;当用户需要将该窗口进行隐藏显示操作时,即调用窗口的切换代码实现窗口的切换过程;其中,GUI接口依据实现过程中所依赖的图形库而定。In this step, according to the window layout information configured in the corresponding configuration file, call the GUI related interface to generate window code, including the creation, destruction and switching code of the window, etc., and realize the corresponding operation on the window by calling the above code; for example: when the user opens When a window has not been opened before, the creation process of the window is realized by calling the creation code of the window; when the user closes the window, the destruction process of the window is realized by calling the destruction code of the window; When the hide and display operation is performed, the switching code of the window is called to realize the switching process of the window; wherein, the GUI interface depends on the graphics library that is relied on during the implementation process.

步骤104:根据用户的操作生成初始窗口栈,并根据窗口的实例属性对初始窗口栈中窗口的顺序进行重新排列和组织;Step 104: Generate an initial window stack according to the user's operation, and rearrange and organize the order of the windows in the initial window stack according to the instance attributes of the windows;

本步骤中,窗口栈中窗口的初始排列顺序由用户打开窗口的顺序所决定,再根据窗口的实例属性对初始窗口栈中窗口的顺序进行重新排列。当用户的操作顺序为:B.1-B.2-A.4-B.1,根据用户的上述触发生成初始窗口栈B.1-B.2-A.4-B.1;如果窗口B.1设置为单实例属性,则根据窗口的单实例属性,窗口栈的排列顺序变为B.2-A.4-B.1,因此,当用户从窗口B.1逐级返回时,窗口出现顺序为B.1-A.4-B.2;如果窗口B.1设置为多实例属性,则根据窗口的多实例属性,窗口栈的排列顺序为B.1-B.2-A.4-B.1,因此,当用户从窗口B.1逐级返回时,窗口出现顺序为B.1-A.4-B.2-B.1。可见,窗口栈中窗口的排列顺序影响了用户逐级退出窗口时窗口界面的显示情况。In this step, the initial order of the windows in the window stack is determined by the order in which the user opens the windows, and then the order of the windows in the initial window stack is rearranged according to the instance properties of the windows. When the user's operation sequence is: B.1-B.2-A.4-B.1, generate the initial window stack B.1-B.2-A.4-B.1 according to the user's above trigger; if the window B.1 is set as a single instance attribute, then according to the single instance attribute of the window, the arrangement order of the window stack becomes B.2-A.4-B.1, therefore, when the user returns from window B.1 step by step, The order of window appearance is B.1-A.4-B.2; if window B.1 is set as multi-instance attribute, then according to the multi-instance attribute of the window, the arrangement order of the window stack is B.1-B.2-A .4-B.1, so when the user steps back from window B.1, the windows appear in the order B.1-A.4-B.2-B.1. It can be seen that the arrangement order of the windows in the window stack affects the display of the window interface when the user exits the windows step by step.

另外,在低配置型号机或者单进程型号机中,某一时刻也许只存在一个窗口栈;而在高配置或者多进程型号机中,某一时刻可以存在多个窗口栈,在此时窗口栈的作用表现的尤为优越,具体体现在:1.可以利用窗口栈,保存不同的应用场景,随时恢复用户未完成的工作;2.结合窗口的单、多实例属性,改变相同或者类似窗口在窗口栈中的顺序,且并不影响用户达成某一目的操作,同时节省了手机中宝贵的资源空间。In addition, in a low-configuration model or a single-process model, there may only be one window stack at a certain moment; while in a high-configuration or multi-process model, there may be multiple window stacks at a certain moment. At this time, the window stack The performance of the function is particularly superior, specifically reflected in: 1. You can use the window stack to save different application scenarios and restore the user's unfinished work at any time; 2. Combining the single and multiple instance properties of the window, change the same or similar windows in the window The order in the stack does not affect the user's operation to achieve a certain purpose, and at the same time saves valuable resource space in the mobile phone.

通过上述方法对窗口进行的管理,增加了窗口管理的灵活性,且可以根据用户的需求定制窗口的管理,支持PC可视化界面设计工具自动生成窗口控制代码,提高了开发的效率,降低了开发和维护成本。The management of windows through the above method increases the flexibility of window management, and can customize the management of windows according to the needs of users, and supports PC visual interface design tools to automatically generate window control codes, which improves the efficiency of development and reduces the cost of development. maintenance costs.

本发明还提供了一种移动终端的窗口管理装置,位于嵌入式移动终端的应用模块中,如图2所示,该装置包括:窗口配置模块、窗口控制模块、窗口属性控制模块、窗口顺序控制模块;其中,The present invention also provides a window management device of a mobile terminal, located in the application module of the embedded mobile terminal, as shown in Figure 2, the device includes: a window configuration module, a window control module, a window attribute control module, and a window sequence control module. module; among them,

窗口配置模块,用于配置应用及窗口信息,生成相应配置文件并保存;The window configuration module is used to configure application and window information, generate corresponding configuration files and save them;

窗口属性控制模块,用于从相应配置文件中获取所配置的窗口的单实例或多实例属性,并通过窗口属性控制模块的属性接口提供给窗口控制模块和窗口顺序控制模块;The window attribute control module is used to obtain the single-instance or multi-instance attribute of the configured window from the corresponding configuration file, and provide it to the window control module and the window sequence control module through the attribute interface of the window attribute control module;

窗口控制模块,用于通过所述窗口属性控制模块的属性接口获取配置的窗口信息,并生成窗口代码,进行窗口的创建、销毁、切换;The window control module is used to obtain configured window information through the attribute interface of the window attribute control module, and generate window codes to create, destroy, and switch windows;

窗口顺序控制模块,用于根据用户的操作生成初始窗口栈,并根据所述窗口的实例属性对初始窗口栈中窗口的顺序进行重新排序和组织;在窗口销毁、切换过程中,可以参照窗口栈中窗口排列顺序对窗口进行销毁和切换。The window sequence control module is used to generate the initial window stack according to the user's operation, and reorder and organize the order of the windows in the initial window stack according to the instance attributes of the windows; in the process of window destruction and switching, the window stack can be referred to Destroy and switch windows according to the order in which the windows are arranged.

所述应用及窗口信息包括:应用基本属性信息、应用状态信息、应用启动信息、应用窗口信息、应用数据信息等;The application and window information includes: application basic attribute information, application status information, application startup information, application window information, application data information, etc.;

其中,所述应用窗口信息包括:窗口标识、窗口实例属性、窗口所属应用标识、窗口布局等信息。Wherein, the application window information includes information such as window identifier, window instance attribute, application identifier to which the window belongs, and window layout.

所述窗口实例属性包括:单实例属性和多实例属性。The window instance attributes include: single instance attributes and multi-instance attributes.

所述窗口栈中窗口的初始排列顺序由用户打开窗口的顺序所决定,并根据窗口的实例属性而进行重新排列和组织。在低配置型号机或者单进程型号机中,某一时刻也许只存在一个窗口栈;而在高配置或者多进程型号机中,某一时刻可以存在多个窗口栈,在此时窗口栈的作用表现的尤为优越,具体体现在:1.可以利用窗口栈,保存不同的应用场景,随时恢复用户未完成的工作;2.结合窗口的单、多实例属性,改变相同或者类似窗口在窗口栈中的顺序,且并不影响用户达成某一目的操作,同时节省了手机中宝贵的资源空间。The initial arrangement order of the windows in the window stack is determined by the order in which the user opens the windows, and is rearranged and organized according to the instance attributes of the windows. In a low-configuration model or a single-process model, there may only be one window stack at a certain moment; while in a high-configuration or multi-process model, there may be multiple window stacks at a certain moment. At this time, the role of the window stack The performance is particularly superior, specifically reflected in: 1. You can use the window stack to save different application scenarios and restore the unfinished work of the user at any time; 2. Combining the single and multiple instance properties of the window, change the same or similar windows in the window stack order, and does not affect the operation of the user to achieve a certain purpose, and at the same time saves valuable resource space in the mobile phone.

所述窗口顺序控制模块根据所述窗口的实例属性对窗口栈中窗口的顺序进行重新排序和组织,具体包括:当窗口栈中的窗口被用户再次打开时,将该窗口移至窗口栈的最上层,如果该窗口为单实例属性,则将窗口栈最先打开的该窗口删除;如果该窗口为多实例属性,则保留窗口栈中最先打开的该窗口。The window order control module reorders and organizes the order of the windows in the window stack according to the instance attributes of the windows, specifically including: when a window in the window stack is opened again by the user, moving the window to the top of the window stack In the upper layer, if the window is a single-instance attribute, the first opened window in the window stack is deleted; if the window is a multi-instance attribute, the first opened window in the window stack is retained.

下面通过具体实例对本发明步骤104所述方案进行详细描述。The scheme described in step 104 of the present invention will be described in detail below through specific examples.

本实例中,假设用户实现的功能为拨号呼叫:In this example, it is assumed that the function implemented by the user is a dial-up call:

第一步用户打开移动终端的“拨号盘窗口”,输入电话号码,例如“112”;In the first step, the user opens the "dial pad window" of the mobile terminal and enters a phone number, such as "112";

本步骤中,当用户第一次打开“拨号盘窗口”时,移动终端通过调用窗口的创建代码实现“拨号盘窗口”的创建,并根据配置文件中窗口的配置信息配置窗口的相关属性,最终在显示屏幕上显示出相应的窗口;In this step, when the user opens the "dial pad window" for the first time, the mobile terminal realizes the creation of the "dial pad window" by calling the creation code of the window, and configures the relevant properties of the window according to the configuration information of the window in the configuration file, and finally Display the corresponding window on the display screen;

第二步在拨号盘界面中通过菜单打开“通讯录窗口”;The second step is to open the "Contacts window" through the menu in the dial interface;

本步骤中,“通讯录窗口”的创建过程同步骤一;In this step, the creation process of the "Address Book Window" is the same as step 1;

第三步根据用户的上述操作生成窗口栈:“拨号盘窗口”-“通讯录窗口”;The third step is to generate a window stack according to the above operations of the user: "dial pad window" - "address book window";

第四步用户选择“通讯录窗口”的其中一项通讯录,通过菜单打开“编辑后呼叫窗口”,这时会发现“编辑后呼叫窗口”与刚开始打开的“拨号盘窗口”属于同一窗口;Step 4: The user selects one of the address books in the "Address Book Window" and opens the "Call Window after Editing" through the menu. At this time, you will find that the "Call Window after Editing" belongs to the same window as the "Dial Pad Window" that was opened just now. ;

第五步由于“编辑后呼叫窗口”与刚开始打开的“拨号盘窗口”属于同一窗口,所以如果“拨号盘窗口”被设置为单实例窗口,则窗口栈变为:“通讯录窗口”-“编辑后呼叫窗口”,这时按顺序逐级返回后,由于窗口栈中已删除“拨号盘窗口”,所以在“拨号盘窗口”中原始输入的数据“112”消失;如果“拨号盘窗口”被设置为多实例窗口,则窗口栈变为:“拨号盘窗口”-“通讯录窗口”-“编辑后呼叫窗口”这时按顺序逐级返回后,“拨号盘窗口”原始输入的数据“112”不消失,仍然存在。Step 5 Since the "Call Window after Editing" belongs to the same window as the "Dial Pad Window" opened just now, if the "Dial Pad Window" is set as a single instance window, the window stack becomes: "Contact Book Window"- "Call window after editing", after returning step by step in order at this time, because the "dial pad window" has been deleted in the window stack, the original input data "112" in the "dial pad window" disappears; if the "dial pad window" " is set as a multi-instance window, the window stack becomes: "dial pad window" - "address book window" - "edited call window" At this time, after returning step by step in order, the original input data of "dial pad window" "112" doesn't disappear, it still exists.

以上所述,仅为本发明的较佳实施例而已,并非用于限定本发明的保护范围,凡在本发明的精神和原则之内所作的任何修改、等同替换和改进等,均应包含在本发明的保护范围之内。The above description is only a preferred embodiment of the present invention, and is not used to limit the protection scope of the present invention. Any modifications, equivalent replacements and improvements made within the spirit and principles of the present invention shall be included in the within the protection scope of the present invention.

Claims (4)

Translated fromChinese
1.一种移动终端的窗口管理方法,其特征在于,该方法包括:1. A window management method of a mobile terminal, characterized in that the method comprises:配置窗口信息,生成相应配置文件并保存;Configure the window information, generate the corresponding configuration file and save it;根据所述相应配置文件中的所配置的窗口信息生成窗口代码;generating window codes according to the configured window information in the corresponding configuration file;根据用户的操作生成初始窗口栈,并根据窗口的实例属性对初始窗口栈中窗口的顺序进行重新排序和组织,具体包括:当窗口栈中的窗口被再次打开时,将该窗口移至窗口栈的最上层,如果该窗口为单实例属性,则将窗口栈中最先打开的该窗口删除;如果该窗口为多实例属性,则保留窗口栈中最先打开的该窗口;其中,窗口实例属性包括:单实例属性和多实例属性。Generate the initial window stack according to the user's operation, and reorder and organize the order of the windows in the initial window stack according to the instance properties of the window, specifically including: when a window in the window stack is opened again, move the window to the window stack If the window is a single-instance attribute, the first opened window in the window stack will be deleted; if the window is a multi-instance attribute, the first opened window in the window stack will be retained; among them, the window instance attribute Including: single-instance attributes and multi-instance attributes.2.根据权利要求1所述的方法,其特征在于,所述窗口信息包括:窗口标识、窗口实例属性、窗口所属应用标识、窗口布局信息。2. The method according to claim 1, wherein the window information comprises: window identifier, window instance attribute, application identifier of the window, and window layout information.3.一种移动终端的窗口管理装置,其特征在于,该装置包括:窗口配置模块、窗口控制模块、窗口属性控制模块、窗口顺序控制模块;其中,3. A window management device for a mobile terminal, characterized in that the device comprises: a window configuration module, a window control module, a window attribute control module, and a window sequence control module; wherein,窗口配置模块,用于配置窗口信息,生成相应配置文件并保存;The window configuration module is used to configure window information, generate corresponding configuration files and save them;窗口属性控制模块,用于从相应配置文件中获取所配置的窗口的实例属性,并通过窗口属性控制模块的属性接口提供给窗口控制模块和窗口顺序控制模块;所述窗口实例属性包括:单实例属性和多实例属性;The window attribute control module is used to obtain the instance attributes of the configured window from the corresponding configuration file, and provide the window control module and the window sequence control module through the attribute interface of the window attribute control module; the window instance attributes include: single instance attributes and multi-instance attributes;窗口控制模块,用于通过所述窗口属性控制模块的属性接口获取配置的窗口信息,并生成窗口代码;A window control module, configured to obtain configured window information through the attribute interface of the window attribute control module, and generate window codes;窗口顺序控制模块,用于根据用户的操作生成初始窗口栈,并当窗口栈中的窗口被用户再次打开时,将该窗口移至窗口栈的最上层,如果该窗口为单实例属性,则将窗口栈中最先打开的该窗口删除;如果该窗口为多实例属性,则保留窗口栈中最先打开的该窗口。The window sequence control module is used to generate the initial window stack according to the user's operation, and when the window in the window stack is opened again by the user, the window is moved to the top layer of the window stack. If the window is a single instance attribute, it will be The first opened window in the window stack is deleted; if the window is a multi-instance attribute, the first opened window in the window stack is retained.4.根据权利要求3所述的装置,其特征在于,所述窗口信息包括:窗口标识、窗口实例属性、窗口所属应用标识、窗口布局信息。4 . The device according to claim 3 , wherein the window information includes: a window identifier, a window instance attribute, an application identifier to which the window belongs, and window layout information.
CN201010263052.XA2010-08-252010-08-25Window management method and device for mobile terminalExpired - Fee RelatedCN102375668B (en)

Priority Applications (2)

Application NumberPriority DateFiling DateTitle
CN201010263052.XACN102375668B (en)2010-08-252010-08-25Window management method and device for mobile terminal
PCT/CN2011/074594WO2012024951A1 (en)2010-08-252011-05-24Method and device for window management of mobile terminal

Applications Claiming Priority (1)

Application NumberPriority DateFiling DateTitle
CN201010263052.XACN102375668B (en)2010-08-252010-08-25Window management method and device for mobile terminal

Publications (2)

Publication NumberPublication Date
CN102375668A CN102375668A (en)2012-03-14
CN102375668Btrue CN102375668B (en)2015-06-03

Family

ID=45722858

Family Applications (1)

Application NumberTitlePriority DateFiling Date
CN201010263052.XAExpired - Fee RelatedCN102375668B (en)2010-08-252010-08-25Window management method and device for mobile terminal

Country Status (2)

CountryLink
CN (1)CN102375668B (en)
WO (1)WO2012024951A1 (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN103513978B (en)*2012-07-022016-07-13Tcl集团股份有限公司A kind of method and system of the attribute information management application layout according to application
CN103116441B (en)*2013-01-282016-06-29广东威创视讯科技股份有限公司A kind of windows switching method and device
CN104317587A (en)*2014-10-222015-01-28中国人民解放军国防科学技术大学Automatic android mobile device oriented application generation method
CN108809641B (en)*2018-04-182021-03-12李世伟 Homepage identification number generation and application method and device
CN111625307B (en)*2019-12-032024-03-08蘑菇车联信息科技有限公司Synchronous group control method, device, PC (personal computer) terminal and system

Citations (3)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN101184300A (en)*2007-12-062008-05-21中兴通讯股份有限公司Window management method in mobile phone graphic system
CN101493751A (en)*2009-02-092009-07-29深圳市步科电气有限公司Multi-window manager of embedded graph system
CN101699395A (en)*2009-10-232010-04-28深圳市茁壮网络股份有限公司Multi-window management method and multi-window browser

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
US20060224992A1 (en)*2005-04-012006-10-05Microsoft CorporationGraphical user interface management

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN101184300A (en)*2007-12-062008-05-21中兴通讯股份有限公司Window management method in mobile phone graphic system
CN101493751A (en)*2009-02-092009-07-29深圳市步科电气有限公司Multi-window manager of embedded graph system
CN101699395A (en)*2009-10-232010-04-28深圳市茁壮网络股份有限公司Multi-window management method and multi-window browser

Also Published As

Publication numberPublication date
CN102375668A (en)2012-03-14
WO2012024951A1 (en)2012-03-01

Similar Documents

PublicationPublication DateTitle
US7917861B2 (en)User interface elements cloning and transitions
CN101770399B (en)Electronic equipment, method and device for switching operating system desktop
US7810047B2 (en)List item layouts system and method
CN1980442B (en) Layer structure providing method, background screen transition method, and mobile terminal
CN102043618B (en) Method and device for controlling display style of window object
CN102375668B (en)Window management method and device for mobile terminal
CN104216752A (en)Window-based information loading method and device
US8884981B2 (en)Dynamically reconfigurable graphics layer system and method
CN103150081A (en) Method and device for customizing shortcut icons in mobile terminal notification bar
WO2015184736A1 (en)Method and terminal for transforming background picture of touchscreen device
CN104571877A (en)Display processing method and device for pages
WO2013182089A1 (en)Object suspension realizing method and device
WO2011032428A1 (en)Method and device for implementing personalized animation of mobile terminal
CN105630461A (en)Managing method of android application interface
CN105453017A (en) Method and apparatus for providing a graphical user interface
CN105677351B (en)The compatible display methods of multiwindow and device
CN116954384A (en) Implementation method, device, electronic device and storage medium of customized soft keyboard
CN102999344A (en) Method and device for an intelligent terminal and user-defined operation set thereof
WO2011032429A1 (en)Method and device for realizing personalized interface identifiers in mobile terminal
CN106559550A (en)SIM management method and electronic installation
EP4583481A1 (en)Multi-device networking system and method, and terminal devices
CN100568178C (en) A way to add controls
CN109213980B (en)Method and device for editing presentation file and computer readable storage medium
CN115408051A (en)Mode switching method and device of application program, electronic equipment and storage medium
CN104461599A (en)Integration method of multiple desktop starters

Legal Events

DateCodeTitleDescription
C06Publication
PB01Publication
C10Entry into substantive examination
SE01Entry into force of request for substantive examination
C14Grant of patent or utility model
GR01Patent grant
CF01Termination of patent right due to non-payment of annual fee
CF01Termination of patent right due to non-payment of annual fee

Granted publication date:20150603


[8]ページ先頭

©2009-2025 Movatter.jp