CN102479074B - A kind of method, device and application system of following the tracks of GUI list refreshing content - Google Patents

A kind of method, device and application system of following the tracks of GUI list refreshing content Download PDF

Info

Publication number
CN102479074B
CN102479074B CN201010557107.8A CN201010557107A CN102479074B CN 102479074 B CN102479074 B CN 102479074B CN 201010557107 A CN201010557107 A CN 201010557107A CN 102479074 B CN102479074 B CN 102479074B
Authority
CN
China
Prior art keywords
list
gui
information
list information
interface
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
CN201010557107.8A
Other languages
Chinese (zh)
Other versions
CN102479074A (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.)
Konka Group Co Ltd
Original Assignee
Konka 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 Konka Group Co Ltd filed Critical Konka Group Co Ltd
Priority to CN201010557107.8A priority Critical patent/CN102479074B/en
Publication of CN102479074A publication Critical patent/CN102479074A/en
Application granted granted Critical
Publication of CN102479074B publication Critical patent/CN102479074B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The invention belongs to computer software fields, provide a kind of method, device and application system of following the tracks of GUI list refreshing content, described method comprises the steps: to obtain GUI list information, and is stored in vector lists by the GUI list information of acquisition; When GUI list interface exists focus row, reorientate list information load position, described list information load position be from described vector lists the position of read list information; Read list information export GUI list interface to successively from the load position of list information described in vector lists.In the present invention, the position of recording content is read by recalculating from vector lists to the GUI list interface that there is focus row, ensure that the display position of GUI list content current focus row when passive renewal is constant, improve operating efficiency and user satisfaction.

Description

A kind of method, device and application system of following the tracks of GUI list refreshing content
Technical field
The invention belongs to computer software fields, particularly relate to a kind of method, device and application system of following the tracks of GUI list refreshing content.
Background technology
In graphic user interface (GraphicalUserInterface, GUI), list is a kind of common control, is used for showing organizing data structure that is identical or different types of data more.In the gui, renewal is carried out to list content and generally comprises two kinds of methods: user operation upgrades button and carries out active renewal and background program obtains more after new data from service end, sends more new data, make the passive renewal of list content to GUI.
In the general passive renewal of GUI list content, be all be updated to list tail from list head.If when certain user is operating GUI list, cursor or focus have moved to list certain position below, and now because the passive refreshing of list content, list content again shows from list head, cursor or focus also move to list head position, user needs again to operate and just can get back to original position, causes operating discontinuous, inefficient operation, affects user operation mood.
Summary of the invention
The object of the embodiment of the present invention is to provide a kind of method of following the tracks of GUI list refreshing content, is intended to solve existing GUI list content when passive renewal, and cursor or focus easily change, and causes that user operation is discontinuous, the problem of inefficient operation.
The embodiment of the present invention is achieved in that a kind of method of following the tracks of GUI list refreshing content, and described method comprises the steps:
Obtain GUI list information, and the GUI list information of acquisition is stored in vector lists;
When GUI list interface exists focus row, reorientate list information load position, described list information load position be from described vector lists the position of read list information;
Read list information export GUI list interface to successively from the load position of list information described in vector lists.
Another object of the embodiment of the present invention is to provide a kind of device following the tracks of GUI list refreshing content, and described device comprises:
List information storage unit, for obtaining GUI list information, and is stored in vector lists by the GUI list information of acquisition;
Unit is reorientated in load position, for when GUI list interface exists focus row, reorientates list information load position, described list information load position be from described vector lists the position of read list information; And
List information output unit, for read list information export GUI list interface to successively from the load position of list information described in vector lists.
Another object of the embodiment of the present invention is to provide a kind of application system comprising above-mentioned tracking GUI list refreshing content device.
In embodiments of the present invention, by reorientating list information load position to the GUI list interface that there is focus row, according to described load position, read list information export GUI list interface to successively from vector lists, make GUI list content when passive renewal, the display position of current cursor or focus row is constant, ensure that the continuity of user operation, improves operating efficiency and user satisfaction.
Accompanying drawing explanation
Fig. 1 is the realization flow figure of the tracking GUI list refreshing content method that the embodiment of the present invention one provides;
Fig. 2 is the particular flow sheet of reorientating list information load position that the embodiment of the present invention provides;
Fig. 3 is the realization flow figure of the tracking GUI list refreshing content method that the embodiment of the present invention two provides;
Fig. 4 is the structural drawing of the tracking GUI list refreshing content device that the embodiment of the present invention three provides.
Embodiment
In order to make object of the present invention, technical scheme and advantage clearly understand, below in conjunction with drawings and Examples, the present invention is further elaborated.Should be appreciated that specific embodiment described herein only in order to explain the present invention, be not intended to limit the present invention.
The embodiment of the present invention reads the position of recording content by recalculating from vector lists to the GUI list interface that there is focus row, the position of reading record content is started according to described, from vector lists, obtain record content successively and output in GUI list interface, make GUI list content when passive renewal, the display position of current cursor or focus row is constant, ensure that the continuity of user operation, improve operating efficiency and user satisfaction.
In order to technical solutions according to the invention are described, be described below by specific embodiment.
embodiment one:
Fig. 1 shows the realization flow of the tracking GUI list refreshing content method that the embodiment of the present invention one provides, the method is by reorientating list information load position to the GUI list interface that there is focus row, make GUI list content when passive renewal, the display position of current cursor or focus row is constant, ensure that the continuity of user operation, improve operating efficiency and user satisfaction, its detailed step is as described below:
In step S101, obtain GUI list information, and the GUI list information of acquisition is stored in vector lists.
As embodiments of the invention, refreshing thread will obtain GUI list refreshing information according to Preset Time from backstage, and wherein, Preset Time can according to developer's sets itself, and backstage comprises the webserver or system background.The GUI list refreshing information of acquisition is stored in vector lists (or array).Each obtain the list information that will refresh according to Preset Time time, first empty vector lists, and then obtain list refreshing content from the webserver or system background, be stored in vector lists (or array).
According to the list records sum g_TotalRecordNum obtained from backstage, the record number g_RowNum of each most multipotency display of window of definition, by rounding calculating: g_TotalPageNum=g_TotalRecordNum/g_RowNum can obtain the total page number of list.Again by modulo operation, judge whether the record number of list last page is zero, if be greater than zero, show that the record number of the last page of list is less than g_RowNum, always list number of pages needs the total page number that obtains when rounding operation adds 1 accordingly; If be zero, then total page number when list total page number is still rounding operation.By said method, make content in vector lists can Pagination Display in GUI list interface.
In step s 102, judge whether current GUI list interface exists focus row.If judged result is "Yes", then perform step S104, if judged result is "No", then perform step S103.
In embodiments of the present invention, when refreshing GUI list content, first judging whether current GUI list interface exists current cursor or focus row, namely whether having user in the current GUI list of operation.If when current GUI list interface exists focus row, reorientate list information load position, described list information load position be from described vector lists the position of read list information.If when there is not focus row in current GUI list interface, directly read list information export described GUI list interface to from vector lists head.
In step s 103, direct read list information export GUI list interface to from vector lists head.
In step S104, reorientate list information load position, described list information load position be from described vector lists the position of read list information.
As a preferred embodiment of the present invention, reorientate list information load position detailed process as shown in Figure 2:
In step s 201, recalculate the position of current focus row in GUI list interface, described position is the end value after the record number modulo operation that can show in the position of current focus row in vector lists and GUI list interface.
In the present embodiment, recalculating current focus row before the position in GUI list interface, also comprise following judgement: if the new table data line number (record) obtained from backstage is greater than or equal to the number of data lines current vector lists, then the index TotalListIndex value in current vector lists remains unchanged; If the new table data line number (record) obtained from backstage is less than the number of data lines current vector lists but is greater than or equal to the index TotalListIndex value in current vector lists, then the index TotalListIndex in current vector lists still remains unchanged; If the new table data line number (record) obtained from backstage is less than the number of data lines current vector lists and is less than the index TotalListIndex value in current vector lists, then TotalListIndex equals total line number of up-to-date acquisition list.
According to the index TotalListIndex value in vector lists, obtain the position g_TotalListIndex value of current focus row in vector lists, the position g_ListFocusIndex value of current focus row in GUI list interface is the end value after the record number g_RowNum value that can show in the position g_TotalListIndex value of current focus row in vector lists and GUI list interface carries out modulo operation, that is: g_ListFocusIndex=g_TotalListIndex%g_RowNum.
In step S202, the described position of current focus row in vector lists is deducted the described position of current focus row in GUI list interface, obtains reorientating list information load position.
In the present embodiment, definition begin_index variable, for when GUI list interface refreshes, reads the positional value of record from vector lists g_vectorList.Begin_index variate-value is the end value that the position of current focus row in vector lists deducts the described position of current focus row in GUI list interface and obtain, i.e. begin_index=g_TotalListIndex-g_ListFocusIndex.
In step S105, read list information export GUI list interface to successively from the load position of list information described in vector lists.
In embodiments of the present invention, according to the begin_index value obtained, from vector lists g_vectorList, obtain the list information of storage successively, exported to GUI list interface, the list information after output ensure that the display position of current cursor or focus row is constant.
As another embodiment of the present invention, also comprise the position g_ListFocusIndex value of current focus row in GUI list interface according to obtaining, current cursor or focus row are highlighted.Wherein, the mode highlighted is including, but not limited to highlighting or changing color.
embodiment two:
Fig. 2 shows the realization flow of the tracking GUI list refreshing content method that the embodiment of the present invention two provides, and the present embodiment adds step S302 and step S303 on the basis of the first embodiment.
In step s 302, judge whether current GUI list interface receives list refreshing information.If it is step S304 is performed, if otherwise perform step S303.
In embodiments of the present invention, refresh thread and obtain GUI list refreshing content according to Preset Time from backstage, and be stored to after in described vector lists, to GUI list interface transmission list refreshing information, if GUI list interface receives list refreshing information, then continue to judge whether described GUI list interface exists current cursor or focus row, if GUI list interface does not receive list refreshing information, then resend GUI list refreshing information.
In step S303, resend GUI list refreshing information.
In step s 304, judge whether described GUI list interface exists current cursor or focus row.
In embodiments of the present invention, by adding the judgement whether GUI list interface being received to list refreshing information, the more rationalization that GUI list update becomes can be made, improving the satisfaction of user further.Existing GUI list obtains the method for data, is generally that efficiency is lower by the application programming interface of the corresponding GUI of Background scheduling to refresh Foreground Data, and not easily judges to need to refresh those interfaces.And the embodiment of the present invention is by being timed sending window message by periodic refreshing foreground interface transform, and judge to only have when needing periodic refreshing list interface, just receive and process refreshing information, make the more rationalization that GUI list update becomes, improve the satisfaction of user further.
embodiment three:
Fig. 3 shows the structure of the tracking GUI list refreshing content device that the embodiment of the present invention three provides, and for convenience of explanation, illustrate only the part relevant to the embodiment of the present invention in figure.
This tracking GUI list refreshing content device may be used for the various application system possessing list and refresh, such as notebook computer, ATM cash dispenser, pocket computer (PocketPersonalComputer, PPC), personal digital assistant (PersonalDigitalAssistant, etc. PDA) in, can for being built in the software unit of these application systems, hardware cell or software and hardware combining unit.This tracking GUI list refreshing content device comprises list information storage unit 41, unit 45 and list information output unit 46 are reorientated in refresh message judging unit 42, focus row judging unit 43, the direct output unit 44 of list information, load position, wherein:
List information storage unit 41, for obtaining GUI list information, and is stored to the GUI list information of acquisition in vector lists.
As embodiments of the invention, refreshing thread will obtain GUI list refreshing information according to Preset Time from backstage, and wherein, Preset Time can according to developer's sets itself, and backstage comprises the webserver or system background.The GUI list refreshing information of acquisition is stored in vector lists (or array).Each obtain the list information that will refresh according to Preset Time time, first empty vector lists, and then obtain list refreshing content from the webserver or system background, be stored in vector lists (or array).
Refresh message judging unit 42, for judging whether described GUI list interface receives list refreshing information, goes to the capable judging unit 43 of interface focus to the GUI list receiving list refreshing information, for judging whether described GUI list interface exists focus row.GUI list refreshing information is resend to the GUI list interface not receiving list refreshing information.
If the judged result of the capable judging unit of interface focus 43 is described GUI list interface there is not focus row, then go to the direct output unit 44 of list information, for when there is not focus row in GUI list interface, directly read list information export GUI list interface to from vector lists head.
If the judged result of the capable judging unit of interface focus 43 is described GUI list interface there is focus row, then go to load position and reorientate unit 45, for when there is focus row in GUI list interface, reorientate list information load position, described list information load position be from described vector lists the position of read list information.Obtain behind load position, list information output unit 46 read list information export GUI list interface to successively from the load position of list information described in vector lists.
In embodiments of the present invention, unit 45 focus line position computing module 451 and load position acquisition module 452 are reorientated in load position, wherein:
Focus line position computing module 451, for recalculating the position of current focus row in GUI list interface, described position is the end value after the record number modulo operation that can show in the position of current focus row in vector lists and GUI list interface.
Load position acquisition module 452, for the described position of current focus row in vector lists is deducted the position of described current focus in GUI list interface, obtains reorientating list information load position.
Detailed process is described above, does not repeat them here.
In embodiments of the present invention, list information output unit 46 also comprises and also comprises focus row display module 461, for highlighting described focus row or changing color display.Wherein, the mode highlighted is including, but not limited to highlighting or changing color.
One of ordinary skill in the art will appreciate that, the all or part of step realized in above-described embodiment method is that the hardware that can carry out instruction relevant by program has come, described program can be stored in a computer read/write memory medium, described storage medium, as ROM/RAM, disk, CD etc.
In embodiments of the present invention, by reorientating list information load position to the GUI list interface that there is focus row, according to described load position, read list information export GUI list interface to successively from vector lists, make GUI list content when passive renewal, the display position of current cursor or focus row is constant, ensure that the continuity of user operation, improves operating efficiency and user satisfaction.
The foregoing is only preferred embodiment of the present invention, not in order to limit the present invention, all any amendments done within the spirit and principles in the present invention, equivalent replacement and improvement etc., all should be included within protection scope of the present invention.

Claims (8)

1. follow the tracks of a method for GUI list refreshing content, it is characterized in that, described method comprises the steps:
Obtain GUI list information, and the GUI list information of acquisition is stored in vector lists;
When GUI list interface exists focus row, reorientate list information load position, described list information load position be from described vector lists the position of read list information;
Read list information export GUI list interface to successively from the load position of list information described in vector lists;
Wherein, described when GUI list interface exists focus row, the step of reorientating list information load position is specially:
Recalculate the position of current focus row in GUI list interface, described position is the end value after the record number modulo operation that can show in the position of current focus row in vector lists and GUI list interface;
The described position of current focus row in vector lists is deducted the described position of current focus row in GUI list interface, obtains reorientating list information load position.
2. the method for claim 1, is characterized in that, described method also comprises:
When there is not focus row in GUI list interface, directly read list information export GUI list interface to from vector lists head.
3. the method for claim 1, is characterized in that, at described acquisition GUI list information, and also comprises after the GUI list information of acquisition being stored to the step in vector lists:
Judge whether described GUI list interface receives list refreshing information, if so, then continue to judge whether described GUI list interface exists focus row, if not, then resend GUI list refreshing information.
4. the method for claim 1, is characterized in that, described from the load position of list information described in vector lists read list information export GUI list interface to and also comprise and described focus row highlighted or changes color display successively.
5. follow the tracks of a device for GUI list refreshing content, it is characterized in that, described device comprises:
List information storage unit, for obtaining GUI list information, and is stored in vector lists by the GUI list information of acquisition;
Focus row judging unit, for judging whether GUI list interface exists focus row;
Unit is reorientated in load position, for when GUI list interface exists focus row, reorientates list information load position, described list information load position be from described vector lists the position of read list information; And
List information output unit, for read list information export GUI list interface to successively from the load position of list information described in vector lists;
Described load position is reorientated unit and is also comprised:
Focus line position computing module, for recalculating the position of current focus row in GUI list interface, described position is the end value after the record number modulo operation that can show in the position of current focus row in vector lists and GUI list interface;
Load position acquisition module, for the described position of current focus row in vector lists is deducted the described position of current focus row in GUI list interface, obtains reorientating list information load position.
6. device as claimed in claim 5, it is characterized in that, described device also comprises:
Refresh message judging unit, for judging whether described GUI list interface receives list refreshing information, continue to judge whether described GUI list interface exists focus row to the GUI list interface receiving list refreshing information, GUI list refreshing information is resend to the GUI list interface not receiving list refreshing information;
The direct output unit of list information, for when there is not focus row in GUI list interface, directly read list information export GUI list interface to from vector lists head.
7. device as claimed in claim 5, it is characterized in that, described list display unit also comprises:
Focus row display module, for highlighting described focus row or changing color display.
8. one kind comprises the application system of the tracking GUI list refreshing content device of any one of claim 5 to 7.
CN201010557107.8A 2010-11-24 2010-11-24 A kind of method, device and application system of following the tracks of GUI list refreshing content Active CN102479074B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201010557107.8A CN102479074B (en) 2010-11-24 2010-11-24 A kind of method, device and application system of following the tracks of GUI list refreshing content

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201010557107.8A CN102479074B (en) 2010-11-24 2010-11-24 A kind of method, device and application system of following the tracks of GUI list refreshing content

Publications (2)

Publication Number Publication Date
CN102479074A CN102479074A (en) 2012-05-30
CN102479074B true CN102479074B (en) 2016-01-20

Family

ID=46091729

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201010557107.8A Active CN102479074B (en) 2010-11-24 2010-11-24 A kind of method, device and application system of following the tracks of GUI list refreshing content

Country Status (1)

Country Link
CN (1) CN102479074B (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105828200A (en) * 2016-03-22 2016-08-03 乐视网信息技术(北京)股份有限公司 Program menu updating method and device
CN115061611A (en) * 2021-02-27 2022-09-16 华为技术有限公司 Menu list updating method and electronic equipment
CN117859332A (en) * 2021-08-27 2024-04-09 海信视像科技股份有限公司 Display device and display method thereof
CN113703705A (en) * 2021-08-27 2021-11-26 海信视像科技股份有限公司 Display device and list updating method

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5901289A (en) * 1997-04-11 1999-05-04 Hewlett Packard Company Method and system for real-time displaying of MPEG-2 compressed video data within an electronic test equipment
CN101039283A (en) * 2006-03-14 2007-09-19 腾讯科技(深圳)有限公司 Method for processing e-mail
CN101835013A (en) * 2010-02-05 2010-09-15 四川长虹电器股份有限公司 Method for indexing TV programs

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5901289A (en) * 1997-04-11 1999-05-04 Hewlett Packard Company Method and system for real-time displaying of MPEG-2 compressed video data within an electronic test equipment
CN101039283A (en) * 2006-03-14 2007-09-19 腾讯科技(深圳)有限公司 Method for processing e-mail
CN101835013A (en) * 2010-02-05 2010-09-15 四川长虹电器股份有限公司 Method for indexing TV programs

Also Published As

Publication number Publication date
CN102479074A (en) 2012-05-30

Similar Documents

Publication Publication Date Title
CN103246616B (en) A kind of globally shared buffer replacing method of access frequency within long and short cycle
CN100583067C (en) Method fir accessing information, memory controller and information handling system
CN101005486B (en) Resource access control method and system
CN102479074B (en) A kind of method, device and application system of following the tracks of GUI list refreshing content
CN105493034A (en) Method and device for managing tab window indicating application group including heterogeneous applications
CN103077121A (en) Method and device for managing data in flash memory equipment
CN101694649A (en) Report generating system and method of cluster monitoring
CN109559770A (en) Memory chip with reduced baseline refresh rate with the additional refreshing to weak cells
US20100274976A1 (en) Method of operating data storage device and device thereof
CN202472635U (en) Flash memory wear leveling device
CN100520736C (en) Apparatus and method for managing stacks in virtual machine
CN106875234A (en) Method and device for adjusting reward value and server
CN108647278B (en) File management method and system
CN101957729B (en) Logical block transformation method and method and device compatible with reading and writing of user based on same
CN109791469A (en) Clock speed/voltage device and method of cache memory is set
CN103927203A (en) Computer system and control method
CN101187936B (en) A log data storage method and device
CN103179284B (en) Terminal and terminal power-economizing method
CN112698793A (en) Data storage method and device, machine readable medium and equipment
CN101582015A (en) Control device, external storage device and their control methods
CN104572655B (en) The method, apparatus and system of data processing
CN102929957A (en) Method and device for displaying sequencing result set, and mobile terminal
CN110109884A (en) A kind of file reading, device, equipment and medium
CN103873631A (en) Method and device for displaying call interface of mobile terminal
CN100561588C (en) A kind of method that improves the RAM read-write efficiency

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant