CN111191164B - Window display control method and device - Google Patents

Window display control method and device Download PDF

Info

Publication number
CN111191164B
CN111191164B CN201911202171.1A CN201911202171A CN111191164B CN 111191164 B CN111191164 B CN 111191164B CN 201911202171 A CN201911202171 A CN 201911202171A CN 111191164 B CN111191164 B CN 111191164B
Authority
CN
China
Prior art keywords
window
windows
main
displayed
activated
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.)
Active
Application number
CN201911202171.1A
Other languages
Chinese (zh)
Other versions
CN111191164A (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.)
Taikang Insurance Group Co Ltd
Original Assignee
Taikang Insurance Group Co Ltd
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 Taikang Insurance Group Co Ltd filed Critical Taikang Insurance Group Co Ltd
Priority to CN201911202171.1A priority Critical patent/CN111191164B/en
Publication of CN111191164A publication Critical patent/CN111191164A/en
Application granted granted Critical
Publication of CN111191164B publication Critical patent/CN111191164B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/957Browsing optimisation, e.g. caching or content distillation
    • G06F16/9574Browsing optimisation, e.g. caching or content distillation of access to content, e.g. by caching

Abstract

The invention discloses a window display control method and device, and relates to the technical field of computers. One embodiment of the method comprises the following steps: adding marks to each window according to the hierarchical path information corresponding to the window type, and monitoring window activation, wherein the window type comprises a main window and a non-main window, the hierarchical path information of the main window comprises information indicating the main window, and the hierarchical path information of the non-main window comprises information indicating the non-main window and a parent window thereof; when the window is monitored to be activated, all currently displayed windows are arranged according to the marking display sequence, and the activated windows are displayed at the topmost layer. According to the embodiment, the windows can be sequentially overlapped and displayed according to a certain sequence, the problem that data information among the windows is inconsistent due to disorder of display levels of the windows is avoided, all child windows of a parent window can be automatically closed after the parent window is closed, and the problem that a user mistakenly views data due to the fact that the child windows are not closed in time is avoided.

Description

Window display control method and device
Technical Field
The present invention relates to the field of computer technologies, and in particular, to a method and apparatus for controlling window display.
Background
With the gradual cancellation of the support of the modal window by the browser, the front end gradually uses window open instead of window showModalaalog, so that the problem is that many times, a user unintentionally switches the window behind other windows, so that many operations are operated on the main interface, however, the information of the window behind is still old data information but is not found, and the information is inconsistent. For example, in a hospital information system, patient data information is not kept synchronized in time between multiple windows with serious consequences. To solve this problem, two general approaches are used: firstly, discarding various convenient new functions in a new browser, and still using an old version browser to support a modal window; secondly, a new browser is used, but when a modeless window is encountered, the user needs to carefully operate, for example, a hospital information system can only carefully check window patient information through a doctor so as to avoid medical accidents caused by error of the patient information.
In the process of implementing the present invention, the inventor finds that at least the following problems exist in the prior art:
the method has the advantages that the problem that data information among windows is inconsistent due to disordered display levels of the windows, and the problem that a user can see data by mistake due to the fact that a main window of a browser is closed and a sub window is not closed.
Disclosure of Invention
In view of the above, embodiments of the present invention provide a method and an apparatus for controlling window display, which can implement sequential overlapping display of windows according to a certain order, so as to avoid the problem of inconsistent data information between windows caused by disorder of display levels of multiple windows, and can automatically close all child windows after closing a parent window of a window, so as to avoid the problem of data error of a user caused by untimely closing of child windows.
To achieve the above object, according to an aspect of an embodiment of the present invention, there is provided a window display control method.
A window display control method, comprising: adding marks to each window according to the hierarchical path information corresponding to the window type, and monitoring the window activation; the window type comprises a main window and non-main windows, the hierarchical path information of the main window comprises information indicating the main window, the hierarchical path information of the non-main windows comprises information indicating the non-main windows and father windows thereof, the main window is a window which can only be used as the father window, and each non-main window corresponds to one main window; when the window is monitored to be activated, all currently displayed windows are arranged according to the marking display sequence, and the activated windows are displayed at the topmost layer.
Optionally, the displaying sequence of all the currently displayed windows is arranged according to the mark, including: grouping all the currently displayed windows according to the marks, wherein each group has a main window, and the non-main windows belonging to the same group correspond to the same main window; displaying all the currently displayed windows on different levels of a browser interface according to the grouping, wherein the method comprises the following steps: the group to which the activated window belongs is displayed at the upper layer of other groups, and the activated window is displayed at the topmost layer of the group to which the activated window belongs.
Optionally, when the window is opened or selected, monitoring the window for activation; the method further comprises the steps of: when the window is opened, the marks of the window are stored in a specific dictionary for storing the marks of all the currently displayed windows in the order in which all the currently displayed windows are opened.
Optionally, displaying all the currently displayed windows at different levels of the browser interface according to the grouping, and further includes: displaying the other groups on different levels of the browser interface according to the storage sequence of the marks of each main window in the specific dictionary; and displaying other windows in the group to which the activated window belongs and windows in the other groups in the group according to the storage sequence of the marks in the specific dictionary.
Optionally, the method further comprises: when a first window is monitored to be activated, recording a time point of the first window activation, and when the first window is displayed, after the activated window is changed into a second window, if a preset time interval is reached and the first window activation is not monitored again, minimizing the first window, wherein the first window and the second window are different windows.
Optionally, the method further comprises: monitoring whether a displayed parent window exists in each currently displayed window or not, and closing the window in which the displayed parent window does not exist, wherein the window activation is monitored through a monitoring plug-in, and whether the displayed parent window exists in each currently displayed window or not is monitored.
Optionally, the window is a modeless window.
According to another aspect of the embodiment of the present invention, there is provided a window display control apparatus.
A window display control apparatus comprising: window marking module, window monitoring module, display control module, wherein: the window marking module is used for adding marks to each window according to the hierarchical path information corresponding to the window type, wherein the window type comprises a main window and non-main windows, the hierarchical path information of the main window comprises information indicating the main window, the hierarchical path information of the non-main windows comprises information indicating the non-main windows and father windows of the non-main windows, the main window is a window which can only be used as the father window, and each non-main window corresponds to one main window; the window monitoring module is used for monitoring the window activation; and the display control module is used for arranging the display sequence of all currently displayed windows according to the marks when the window monitoring module monitors that the windows are activated, and the activated windows are displayed at the topmost layer.
Optionally, the display control module is further configured to: grouping all the currently displayed windows according to the marks, wherein each group has a main window, and the non-main windows belonging to the same group correspond to the same main window; displaying all the currently displayed windows on different levels of a browser interface according to the grouping, wherein the method comprises the following steps: the group to which the activated window belongs is displayed at the upper layer of other groups, and the activated window is displayed at the topmost layer of the group to which the activated window belongs.
Optionally, the window monitoring module monitors that the window is activated when the window is opened or selected; the apparatus further comprises a flag storage module for storing the flag of the window in a specific dictionary for storing the flags of all windows currently displayed in an order of opening of all windows currently displayed when the window is opened.
The display control module is further configured to: displaying the other groups on different levels of the browser interface according to the storage sequence of the marks of each main window in the specific dictionary; and displaying other windows in the group to which the activated window belongs and windows in the other groups in the group according to the storage sequence of the marks in the specific dictionary.
Optionally, the window monitoring module is further configured to: when the activation of a first window is monitored, recording the time point of the activation of the first window; the display control module is further configured to: and when the first window is displayed, after the activated window is changed to a second window, if the window monitoring module does not monitor the activation of the first window again for a preset time interval, the first window is minimized, and the first window and the second window are different windows.
Optionally, the window monitoring module is further configured to: monitoring whether each currently displayed window has a displayed parent window or not, and closing the window in which the displayed parent window does not exist, wherein the window monitoring module monitors the window activation through a monitoring plug-in, and monitors whether each currently displayed window has a displayed parent window or not.
Optionally, the window is a modeless window.
According to yet another aspect of an embodiment of the present invention, an electronic device is provided.
An electronic device, comprising: one or more processors; and the memory is used for storing one or more programs, and when the one or more programs are executed by the one or more processors, the one or more processors are enabled to realize the window display control method provided by the embodiment of the invention.
According to yet another aspect of an embodiment of the present invention, a computer-readable medium is provided.
A computer-readable medium has stored thereon a computer program which, when executed by a processor, implements a window display control method provided by an embodiment of the present invention.
One embodiment of the above invention has the following advantages or benefits: adding marks to each window according to the hierarchical path information corresponding to the window type, and monitoring window activation, wherein the hierarchical path information of the main window comprises information indicating the main window, and the hierarchical path information of the non-main window comprises information indicating the non-main window and the father window thereof; when the window activation is monitored, all the currently displayed windows are arranged according to the mark display sequence, and the activated windows are displayed at the top layer. The method can realize sequential overlapping display of the windows according to a certain sequence, and avoid the problem of inconsistent data information among the windows caused by disorder of display levels of a plurality of windows. By monitoring whether each window currently displayed has a displayed parent window or not, and closing the window in which the displayed parent window does not exist. All child windows of the parent window can be automatically closed after the parent window is closed, so that the problem that a user mistakenly views data due to the fact that the child windows are not closed in time is avoided.
Further effects of the above-described non-conventional alternatives are described below in connection with the embodiments.
Drawings
The drawings are included to provide a better understanding of the invention and are not to be construed as unduly limiting the invention. Wherein:
FIG. 1 is a schematic diagram of the main steps of a window display control method according to one embodiment of the present invention;
FIG. 2 is a schematic diagram of an overall framework for monitoring a browser pop-up window by a monitoring plug-in according to one embodiment of the invention;
FIG. 3 is a schematic diagram of a window display control flow in accordance with one embodiment of the invention;
FIG. 4 is a schematic diagram of main blocks of a window display control apparatus according to an embodiment of the present invention;
FIG. 5 is an exemplary system architecture diagram in which embodiments of the present invention may be applied;
fig. 6 is a schematic diagram of a computer system suitable for use in implementing an embodiment of the invention.
Detailed Description
Exemplary embodiments of the present invention will now be described with reference to the accompanying drawings, in which various details of the embodiments of the present invention are included to facilitate understanding, and are to be considered merely exemplary. Accordingly, those of ordinary skill in the art will recognize that various changes and modifications of the embodiments described herein can be made without departing from the scope and spirit of the invention. Also, descriptions of well-known functions and constructions are omitted in the following description for clarity and conciseness.
Fig. 1 is a schematic diagram of main steps of a window display control method according to an embodiment of the present invention.
As shown in fig. 1, the window display control method according to an embodiment of the present invention mainly includes the following steps S101 to S102.
Step S101: and adding marks to each window according to the hierarchical path information corresponding to the window type, and monitoring window activation.
The window type comprises a main window and a non-main window, wherein the hierarchical path information of the main window comprises information indicating the main window, and the hierarchical path information of the non-main window comprises information indicating the non-main window and a parent window thereof.
If a window itself has no parent window, the window type is a master window, and if a window itself has a parent window, the window type is a non-master window.
The main window is a window which can only be used as a father window, and each non-main window corresponds to one main window.
The information indicating a certain main window may include a window name of the main window, the information indicating a certain non-main window may include a window name of the non-main window and a sequence number of the window, and the information indicating a parent window of the certain non-main window may be hierarchical path information of its parent window.
Each window has a certain level, and the level indicates father-son relations among the windows, wherein some windows are main windows and can only serve as father windows of other windows, and other windows are non-main windows which can serve as child windows of other windows and also serve as father windows of other windows.
Each non-main window corresponds to one main window, specifically, a certain non-main window may correspond to a certain main window through a child window as the main window, or may finally correspond to one main window through a parent window step by step.
In one embodiment, the window is specifically a modeless window. The pop-up window may be modeless (pop-up window is abbreviated as pop-up window) or may not be pop-up window.
The window of the embodiment of the invention is not limited to a modeless window, and can be other types of windows which need to strictly control the display hierarchy sequence or update data information in time according to a main window.
The embodiment of the invention can add marks to each window by using the following mark rule expression:
{MAIN}-({SUB}-{INDEX1})...({SUBN}-{INDEXN});
wherein { MAIN } represents the title name of the MAIN window, { SUB } represents the name of the SUB window, and INDEX is the sequence number of the current SUB window.
Specifically, according to the above marking rule, for example, the hierarchical path information of the main window is: main. Assuming that the main window has two sub-windows, the hierarchical path information of the two sub-windows is respectively: main- (sub-1), main- (sub-2), if Main- (sub-1) has sub-windows, the hierarchical path information of the sub-windows of Main- (sub-1) is: main- (sub-1) - (sub-1), and so on, and the hierarchical path information of the sub-windows of the Main- (sub-1) - (sub-1) is Main- (sub-1) - (sub-1) - (sub-1).
In adding a label to each window, the Main of the different Main window may be labeled with a different value, e.g., in a hospital information system, the Main of the different patient may be labeled with each patient name, e.g., zhang three, lifour, etc. The sub-window may be marked as various levels of specific diagnosis and treatment information of the patient according to the corresponding hierarchical path information, for example, the sub-window Main- (sub-1) under the Main window of Zhang san may be marked as Zhang san-case basic information-1, and so on.
Step S102: when the window activation is monitored, all currently displayed windows are arranged in display order according to the marks of the windows, and the activated windows are displayed at the top layer.
Wherein window activation is monitored when the window is opened (e.g., pop-up) or selected. For example, the user clicks a certain link item in a certain window currently displayed, pops up a sub-window of the currently displayed window corresponding to the link item, and then monitors that the sub-window is activated; for another example, the user selects (by clicking or the like) a window currently displayed, and then the selected window is monitored to be activated.
In one embodiment, when a window is opened, the indicia of that window is stored in a particular dictionary that stores the indicia of all windows currently displayed in the order in which they were opened.
The step of arranging the display sequence of all the currently displayed windows according to the marks of the windows specifically may include: grouping all currently displayed windows according to window marks, wherein each group has a main window, and non-main windows belonging to the same group correspond to the same main window; displaying all currently displayed windows in different levels of the browser interface according to the grouping, wherein the method comprises the following steps: the group to which the activated window belongs is displayed at the upper layer of other groups, and the activated window is displayed at the topmost layer of the belonging group.
And grouping all windows which are currently displayed according to the window marks, specifically analyzing the hierarchical path information of the currently displayed windows, and grouping all marked windows according to the Main value in the hierarchical path information of the currently displayed windows, wherein the windows with the same Main value belong to the same group.
Taking a hospital information system as an example, grouping all currently displayed patient windows, wherein windows of the same patient correspond to the same Main window, namely Main values in hierarchical path information of windows of the same patient are the same, and then grouping the windows into one group. The windows are displayed in groups, wherein if the current doctor operates a certain window of the patient's third, for example, the third diagnosis and treatment information-1, then all windows of the patient's third are displayed on the upper layer of all windows of other patients, and the third-diagnosis and treatment information-1 is displayed on the topmost layer of all windows of the third.
In one embodiment, all windows currently displayed are displayed at different levels of the browser interface in groups, further comprising: other groups except the groups to which the activated windows belong are displayed at different levels of the browser interface according to the storage sequence of the marks of the independent windows in the specific dictionary; and displaying other windows in the group to which the activated window belongs and windows in other groups in the group according to the storage sequence of the respective marks in the specific dictionary. The specific dictionary is used for storing the marks of all windows currently displayed in the order in which all windows currently displayed are opened.
Since the specific dictionary stores the marks of all the windows currently displayed in the order of opening of all the windows currently displayed, the order of opening of the windows currently displayed can be determined according to the order of storing the marks in the specific dictionary. For example, according to the storage order of the marks in the specific dictionary, it may be determined whether a window is a first-opened window or a second-opened window, thereby realizing the display of the windows according to the opening order. In one embodiment, when displayed according to the opening order, a window that is opened first (a window that stores a mark in a specific dictionary first) may be displayed at a lower layer, and a window that is opened later (a window that stores a mark in a specific dictionary later) may be displayed at an upper layer. Of course, in another embodiment, the window that is opened first may be displayed in the upper layer, and the window that is opened later may be displayed in the lower layer. The windows which are opened first and then are determined by the storage sequence of the marks in the specific dictionary.
Taking the hospital information system as an example, for example, if the patient has four or five of plum, plum and five of the patient, all windows of the patient are grouped, and displayed on different levels of the browser interface according to the opening sequence of the main window, wherein the opening sequence of the main window is determined according to the storage sequence of marks of the main window in a specific dictionary. Assuming that the doctor opens the principal window of the king before opening the principal window of the plum, the group of all windows of the plum is arranged at the upper layer of the group of all windows of the king. For the inside of the packets of Li four and Wang five, the windows are arranged in the opening order. For the window of Zhang three other than Zhang three-diagnosis and treatment information-1, the windows may be displayed in the order of opening. The order in which the windows within the group are opened is also determined based on the order in which the labels of the windows within the group are stored in a particular dictionary. In addition to the active windows, each level of windows may be displayed in an overlaid form.
In one embodiment, the window display control method may further include: and monitoring whether each window currently displayed has a displayed parent window or not, and closing the window in which the displayed parent window does not exist. And, the activation of the window can be monitored through a monitoring plug-in, and whether each currently displayed window has a displayed parent window or not is monitored. The monitoring plug-in continues to monitor window activation or closure by scanning the handles of the windows to which the tags are added.
In one embodiment, when the first window is monitored to be activated, the time point of the first window activation is recorded, when the first window is displayed, after the activated window is changed to the second window, if the preset time interval is reached and the first window activation is not monitored again, the first window is minimized, and the first window and the second window are different windows. For example, when the window a is activated, the time point of the window a activation is recorded, the window a is not closed at this time, if the user selects another window B at this time, the currently activated window is changed from the original window a to the window B, and by continuously monitoring, if the window a is not activated again for a set time interval, for example, 5 minutes, the window a is minimized.
By minimizing the window which is not activated again for a preset time interval, the content information in the window can be effectively protected from leakage, and particularly in a scene that the information in the window is personal sensitive information or privacy information, the personal information can be effectively ensured not to be leaked due to negligence of a user.
Taking a modeless browser window as an example, an overall frame schematic of a monitoring plug-in monitoring browser window according to an embodiment of the present invention is shown in fig. 2. The embodiment of the invention develops a browser popup monitoring plug-in, namely the monitoring plug-in of fig. 2, which is installed on a client computer and used for monitoring browser popups, and the browser popups are added with marks according to the marking method of the embodiment of the invention. When the marked modeless window pops up, the monitoring plug-in rearranges the existing popup window according to the popup window mark, and when the parent window is closed, the monitoring plug-in closes all relevant popup windows according to the popup window mark.
Wherein the above-mentioned monitoring actions of the monitoring plug-in are ongoing.
One embodiment of the invention can also comprise detecting whether the monitoring plug-in is installed on the terminal equipment (such as a computer and the like) where the browser is located, judging whether the version of the monitoring plug-in is too old, and accordingly reminding a user of downloading to install or update the monitoring plug-in.
Fig. 3 is a schematic diagram of a window display control flow according to an embodiment of the present invention. As shown in fig. 3, a window display control flow according to an embodiment of the present invention includes:
step S301: the marked popup is monitored.
The monitoring range includes any one of the marked popups.
Step S302: monitoring whether the marked popup window exists on the current browser interface, if not, returning to the step S301 so as to continue monitoring; if so, step S303 is performed.
Step S303: for any marked popup window in the monitoring browser interface, whether a parent window exists is monitored, if not, step S304 is executed, and if so, step S305 is executed.
Step S304: the marked window is closed and then returns to step S301 to continue monitoring.
Step S305: and rearranging each marked popup window of the current browser interface according to the marking rule, and returning to the step S301 so as to continue monitoring.
Rearranging all marked popup windows of the current browser interface according to a marking rule, specifically grouping all marked popup windows currently displayed according to marking, wherein each group is provided with a main window, and non-main windows belonging to the same group correspond to the same main window; and displaying all marked popup windows currently displayed on different levels of a browser interface according to the groups, wherein the groups to which the activated marked popup windows belong are displayed on the upper layers of other groups, and the activated marked popup windows are displayed on the topmost layers of the groups to which the activated marked popup windows belong. And displaying other groups on different levels of the browser interface according to the opening sequence of the main window; and displaying the other marked popup windows in the group to which the activated marked popup window belongs and each marked popup window in the other groups in the sequence of opening.
For a hospital information system, when a front-end developer creates a modeless window by using JS (JavaScript, an transliterated script language), a title is set according to a marking rule, and a popup window is created, a monitoring plug-in developer develops a plug-in continuously monitored by scanning a handle of the marked popup window according to the marking rule, the plug-in monitors the marked popup window, analyzes hierarchical path information of the window according to the marking rule, groups all marked windows according to Main values in the hierarchical path information of the currently displayed window, and then executes hierarchical rearrangement of the displayed popup window, or closes the popup window without a parent window.
When in use, a doctor firstly detects whether a monitoring plug-in is installed on a terminal device (such as a computer or the like) where the browser is located and whether the version of the monitoring plug-in is too old through a WEBSOCKET (a protocol for carrying out full duplex communication on a single TCP connection) so as to prompt the doctor to download, install or update the monitoring plug-in.
Example scenario one:
the doctor opens a basic information window of the patient for three, the basic information window of the three is marked as 'three', the doctor clicks to check the patient's last visit information, the marked modeless window' Zhang three- (calendar visit-1) ', when the doctor clicks one piece of information in the last visit, the doctor pops out a new marked modeless window' Zhang three- (calendar visit-1) - (20190910 visit-1) ', then, the doctor clicks to check the doctor's advice in the visit information interface, the new marked modeless window 'Zhang three- (calendar visit-1) - (20190910 visit-1) - (doctor advice list-1)', in the process, the monitoring plug-in continuously monitors each window, sorts the modeless popup windows according to the scanned handle and marking rule information, ensures that all the opened modeless popup windows are displayed according to the opening sequence, and the window which is being operated is displayed at the forefront of the interface. If there are more windows of other patients, the windows are displayed at the lower layer of all windows of Zhang three in the order of the doctor's operation on the different patient information, for example, all windows of Lisi four are arranged at the lower layer of all windows of Zhang three, all windows of Wang five are arranged at the lower layer of all windows of Lisi four, and so on. And the windows of each patient are arranged in an open order, for example, the latter may be arranged in an upper layer, the first to be open, in a lower layer.
Example scenario two:
the doctor opens a basic information window of the patient's four, the basic information window of the four is marked as ' four ', the doctor clicks to check the patient's previous visit information, the marked non-modal window ' four- (calendar visit-1) ', when the doctor clicks one piece of information in the previous visit, the new marked non-modal window ' four- (calendar visit-1) - (20190910 visit-1) ', if the doctor closes the basic information window ' four ' of the patient's four, the monitoring plug-in monitors that the opened non-modal popup window ' four- (calendar visit-1) ' does not exist the father window ' four ', the monitoring plug-in automatically closes the window ' four- (calendar visit-1) ', and likewise, the monitoring plug-in monitors that the father window ' four- (calendar visit-1) ' of the ' four- (calendar visit-1) ' to (20190910 visit-1) ' does not exist, and the window ' four- (calendar visit-1) ' to (20190910-1) ' is also automatically closed.
According to the embodiment of the invention, the popup windows are switched for several times at the doctor, the windows displayed on the browser interface are not disordered by the doctor switching operation, but are sequentially overlapped and displayed according to a certain sequence, so that the problem of inconsistent data information among the modeless windows caused by disordered display levels of the windows is avoided, the window without the parent window can be automatically closed in time, and the problem of data error watching caused by the fact that the child window is not closed in time is avoided.
Fig. 4 is a schematic diagram of main blocks of a window display control apparatus according to an embodiment of the present invention.
As shown in fig. 4, the window display control apparatus 400 according to one embodiment of the present invention mainly includes: a window marking module 401, a window monitoring module 402, and a display control module 403.
The window marking module 401 is configured to add a mark to each window according to the hierarchical path information corresponding to the window type.
The window type comprises a main window and a non-main window, wherein the hierarchical path information of the main window comprises information indicating the main window, and the hierarchical path information of the non-main window comprises information indicating the non-main window and a parent window thereof.
The main window is a window which can only be used as a father window, and each non-main window corresponds to one main window.
In one embodiment, the hierarchical path information for the main window is, for example: main. Assuming that the main window has two sub-windows, the hierarchical path information of the two sub-windows is respectively: main- (sub-1), main- (sub-2), if Main- (sub-1) has sub-windows, the hierarchical path information of the sub-windows of Main- (sub-1) is: main- (sub-1) - (sub-1), and so on, and the hierarchical path information of the sub-windows of the Main- (sub-1) - (sub-1) is Main- (sub-1) - (sub-1) - (sub-1).
In one embodiment, the window is specifically a modeless window. The pop-up window may be modeless (pop-up window is abbreviated as pop-up window) or may not be pop-up window.
The window of the embodiment of the invention is not limited to a modeless window, and can be other types of windows which need to strictly control the display hierarchy sequence or update data information in time according to a main window.
A window monitoring module 402, configured to monitor window activation.
Wherein the window monitor module 402 monitors for window activation when a window is opened (e.g., pop-up) or selected. For example, the user clicks a certain link item in a certain window currently displayed, pops up a sub-window of the currently displayed window corresponding to the link item, and then monitors that the sub-window is activated; for another example, the user selects (by clicking or the like) a window currently displayed, and then the selected window is monitored to be activated.
The display control module 403 is configured to, when the window monitoring module 402 monitors that the windows are activated, arrange display orders of all currently displayed windows according to the window marks, and display the activated windows on the top layer.
The display control module 403 may specifically be configured to: grouping all currently displayed windows according to window marks, wherein each group has a main window, and non-main windows belonging to the same group correspond to the same main window; displaying all currently displayed windows in different levels of the browser interface according to the grouping, wherein the method comprises the following steps: the group to which the activated window belongs is displayed at the upper layer of other groups, and the activated window is displayed at the topmost layer of the belonging group.
All currently displayed windows are grouped according to window marks, specifically, the hierarchical path information of the currently displayed windows can be analyzed according to the marks, and the currently displayed windows are grouped according to the Main value in the hierarchical path information of the currently displayed windows.
In one embodiment, the window display control apparatus 400 may further include a flag storage module for storing, when a window is opened, a flag of the window in a specific dictionary for storing the flags of all windows currently displayed in an order of opening of all windows currently displayed.
The display control module 403 may also be configured to: displaying other groups except the group to which the activated window belongs on different levels of the browser interface according to the storage sequence of the marks of each main window in the specific dictionary; and displaying other windows in the group to which the activated window belongs and windows in other groups in the group according to the storage sequence of the respective marks in the specific dictionary.
In one embodiment, for example, window a and window b are both main windows, and assuming that the window mark of a is stored in a specific dictionary first, and the window mark of b is stored in the specific dictionary later, then the packet in which window a is located may be displayed at the upper layer of the packet in which window b is located according to the storage order of their marks in the specific dictionary. It is assumed that the window a also includes windows a1 and a2 in the group, the mark of the window a1 is stored after the mark of a is stored in the specific dictionary, the mark of a2 is stored after the mark of a1 is stored in the specific dictionary, and it is assumed that a, a1 and a2 are not active windows, and they are displayed in the group according to the storage order of the respective marks in the specific dictionary, the display hierarchy order may be that a is at the upper layer of a1 and a2 is at the lower layer of a 1.
In other embodiments, taking the above a, b, a1, a2 as an example, the display hierarchy order may be that the packet in which the window a is located is displayed in the lower layer of the packet in which the window b is located, a is in the lower layer of a1, and a2 is in the upper layer of a 1.
In one embodiment, window monitor module 402 may also be used to: when the first window activation is monitored, the time point of the first window activation is recorded. The display control module 403 may also be configured to: after the activated window is changed to the second window in the case that the first window is displayed, if the window monitoring module 402 does not monitor the first window activation again for a preset time interval, the first window is minimized. The first window and the second window are different windows.
In one embodiment, window monitor module 402 may also be used to: and monitoring whether each window currently displayed has a displayed parent window or not, and closing the window in which the displayed parent window does not exist. Also, window monitoring module 402 may monitor window activation by monitoring plug-ins and monitor whether each currently displayed window has a parent window displayed.
The monitoring plug-in may continually monitor window activation or closure by scanning the handle of each window to which the tag is added.
In addition, the specific implementation of the window display control device in the embodiment of the present invention has been described in detail in the window display control method above, so that the description is not repeated here.
Fig. 5 illustrates an exemplary system architecture 500 to which a window display control method or window display control apparatus of embodiments of the present invention may be applied.
As shown in fig. 5, the system architecture 500 may include terminal devices 501, 502, 503, a network 504, and a server 505. The network 504 is used as a medium to provide communication links between the terminal devices 501, 502, 503 and the server 505. The network 504 may include various connection types, such as wired, wireless communication links, or fiber optic cables, among others.
A user may interact with the server 505 via the network 504 using the terminal devices 501, 502, 503 to receive or send messages or the like. Various communication client applications may be installed on the terminal devices 501, 502, 503, such as shopping class applications, web browser applications, search class applications, instant messaging tools, mailbox clients, social platform software, etc. (by way of example only).
The terminal devices 501, 502, 503 may be a variety of electronic devices having a display screen and supporting web browsing, including but not limited to smartphones, tablets, laptop and desktop computers, and the like.
The server 505 may be a server providing various services, such as a background management server (by way of example only) providing support for websites browsed by users using the terminal devices 501, 502, 503. The background management server may analyze and process the received data such as the information query request, and feed back the processing result (e.g., case information—only an example) to the terminal device.
It should be noted that, the method for controlling window display provided in the embodiment of the present application is generally executed by the server 505, and accordingly, the window display control device is generally disposed in the server 505.
It should be understood that the number of terminal devices, networks and servers in fig. 5 is merely illustrative. There may be any number of terminal devices, networks, and servers, as desired for implementation.
Referring now to FIG. 6, there is illustrated a schematic diagram of a computer system 600 suitable for use in implementing a terminal device or server in accordance with an embodiment of the present application. The terminal device or server shown in fig. 6 is only an example, and should not impose any limitation on the functions and scope of use of the embodiments of the present application.
As shown in fig. 6, the computer system 600 includes a Central Processing Unit (CPU) 601, which can perform various appropriate actions and processes according to a program stored in a Read Only Memory (ROM) 602 or a program loaded from a storage section 608 into a Random Access Memory (RAM) 603. In the RAM 603, various programs and data required for the operation of the system 600 are also stored. The CPU 601, ROM 602, and RAM 603 are connected to each other through a bus 604. An input/output (I/O) interface 605 is also connected to bus 604.
The following components are connected to the I/O interface 605: an input portion 606 including a keyboard, mouse, etc.; an output portion 607 including a Cathode Ray Tube (CRT), a Liquid Crystal Display (LCD), and the like, a speaker, and the like; a storage section 608 including a hard disk and the like; and a communication section 609 including a network interface card such as a LAN card, a modem, or the like. The communication section 609 performs communication processing via a network such as the internet. The drive 610 is also connected to the I/O interface 605 as needed. Removable media 611 such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, or the like is installed as needed on drive 610 so that a computer program read therefrom is installed as needed into storage section 608.
In particular, according to embodiments of the present disclosure, the processes described above with reference to flowcharts may be implemented as computer software programs. For example, embodiments of the present disclosure include a computer program product comprising a computer program embodied on a computer readable medium, the computer program comprising program code for performing the method shown in the flow chart. In such an embodiment, the computer program may be downloaded and installed from a network through the communication portion 609, and/or installed from the removable medium 611. The above-described functions defined in the system of the present application are performed when the computer program is executed by a Central Processing Unit (CPU) 601.
The computer readable medium shown in the present application may be a computer readable signal medium or a computer readable storage medium, or any combination of the two. The computer readable storage medium can be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or a combination of any of the foregoing. More specific examples of the computer-readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the context of this document, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. In the present application, however, the computer-readable signal medium may include a data signal propagated in baseband or as part of a carrier wave, with the computer-readable program code embodied therein. Such a propagated data signal may take any of a variety of forms, including, but not limited to, electro-magnetic, optical, or any suitable combination of the foregoing. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device. Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to: wireless, wire, fiber optic cable, RF, etc., or any suitable combination of the foregoing.
The flowcharts and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present application. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams or flowchart illustration, and combinations of blocks in the block diagrams or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
The modules involved in the embodiments of the present application may be implemented in software or in hardware. The described modules may also be provided in a processor, for example, as: a processor comprises a window marking module, a window monitoring module and a display control module. The names of these modules do not constitute a limitation on the module itself in some cases, and for example, the window marking module may also be described as "a module for adding a mark to each window according to hierarchical path information of the window".
As another aspect, the present invention also provides a computer-readable medium that may be contained in the apparatus described in the above embodiments; or may be present alone without being fitted into the device. The computer readable medium carries one or more programs which, when executed by a device, cause the device to include: adding marks to each window according to the hierarchical path information corresponding to the window type, and monitoring the window activation; the window type comprises a main window and non-main windows, the hierarchical path information of the main window comprises information indicating the main window, the hierarchical path information of the non-main windows comprises information indicating the non-main windows and father windows thereof, the main window is a window which can only be used as the father window, and each non-main window corresponds to one main window; when the window is monitored to be activated, all currently displayed windows are arranged according to the marking display sequence, and the activated windows are displayed at the topmost layer.
According to the technical scheme of the embodiment of the invention, marks are added to each window according to the hierarchical path information corresponding to the window type, and the activation of the window is monitored; when the window activation is monitored, all the currently displayed windows are arranged according to the mark display sequence, and the activated windows are displayed at the top layer. The method can realize sequential overlapping display of the windows according to a certain sequence, and avoid the problem of inconsistent data information among the windows caused by disorder of display levels of a plurality of windows. By monitoring whether each window currently displayed has a displayed parent window or not, and closing the window in which the displayed parent window does not exist. All child windows of the parent window can be automatically closed after the parent window is closed, so that the problem that a user mistakenly views data due to the fact that the child windows are not closed in time is avoided.
The above embodiments do not limit the scope of the present invention. It will be apparent to those skilled in the art that various modifications, combinations, sub-combinations and alternatives can occur depending upon design requirements and other factors. Any modifications, equivalent substitutions and improvements made within the spirit and principles of the present invention should be included in the scope of the present invention.

Claims (9)

1. A window display control method, characterized by comprising:
adding marks to each window according to the hierarchical path information corresponding to the window type, and monitoring the window activation; the window type comprises a main window and non-main windows, the hierarchical path information of the main window comprises information indicating the main window, the hierarchical path information of the non-main windows comprises information indicating the non-main windows and father windows thereof, the main window is a window which can only be used as the father window, and each non-main window corresponds to one main window;
when the window is monitored to be activated, arranging the display sequence of all currently displayed windows according to the marks, and displaying the activated windows on the topmost layer;
the method further comprises the steps of: when a first window is monitored to be activated, recording a time point of the first window activation, and when the first window is displayed, after the activated window is changed into a second window, if a preset time interval is reached and the first window activation is not monitored again, minimizing the first window, wherein the first window and the second window are different windows.
2. The method of claim 1, wherein the arranging the display order of all the currently displayed windows according to the mark comprises:
grouping all the currently displayed windows according to the marks, wherein each group has a main window, and the non-main windows belonging to the same group correspond to the same main window;
displaying all the currently displayed windows on different levels of a browser interface according to the grouping, wherein the method comprises the following steps: the group to which the activated window belongs is displayed at the upper layer of other groups, and the activated window is displayed at the topmost layer of the group to which the activated window belongs.
3. The method of claim 1, wherein the window activation is monitored when the window is opened or selected;
the method further comprises the steps of:
when the window is opened, the marks of the window are stored in a specific dictionary for storing the marks of all the currently displayed windows in the order in which all the currently displayed windows are opened.
4. The method of claim 2, wherein said displaying all of said currently displayed windows at different levels of a browser interface in said groupings further comprises:
Displaying the other groups on different levels of the browser interface according to the storage sequence of the marks of each main window in a specific dictionary; the specific dictionary is used for storing marks of all the currently displayed windows according to the opening sequence of all the currently displayed windows;
and displaying other windows in the group to which the activated window belongs and windows in the other groups in the group according to the storage sequence of the marks in the specific dictionary.
5. The method as recited in claim 1, further comprising: monitoring whether a displayed parent window exists in each currently displayed window or not, and closing the window in which the displayed parent window does not exist, wherein the window activation is monitored through a monitoring plug-in, and whether the displayed parent window exists in each currently displayed window or not is monitored.
6. The method of claim 1, wherein the window is a modeless window.
7. A window display control apparatus, comprising: window marking module, window monitoring module, display control module, wherein:
The window marking module is used for adding marks to each window according to the hierarchical path information corresponding to the window type, wherein the window type comprises a main window and non-main windows, the hierarchical path information of the main window comprises information indicating the main window, the hierarchical path information of the non-main windows comprises information indicating the non-main windows and father windows thereof, the main window is a window which can only be used as the father window, and each non-main window corresponds to one main window;
the window monitoring module is used for monitoring the window activation;
the display control module is used for arranging the display sequence of all currently displayed windows according to the marks when the window monitoring module monitors that the windows are activated, and the activated windows are displayed at the topmost layer;
the window monitoring module is further configured to: when a first window is monitored to be activated, recording a time point of the first window activation, and when the first window is displayed, after the activated window is changed into a second window, if a preset time interval is reached and the first window activation is not monitored again, minimizing the first window, wherein the first window and the second window are different windows.
8. An electronic device, comprising:
one or more processors;
a memory for storing one or more programs,
the one or more programs, when executed by the one or more processors, cause the one or more processors to implement the method of any of claims 1-6.
9. A computer readable medium, on which a computer program is stored, characterized in that the program, when being executed by a processor, implements the method according to any of claims 1-6.
CN201911202171.1A 2019-11-29 2019-11-29 Window display control method and device Active CN111191164B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911202171.1A CN111191164B (en) 2019-11-29 2019-11-29 Window display control method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911202171.1A CN111191164B (en) 2019-11-29 2019-11-29 Window display control method and device

Publications (2)

Publication Number Publication Date
CN111191164A CN111191164A (en) 2020-05-22
CN111191164B true CN111191164B (en) 2023-08-22

Family

ID=70707220

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911202171.1A Active CN111191164B (en) 2019-11-29 2019-11-29 Window display control method and device

Country Status (1)

Country Link
CN (1) CN111191164B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113778580B (en) * 2021-07-28 2023-12-08 赤子城网络技术(北京)有限公司 Modal user interface display method, electronic device and storage medium
CN113721809B (en) * 2021-09-08 2023-07-04 遨博(江苏)机器人有限公司 Window display method and system
CN116820286B (en) * 2023-08-24 2024-01-19 深圳市嘉利达专显科技有限公司 Control method and system of multi-window display

Citations (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6177936B1 (en) * 1998-08-20 2001-01-23 International Business Machines Corporation Browser hierarchical contextual information for web pages
CN1771475A (en) * 2003-04-10 2006-05-10 松下电器产业株式会社 Window stack control method, window management program, and window management apparatus
CN103197842A (en) * 2013-04-15 2013-07-10 广州博冠信息科技有限公司 Method and device for controlling application program windows
CN103377228A (en) * 2012-04-25 2013-10-30 阿里巴巴集团控股有限公司 Page content presenting method and device for browser
CN104102406A (en) * 2013-04-07 2014-10-15 华为技术有限公司 Multi-level drilling analysis presentation method, multi-level window presentation method, multi-level window presentation device and multi-level window presentation equipment
CN105404512A (en) * 2015-11-25 2016-03-16 飞天诚信科技股份有限公司 Application window interface changing method and apparatus
CN105867937A (en) * 2016-04-18 2016-08-17 浙江慧脑信息科技有限公司 Method for designing interactive multiple windows
CN105892817A (en) * 2016-04-01 2016-08-24 腾讯科技(深圳)有限公司 Control method and device for windows in application program
CN106293325A (en) * 2016-07-26 2017-01-04 网易(杭州)网络有限公司 The method and apparatus of automatic seeking window
CN107291941A (en) * 2017-07-10 2017-10-24 郑州云海信息技术有限公司 A kind of method and apparatus of loading page
CN110147191A (en) * 2019-04-23 2019-08-20 北京小米移动软件有限公司 A kind of method, apparatus and storage medium controlling window
CN110263277A (en) * 2019-06-18 2019-09-20 广州虎牙科技有限公司 Display methods, update method, device, equipment and the storage medium of page data
CN110286978A (en) * 2019-06-13 2019-09-27 广州视源电子科技股份有限公司 Method, apparatus, equipment and the storage medium of window level switching

Patent Citations (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6177936B1 (en) * 1998-08-20 2001-01-23 International Business Machines Corporation Browser hierarchical contextual information for web pages
CN1771475A (en) * 2003-04-10 2006-05-10 松下电器产业株式会社 Window stack control method, window management program, and window management apparatus
CN103377228A (en) * 2012-04-25 2013-10-30 阿里巴巴集团控股有限公司 Page content presenting method and device for browser
CN104102406A (en) * 2013-04-07 2014-10-15 华为技术有限公司 Multi-level drilling analysis presentation method, multi-level window presentation method, multi-level window presentation device and multi-level window presentation equipment
CN103197842A (en) * 2013-04-15 2013-07-10 广州博冠信息科技有限公司 Method and device for controlling application program windows
CN105404512A (en) * 2015-11-25 2016-03-16 飞天诚信科技股份有限公司 Application window interface changing method and apparatus
WO2017167176A1 (en) * 2016-04-01 2017-10-05 腾讯科技(深圳)有限公司 Control method and apparatus for windows in application program
CN105892817A (en) * 2016-04-01 2016-08-24 腾讯科技(深圳)有限公司 Control method and device for windows in application program
CN105867937A (en) * 2016-04-18 2016-08-17 浙江慧脑信息科技有限公司 Method for designing interactive multiple windows
CN106293325A (en) * 2016-07-26 2017-01-04 网易(杭州)网络有限公司 The method and apparatus of automatic seeking window
CN107291941A (en) * 2017-07-10 2017-10-24 郑州云海信息技术有限公司 A kind of method and apparatus of loading page
CN110147191A (en) * 2019-04-23 2019-08-20 北京小米移动软件有限公司 A kind of method, apparatus and storage medium controlling window
CN110286978A (en) * 2019-06-13 2019-09-27 广州视源电子科技股份有限公司 Method, apparatus, equipment and the storage medium of window level switching
CN110263277A (en) * 2019-06-18 2019-09-20 广州虎牙科技有限公司 Display methods, update method, device, equipment and the storage medium of page data

Also Published As

Publication number Publication date
CN111191164A (en) 2020-05-22

Similar Documents

Publication Publication Date Title
US11190544B2 (en) Updating security controls or policies based on analysis of collected or created metadata
CN111191164B (en) Window display control method and device
US10936293B2 (en) Container image layer reordering
US10725625B2 (en) Displaying webpage information of parent tab associated with new child tab on graphical user interface
US11316896B2 (en) Privacy-preserving user-experience monitoring
US20110067004A1 (en) Web-based integrated test and debugging system
US9971571B2 (en) Undo/redo in Javascript object notation
US11397594B1 (en) Dynamic loading of an extending application
CN110351134A (en) A kind of server environment switching method, device and electronic equipment
CN113254136A (en) Information recommendation popup window display method, device, equipment and computer readable medium
US20180295102A1 (en) Mention identification for untrusted content
CN112256372B (en) Information processing method and device and electronic equipment
US10956239B1 (en) Utilizing source context and classification in a copy operation
US11416561B1 (en) Identifying evidence within an information technology (IT) operations platform
EP3594823B1 (en) Information display method, terminal and server
US10733000B1 (en) Systems and methods for providing relevant software documentation to users
US10075400B2 (en) Transmission and presentation of private content in electronic messages
US8417994B2 (en) Severity map of change-induced pervasive services outages
US20170279658A1 (en) Communicating between components in business process management systems
US10097613B2 (en) Systems and methods for enhancing performance of resource state polling
CN110908550B (en) Operation processing method and device in cursor hovering state
US10268489B2 (en) Adaptive successive warning message handling
CN114661397B (en) Download management method, device, electronic equipment and storage medium
CN112579939A (en) Front-end rendering method and device
CN112861051A (en) Page operation control method and device, electronic equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant