Embodiment
Below in conjunction with the drawings and specific embodiments, technical scheme of the present invention is made to further more detailed description.Obviously, described embodiment is only a part of embodiment of the present invention, rather than whole embodiment.Embodiment based in the present invention, the every other embodiment that those of ordinary skills obtain under the prerequisite of not making creative work, should belong to the scope of protection of the invention.
Shown in Fig. 1, it is the Organization Chart of electronic installation of the present invention.Described electronic installation 1 refers to the devices such as mobile phone, personal digital assistant (Personal Digital Assistant, PDA), tablet electronic device.
Described electronic installation 1 comprises screen 10, table data updating system 20 and internal memory 30.Described screen 10 for display interface 3000(as the interface 3000 of Fig. 5 to Fig. 9), described screen 10 may be, but not limited to,, capacitive touch screen or resistive touch screen.Described interface 3000 is the form demonstration data with list.As shown in Figures 5 to 9, the list in interface 3000 comprises one page or multipage data, and every page shows four data (user can arrange every page of number that shows data, and for example, every page shows 20 data).Described interface 3000 can move up and down, and user can drag interface 3000 and moves up and down on screen 10, and for example, as shown in Figure 6, user drags interface 3000 by finger or felt pen and moves down on screen 10.Described interface 3000 also comprises that a list 3100(is as shown in Fig. 6 to 8) and list tail 3200(is as shown in Figure 9).
Described table data updating system 20 is for refresh data (as photo, written historical materials etc.) in the list at interface 3000, and this table data updating system 20 will be described in detail in Fig. 2 to Fig. 4.
Described internal memory 30 is for storing Various types of data, as, the data in the list at interface 3000.Described internal memory 30 can be the internal memory of this electronic installation 1 own, it can also be external memory card, as SM card (Smart Media Card, smart media card), SD card (Secure Digital Card, safe digital card), CF card (Compact Flash Card, standard flash memory card), mmc card (Multi Media Card, multimedia card), MS card (Memory Stick, memory stick), XD card (Extreme Digital Card, extreme digital card), TF card (Trans Flash Card) etc.
As shown in Figure 2, be the functional block diagram of table data updating system of the present invention preferred embodiment.Described table data updating system 20 comprises and draws Refresh Data module 200 and drop-down data load-on module 210.
While drawing Refresh Data module 200 for first unlatching interface 3000 on described, load data in the list at interface 3000.For example, shown in Fig. 5, when user clicks screen 10 and enters this interface 3000, load data in the list at interface 3000.It should be noted that, when user opens interface 3000 for the first time, if in the situation that electronic equipment 1 has network to connect, draw on described Refresh Data module 200 from network (as, Internet net), to load data in the list at interface 3000.When user opens interface 3000 for the first time, if in the situation that electronic equipment 1 does not have network to connect, draw on described Refresh Data module 200 to load the existing data of preserving in internal memory 10 in the list at interface 3000.
On described, draw Refresh Data module 200 to judge interface 3000 whether drop-down (being whether interface 3000 is dragged and move down by user).
When interface 3000 is drop-down, draw on described Refresh Data module 200 to judge whether the list 3100 at interface 3000 all launches.Particularly, the list at interface 3000 3100 is hidden in the list top at interface 3000, and when sliding into the list top at interface 3000, and user is when dragging interface 3000 and moving down, unfolded hiding list 3100.On described, draw Refresh Data module 200 to judge list 3100 whether all launches according to the drop-down distance in interface 3100.For example, when drop-down distance surpasses or equals certain distance (, 1 centimetre), show list 3100 completely.When if drop-down distance is less than this certain distance, part is shown list 3100.Described list 3100 also shows different informations according to drop-down distance, as shown in Figure 6, when drop-down distance does not surpass certain distance, a list 3100 display reminding information " drop-down refreshing; latest update: 2013/9/20 22:35:24 PM ", when drop-down distance surpasses certain distance, a list 3100 display reminding information " are unclamped and are refreshed, latest update: 2013/9/20 22:35:24 PM ".
When the list at interface 3000 3100 all launches, draw on described Refresh Data module 200 request networks more new data in the list at interface.It should be noted that, when the success of refresh list data, represent from the up-to-date data of Network Capture, generally, up-to-date data are added in the first page of the page 3000, now old data can be moved backward.Give an example, one page new data has newly been added in list, and new data can be registered as first page, and first page data before will be moved into second page.By that analogy, all data all can be moved backward.Particularly, as shown in Figure 9, the data after refreshing are placed on first page, and the data of first page are moved into second page before.
On arriving after the list at interface 3000, be described, Refresh Data draw Refresh Data module 200 also for hidden columns gauge outfit 3000.
When the list at interface 3000 3100 does not all launch and when user does not no longer drag interface 3000, list 3100 bounce-back gone back, and recover the original list in interface 3000 and show.Particularly, as shown in Figure 6, in list 3100 situation that do not have to show, if user for example no longer drags interface 3000(, from screen 10, unclamp finger or the felt pen that drags interface 3000), list 3100 bounce-back to be gone back, the list that returns to Fig. 5 is shown.
Described drop-down data load-on module 210, for when opening interface 3000 for the first time, loads data in the list at interface 3000, and slides into the list bottom at interface 3000.For example, shown in Fig. 5, when user clicks screen 10 and enters this interface 3000, load data in the list at interface 3000.It should be noted that, when user opens interface 3000 for the first time, if in the situation that electronic equipment 1 has network to connect, interface 3000 will from network (as, Internet net) in, load data in the list at interface 3000, when user opens interface 3000 for the first time, if in the situation that electronic equipment 1 does not have network to connect, interface 3000 will load the existing data of preserving in internal memory 10.
Described drop-down data load-on module 210 is for judging whether the list at interface 3000 has next page data.Particularly, as shown in Figure 9, judge in interface 3000 whether to also have next page data.
While whether having next page data in the list at interface 3000, the list tail 3200 of described drop-down data load-on module 210 display interfaces.Described list tail 3200 is for pointing out the list of user interface 3000 to also have next page data.As shown in Figure 9, on described list tail 3200, also have information " more ", show next page data in addition.
When user click list tail 3200 or on for example, while drawing list tail 3200 certain distances (, 1 centimetre), load next page data in list, next page data is spliced to after first page data, now, the list length at interface 3000 is elongated, shows multipage data simultaneously.Particularly, the data in Fig. 5 are spliced to data (old six in Fig. 9) in Fig. 9 below.
Instantly a page data is spliced to after first page data, and described drop-down data load-on module 210 is hidden list tail 3200.
While there is no next page data in the list at interface 3000, described drop-down data load-on module 210 is also hidden list tail 3200.
As shown in Figure 3, be the process flow diagram of the preferred embodiment of Data Update in table data method for refreshing of the present invention.
Step S10, when first unlatching interface 3000, draws Refresh Data module 200 to load data in the list at interface 3000 on described.For example, shown in Fig. 5, when user clicks screen 10 and enters this interface 3000, load data in the list at interface 3000.It should be noted that, when user opens interface 3000 for the first time, if in the situation that electronic equipment 1 has network to connect, interface 3000 will from network (as, Internet net) in, load data in the list at interface 3000, when user opens interface 3000 for the first time, if in the situation that electronic equipment 1 does not have network to connect, interface 3000 will load the existing data of preserving in internal memory 10.
Step S12, draws Refresh Data module 200 to judge that whether interface 3000 is drop-down on described.When interface 3000 does not have when drop-down, repeated execution of steps S12.When interface 3000 is drop-down, flow process enters step S14.
Step S14, draws on described Refresh Data module 200 to judge whether the list 3100 at interface 3000 all launches.Particularly, the list at interface 3000 3100 is hidden in the list top at interface 3000, and when sliding into the list top at interface 3000, and user is when dragging interface 3000 and moving down, unfolded hiding list 3100.On described, draw Refresh Data module 200 to judge list 3100 whether all launches according to the drop-down distance in interface 3100.For example, when drop-down distance is certain distance (, 1 centimetre), show list 3100 completely.When if drop-down distance is less than this certain distance, part is shown list 3100.When described list 3100 also shows different informations according to drop-down distance, as shown in Figure 6, when drop-down distance does not surpass certain distance, a list 3100 display reminding information " drop-down refreshing; latest update: 2013/9/20 22:35:24 PM ", when drop-down distance surpasses certain distance, a list 3100 display reminding information " are unclamped and are refreshed, latest update: 2013/9/20 22:35:24 PM ".When the list at interface 3000 3100 all launches, flow process enters step S16.Otherwise when list 3100 part at interface 3000 are launched, flow process enters step S18.
Step S16, draw on described Refresh Data module 200 request networks more new data in the list at interface.It should be noted that, when the success of refresh list data, represent from the up-to-date data of Network Capture, generally, up-to-date data are added in the first page of the page 3000, now old data can be moved backward.Give an example, for example one page new data has newly been added in list, and new data can be registered as first page, and first page data before will be moved into second page.By that analogy, all data all can be moved backward.Particularly, as shown in Figure 9, the data after refreshing are placed on first page, and the data of first page are moved into second page before.
Step S18, draws Refresh Data module 200 also for hidden columns gauge outfit 3000 on described, and reduces list and show, flow process is returned to S12 afterwards.
Particularly, on arriving after the list at interface 3000, be described, Refresh Data draw Refresh Data module 200 also for hidden columns gauge outfit 3000.As shown in Figure 9, hidden columns gauge outfit 3100 in interface 3000.
When the list at interface 3000 3100 does not all launch and when user does not no longer drag interface 3000, list 3100 bounce-back gone back, and recover the original list in interface 3000 and show.Particularly, as shown in Figure 6, in list 3100 situation that do not have to show, if user no longer drags interface 3000, list 3100 bounce-back are gone back, return to shown in Fig. 5.
It should be noted that, above-mentioned process flow diagram 4 is one of them embodiment just, and in other embodiments, the execution step that can also circulate S14 to S16, constantly to load up-to-date data in the list at interface 3000.
As shown in Figure 4, be the process flow diagram of the preferred embodiment that in table data method for refreshing of the present invention, data load.
Step S20, when first unlatching interface 3000, described drop-down data load-on module 210 loads data in the list at interface 3000, and slides into the list bottom at interface 3000.For example, shown in Fig. 5, when user clicks screen 10 and enters this interface 3000, load data in the list at interface 3000.It should be noted that, when user opens interface 3000 for the first time, if in the situation that electronic equipment 1 has network to connect, interface 3000 will from network (as, Internet net) in, load data in the list at interface 3000, when user opens interface 3000 for the first time, if in the situation that electronic equipment 1 does not have network to connect, interface 3000 will load the existing data of preserving in internal memory 10.
Step S22, described drop-down data load-on module 210 judges in the list at interface 3000 whether have next page data.While having next page data in the list at interface 3000, flow process enters step S24.While there is no next page data in the list at interface 3000, flow process enters step S28, and described drop-down data load-on module 210 is hidden list tail, and reduces the list at interface 3000 and show.
Step S24, the list tail 3200 of described drop-down data load-on module 210 display interfaces.Described list tail 3200 is for pointing out the list of user interface 3000 to also have next page data.As shown in Figure 9, on described list tail 3200, also have information " more ", show next page data in addition.
Step S26, when user click list tail 3200 or on for example, while drawing list tail 3200 certain distances (, 1 centimetre), load next page data in list, next page data is spliced to after first page data, now, the list length at interface 3000 is elongated.Particularly, the data in Fig. 5 are spliced to data (old six in Fig. 9) in Fig. 9 below.
Step S28, described drop-down data load-on module 210 is hidden list tail 3200, afterwards process ends.
Particularly, a page data is spliced to after first page data instantly, and described drop-down data load-on module 210 is hidden list tail 3200.
While there is no next page data in the list at interface 3000, described drop-down data load-on module 210 is also hidden list tail 3200.
It should be noted that, above-mentioned process flow diagram 4 is one of them embodiment just, in other embodiments, can repeated execution of steps S20 to S26, constantly the data of loading are spliced to list bottom, until list bottom does not have next page data.
It should be noted last that, the above, it is only preferred embodiment of the present invention, not the present invention is done to any pro forma restriction, although the present invention discloses as above with preferred embodiment, yet not in order to limit the present invention, any those skilled in the art, do not departing within the scope of technical solution of the present invention, when can utilizing the technology contents of above-mentioned announcement to make a little change or being modified to the equivalent embodiment of equivalent variations, in every case be not depart from technical solution of the present invention content, any simple modification of above embodiment being done according to technical spirit of the present invention, equivalent variations and modification, all still belong in the scope of technical solution of the present invention.