Summary of the invention
Fundamental purpose of the present invention is to provide a kind of method for exhibiting data for table data displaying control and device, to solve the problem of prior art list data display control bundle data low-response under big data quantity.
To achieve these goals, according to an aspect of the present invention, a kind of method for exhibiting data for table data displaying control is provided.
This method for exhibiting data being used for table data displaying control comprises: obtain data to be presented, and wherein, data to be presented are the data needing to show in table data displaying control; Load data to be presented; Judge whether the data volume to be presented loaded reaches preset data amount threshold value; If judge that the data volume to be presented loaded reaches preset data amount threshold value, the data to be presented loaded and table data displaying control are bound; The data to be presented loaded are added in table data displaying control and show.
Further, after judging whether the data volume to be presented loaded reaches preset data amount threshold value, this method for exhibiting data being used for table data displaying control also comprises: if judge that the data volume to be presented loaded does not reach preset data amount threshold value, continue to load data to be presented, wherein, continuing to load in the process of data to be presented, often loading data to be presented, then performing the judgement once whether data volume to be presented loaded being reached to preset data amount threshold value.
Further, after the data to be presented loaded being added in table data displaying control and showing, this method for exhibiting data being used for table data displaying control also comprises: judge data to be presented whether loaded; If judge that Data import to be presented is complete, in table data displaying control, show data to be presented; If judge the non-loaded of data to be presented, continue to load the data do not loaded in data to be presented.
Further, obtain data to be presented to comprise: obtain data volume to be presented, wherein, data volume to be presented is the data volume of data to be presented, judge whether loaded comprises data to be presented: judge whether the data volume to be presented loaded in table data displaying control reaches data volume to be presented, wherein, if judge that the data volume to be presented loaded in table data displaying control reaches data volume to be presented, determine that Data import to be presented is complete, if the data volume to be presented loaded in table data displaying control does not reach data volume to be presented, determine the non-loaded of data to be presented.
Further, the data to be presented loaded and table data displaying control are carried out binding to comprise: the mapping relations obtaining data to be presented and table data displaying control; According to mapping relations by Data import to be presented in table data displaying control.
To achieve these goals, according to a further aspect in the invention, a kind of data display device for table data displaying control is provided.
This data display device being used for table data displaying control comprises: acquisition module, and for obtaining data to be presented, wherein, data to be presented are the data needing to show in table data displaying control; First load-on module, for loading data to be presented; First judge module, for judging whether the data volume to be presented loaded reaches preset data amount threshold value; The data to be presented loaded and table data displaying control, during for reaching preset data amount threshold value when the data volume to be presented judging to have loaded, are bound by binding module; First display module, shows for the data to be presented loaded being added in table data displaying control.
Further, this data display device being used for table data displaying control also comprises: the second load-on module, during for not reaching preset data amount threshold value when the data volume to be presented judging to have loaded, continue to load data to be presented, wherein, continuing to load in the process of data to be presented, often loading data to be presented, then performing the judgement once whether data volume to be presented loaded being reached to preset data amount threshold value.
Further, this data display device being used for table data displaying control also comprises: the second judge module, for judging data to be presented whether loaded; Second display module, for when judging that Data import to be presented is complete, shows data to be presented in table data displaying control; 3rd load-on module, for when judging the non-loaded of data to be presented, continues to load the data do not loaded in data to be presented.
Further, acquisition module also comprises the first acquisition submodule, for obtaining data volume to be presented, wherein, data volume to be presented is the data volume of data to be presented, second judge module comprises: first judges submodule, for judging whether the data volume to be presented loaded in table data displaying control reaches data volume to be presented, wherein, if judge that the data volume to be presented loaded in table data displaying control reaches data volume to be presented, determine that Data import to be presented is complete, if the data volume to be presented loaded in table data displaying control does not reach data volume to be presented, determine the non-loaded of data to be presented.
Further, binding module comprises: second obtains submodule, for obtaining the mapping relations of data to be presented and table data displaying control; First load submodule, for according to mapping relations by Data import to be presented in table data displaying control.
By the present invention, adopt and obtain data to be presented, wherein, data to be presented are the data needing to show in table data displaying control; Load data to be presented; Judge whether the data volume to be presented loaded reaches preset data amount threshold value; If judge that the data volume to be presented loaded reaches preset data amount threshold value, the data to be presented loaded and table data displaying control are bound; The data to be presented loaded are added in table data displaying control and show, solve the problem of prior art list data display control bundle data low-response under big data quantity.This invention is by setting preset data amount threshold value, often load data to be presented, perform the judgement once whether data volume to be presented loaded being exceeded to preset data amount threshold value, if judge that the data volume to be presented loaded exceedes preset data amount threshold value, then the data that this has loaded are added in table data displaying control and show, the data do not loaded in data to be presented perform same operation, until all whole loadeds of data to be presented, the Data import time avoiding list data display control under big data quantity to cause data binding is reached long by this invention, the interface response time is long, the effect of the problems such as table data displaying control is seemingly-dead.
Embodiment
It should be noted that, when not conflicting, the embodiment in the application and the feature in embodiment can combine mutually.Below with reference to the accompanying drawings and describe the present invention in detail in conjunction with the embodiments.
The application's scheme is understood better in order to make those skilled in the art person, below in conjunction with the accompanying drawing in the embodiment of the present application, technical scheme in the embodiment of the present application is clearly and completely described, obviously, described embodiment is only the embodiment of the application's part, instead of whole embodiments.Based on the embodiment in the application, those of ordinary skill in the art are not making the every other embodiment obtained under creative work prerequisite, all should belong to the scope of the application's protection.
It should be noted that, term " first ", " second " etc. in the instructions of the application and claims and above-mentioned accompanying drawing are for distinguishing similar object, and need not be used for describing specific order or precedence.Should be appreciated that the data used like this can be exchanged, in the appropriate case so that the embodiment of the application described herein.In addition, term " comprises " and " having " and their any distortion, intention is to cover not exclusive comprising, such as, contain those steps or unit that the process of series of steps or unit, method, system, product or equipment is not necessarily limited to clearly list, but can comprise clearly do not list or for intrinsic other step of these processes, method, product or equipment or unit.
The present invention aims to provide a kind of method for exhibiting data for table data displaying control and device.
Fig. 1 is the process flow diagram of the method for exhibiting data for table data displaying control according to the embodiment of the present invention.As shown in Figure 1, this method for exhibiting data being used for table data displaying control comprises following step S101 to step S105:
Step S101, obtains data to be presented.
Along with class of business and portfolio ground constantly increase, need to carry out real-time and non real-time statistical study to mass data.Such as, video playback daily record, status information etc. on the line of advertisement.When carrying out statistical study to mass data, need data to show in the form of a list.Table data displaying control can realize mass data to be illustrated in graphical interface of user (Graphical User Interface with the form of data list, referred to as GUI), wherein, GUI is the computer operation user interface shown to graphically.Data be presented in the form of a list on GUI, being convenient to user can obtain data message intuitively.This embodiment be need the data of showing in table data displaying control for the data to be presented in the method for exhibiting data of table data displaying control, these data to be presented can be able to be video playback daily records according to the demand of user's statistical study, status information etc. on advertisement line.
Preferably, the method for exhibiting data for table data displaying control of this embodiment obtains data to be presented and also comprises: obtain data volume to be presented, and wherein, data volume to be presented is the data volume of data to be presented.Obtaining data volume object to be presented in this embodiment is show to judge whether data to be presented are all loaded in table data displaying control, is conducive to the accuracy improving data to be presented.
Step S102, loads data to be presented.
Preferably, after acquisition data to be presented, the method for exhibiting data for table data displaying control of this embodiment adopts the form of data one by one to hope in table data displaying control and loads data to be presented.The form of data is adopted one by one to load data to be presented, often load data to be presented, perform the judgement once whether data volume loaded being exceeded to preset data amount threshold value, can ensure when preset data amount threshold value is very little like this, such as 2 or 1 etc., all can in time the data loaded reaching preset data amount threshold portion be loaded in table data displaying control, be conducive to rapidly, show the data to be presented loaded in time, user is facilitated directly to carry out relevant treatment to the data to be presented loaded in table data displaying control.
Step S103, judges whether the data volume to be presented loaded reaches preset data amount threshold value.
This embodiment preferably adopts one by one the form of data by Data import to be presented in table data displaying control, often loads data to be presented, performs the judgement once whether data volume to be presented loaded being reached to preset data amount threshold value.It is in order in time by exceeding the Data import to be presented of preset data amount threshold portion in table data displaying control that this embodiment judges whether the data volume to be presented loaded reaches preset data amount threshold value object, is convenient to user directly to the process of the data to be presented loaded.Solve the problem that table data displaying control that disposable loading mass data causes loads the long and low-response of data time simultaneously.
Preferably, after judging whether the data volume to be presented loaded reaches preset data amount threshold value, the method for exhibiting data for table data displaying control of this embodiment also comprises: if judge that the data volume to be presented loaded does not reach preset data amount threshold value, continue to load data to be presented, wherein, continuing to load in the process of data to be presented, often load data to be presented, then perform the judgement once whether data volume to be presented loaded being reached to preset data amount threshold value.Such as, preset data amount threshold value is 3, when loading Article 1 data to be presented, judge that the data volume to be presented loaded is 1, be less than preset data amount threshold value 3, then proceed to load Article 2 data to be presented, after Article 2 Data import to be presented to table data displaying control, the data volume to be presented loaded becomes 2, is still less than preset data amount threshold value 3, then proceed to load data to be presented.
The data to be presented loaded and table data displaying control, if judge that the data volume to be presented loaded reaches preset data amount threshold value, are bound by step S104.
After judging whether the data volume to be presented loaded reaches preset data amount threshold value, if judge that the data volume to be presented loaded reaches preset data amount threshold value, such as, preset data amount threshold value is 3, when loading Article 1 data to be presented, judge that the data volume to be presented loaded is 1, be less than preset data amount threshold value 3, then proceed to load Article 2 data to be presented, after Article 2 Data import to be presented to table data displaying control, the data volume to be presented loaded becomes 2, still preset data amount threshold value 3 is less than, then proceed to load Article 3 data to be presented, after in Article 3 Data import to be presented to table data displaying control, the data volume to be presented loaded becomes 3, reach preset data amount threshold value, then these three Data import to be presented are shown in table data displaying control.When continuation loading Article 4 data to be presented, the data volume to be presented loaded is reset to 1, then carries out and above-mentioned identical deterministic process.When being loaded into Article 6 data to be presented, the data volume to be presented loaded reaches preset data amount threshold value 3, then Article 4 shown in table data displaying control to Article 6 Data import to be presented.
Preferably, the data to be presented loaded and table data displaying control are carried out binding and are comprised by the method for exhibiting data for table data displaying control of this embodiment: the mapping relations obtaining data to be presented and table data displaying control; According to mapping relations by Data import to be presented in table data displaying control.Data to be presented and table data displaying control are bound by the method for exhibiting data for table data displaying control of this embodiment, the form of the form of data to be presented and table data displaying control is consistent, ensure that data to be presented displaying contents complete in table data displaying control, accurately.
The data to be presented loaded are added in table data displaying control and show by step S105.
Data import to be presented preferably shows by the method for exhibiting data for table data displaying control of this embodiment in table data displaying control, and this is a kind of optimal way of this embodiment.The method for exhibiting data for table data displaying control of this embodiment is applicable to the display of data to be presented in the list displaying control of any graphical interface of user.The display interface of table data displaying control can set according to the demand of user's statistical data analysis, such as, if Fig. 2 is according to the table data displaying control interface schematic diagram of the embodiment of the present invention.
Preferably, after the data to be presented loaded being added in table data displaying control and showing, the method for exhibiting data for table data displaying control of this embodiment also comprises: judge data to be presented whether loaded; If judge that Data import to be presented is complete, in table data displaying control, show data to be presented; If judge the non-loaded of data to be presented, continue to load the data do not loaded in data to be presented.
Particularly, judge whether loaded comprises data to be presented: judge whether the data volume to be presented loaded in table data displaying control reaches data volume to be presented, wherein, if judge that the data volume to be presented loaded in table data displaying control reaches data volume to be presented, determine that Data import to be presented is complete, if the data volume to be presented loaded in table data displaying control does not reach data volume to be presented, determine the non-loaded of data to be presented.
The method for exhibiting data for table data displaying control of this embodiment of this embodiment is by judging whether loaded ensure that the integrality that data to be presented show in table data displaying control and accuracy to data to be presented.
The method for exhibiting data for table data displaying control of this embodiment adopts and obtains data to be presented, and wherein, data to be presented are the data needing to show in table data displaying control; Load data to be presented; Judge whether the data volume to be presented loaded reaches preset data amount threshold value; If judge that the data volume to be presented loaded reaches preset data amount threshold value, the data to be presented loaded and table data displaying control are bound; The data to be presented loaded are added in table data displaying control and show, solve the problem of prior art list data display control bundle data low-response under big data quantity, solve the problem that the seemingly-dead and scroll bar of table data displaying control cannot work simultaneously, and then reach the effect improving Consumer's Experience.
From above description, can find out, the method for exhibiting data for table data displaying control of the embodiment of the present invention is by adopting setting preset data amount threshold value, in the loading procedure of data to be presented, often load data to be presented, perform the judgement once whether data volume to be presented loaded being exceeded to preset data amount threshold value, if judge that the data volume to be presented loaded exceedes preset data amount threshold value, the data then this loaded and table data displaying control are bound, the data this loaded are added in table data displaying control and are shown.Same operation is performed for the data do not loaded in data to be presented, until all whole loadeds of data to be presented, the problem of prior art list data display control bundle data low-response under big data quantity is solved by this invention, reach the Data import time avoiding list data display control under big data quantity to cause data binding long, the effect of the problems such as the interface response time is long, and table data displaying control is seemingly-dead.
It should be noted that, can perform in the computer system of such as one group of computer executable instructions in the step shown in the process flow diagram of accompanying drawing, and, although show logical order in flow charts, but in some cases, can be different from the step shown or described by order execution herein.
The embodiment of the present invention additionally provides a kind of data display device for table data displaying control.It should be noted that, this data display device being used for table data displaying control may be used for the method for exhibiting data for table data displaying control performing the embodiment of the present invention.
Fig. 2 is the schematic diagram of the data display device for table data displaying control according to the embodiment of the present invention.As shown in Figure 2, this data display device being used for table data displaying control comprises: acquisition module 10, the first load-on module 20, first judge module 30, binding module 40 and the first display module 50.
Acquisition module 10, for obtaining data to be presented, wherein, data to be presented are the data needing to show in table data displaying control.
Particularly, acquisition module 10 also comprises the first acquisition submodule, and for obtaining data volume to be presented, wherein, data volume to be presented is the data volume of data to be presented.
First load-on module 20, for loading data to be presented.
First judge module 30, for judging whether the data volume to be presented loaded reaches preset data amount threshold value.
The data to be presented loaded and table data displaying control, during for reaching preset data amount threshold value when the data volume to be presented judging to have loaded, are bound by binding module 40.
Particularly, binding module 40 comprises: second obtains submodule, for obtaining the mapping relations of data to be presented and table data displaying control; First load submodule, for according to mapping relations by Data import to be presented in table data displaying control.
Preferably, the data display device for table data displaying control of this embodiment also comprises: the second load-on module, during for not reaching preset data amount threshold value when the data volume to be presented judging to have loaded, continue to load data to be presented, wherein, continuing to load in the process of data to be presented, often loading data to be presented, then performing the judgement once whether data volume to be presented loaded being reached to preset data amount threshold value.
First display module 50, shows for the data to be presented loaded being added in table data displaying control.
Preferably, the data display device for table data displaying control of this embodiment also comprises: the second judge module, for judging data to be presented whether loaded; Second display module, for when judging that Data import to be presented is complete, shows data to be presented in table data displaying control; 3rd load-on module, for when judging the non-loaded of data to be presented, continues to load the data do not loaded in data to be presented.
Particularly, second judge module comprises: first judges submodule, for judging whether the data volume to be presented loaded in table data displaying control reaches data volume to be presented, wherein, if judge that the data volume to be presented loaded in table data displaying control reaches data volume to be presented, determine that Data import to be presented is complete, if the data volume to be presented loaded in table data displaying control does not reach data volume to be presented, determine the non-loaded of data to be presented.
The data display device for table data displaying control of this embodiment comprises acquisition module 10, the first load-on module 20, first judge module 30, binding module 40 and the first display module 50.The problem of prior art list data display control bundle data low-response under big data quantity is solved by the data display device for table data displaying control of this embodiment, reach the Data import time avoiding list data display control under big data quantity to cause data binding long, the effect of the problems such as the interface response time is long, and table data displaying control is seemingly-dead.
Obviously, those skilled in the art should be understood that, above-mentioned of the present invention each module or each step can realize with general calculation element, they can concentrate on single calculation element, or be distributed on network that multiple calculation element forms, alternatively, they can realize with the executable program code of calculation element, thus, they can be stored and be performed by calculation element in the storage device, or they are made into each integrated circuit modules respectively, or the multiple module in them or step are made into single integrated circuit module to realize.Like this, the present invention is not restricted to any specific hardware and software combination.
The foregoing is only the preferred embodiments of the present invention, be not limited to the present invention, for a person skilled in the art, the present invention can have various modifications and variations.Within the spirit and principles in the present invention all, any amendment done, equivalent replacement, improvement etc., all should be included within protection scope of the present invention.