The content of the invention
For defect of the prior art, the invention provides a kind of touch page methods of exhibiting and
System, can avoid the occurrence of while display data and conflict is slided between child control and father's control
Problem.
The present invention proposes a kind of touch page methods of exhibiting, including:
When receiving slip instruction, father's control performs the slip instruction, controls the touch-control
The page makees sliding action corresponding with the slip instruction, and father's control is described to be pre-loaded to
Touch page;
Child control receives displaying instruction, and performs the displaying instruction in touch page displaying
Data to be presented;
Wherein, the displaying instruction generates for system according to the slip instruction.
Preferably, the child control is from the son of the touch page with system according to slip instruction
The child control of the mark association of the subwindow selected in window list;
Wherein, the subwindow list includes:At least one subwindow, the mark of subwindow and
With identifying the data to be presented associated and child control.
Preferably, the subwindow be system based on sliding shoe relative position on the slider bar from
Selected in the subwindow list;
The relative position of the sliding shoe on the slider bar is that system is slided in the touch page
Obtained during action.
Preferably, the displaying instruction carries the information of assignment operation;
Correspondingly, the child control execution displaying instruction is shown in the touch page waits to open up
Registration according to the step of specifically include:
Child control performs assignment operation, and region displaying and institute are repainted in the touch page
State the data to be presented of the mark association of subwindow;
Wherein, it is described to repaint what region generated for system according to the slip instruction.
Preferably, the displaying instruction also carries the child control when father's control performs slip instruction
The relative information slided does not occur with father's control.
Present invention also offers a kind of touch page display systems, including:
Father's control, for when receiving slip instruction, performing the slip instruction, controls institute
State touch page and make sliding action corresponding with the slip instruction, father's control is preloading
To the touch page;
Child control, for receiving displaying instruction, and performs the displaying instruction in touch-control page
Face shows data to be presented;
Wherein, the displaying instruction generates for system according to the slip instruction.
Preferably, the child control is from the son of the touch page with system according to slip instruction
The child control of the mark association of the subwindow selected in window list;
Wherein, the subwindow list includes:At least one subwindow, the mark of subwindow and
With identifying the data to be presented associated and child control.
Preferably, the subwindow be system based on sliding shoe relative position on the slider bar from
Selected in the subwindow list;
The relative position of the sliding shoe on the slider bar is that system is slided in the touch page
Obtained during action.
Preferably, the displaying instruction carries the information of assignment operation;
Correspondingly, the child control, is additionally operable to perform assignment operation, in the touch page
Repaint the data to be presented that region displaying is associated with the mark of the subwindow;
Wherein, it is described to repaint what region generated for system according to the slip instruction.
Preferably, the displaying instruction also carries the child control when father's control performs slip instruction
The relative information slided does not occur with father's control
As shown from the above technical solution, touch page methods of exhibiting proposed by the present invention, based on certainly
Child control is defined, when receiving slip instruction, it is tactile to slide that control performs the slip instruction
Interface is controlled, child control performs displaying instruction and shows data to be presented in the touch page, so that
Child control will not occur slip with father's control and conflict while display data.
Embodiment
, below will knot to make the purpose, technical scheme and advantage of the embodiment of the present invention clearer
The accompanying drawing in the embodiment of the present invention is closed, clear to the technical scheme progress in the embodiment of the present invention,
It is fully described by, it is clear that described embodiment is a part of embodiment of the present invention, without
It is whole embodiments.Based on the embodiment in the present invention, those of ordinary skill in the art are not having
There is the every other embodiment obtained on the premise of making creative work, belong to the present invention
The scope of protection.
A kind of flow signal for touch page methods of exhibiting that Fig. 2 provides for one embodiment of the invention
Figure, reference picture 2, touch page methods of exhibiting comprises the following steps:
210th, when receiving slip instruction, father's control performs the slip instruction, controls institute
State touch page and make sliding action corresponding with the slip instruction, father's control is preloading
To the touch page;
It will be appreciated that this method is preferably used for the terminal of Android system, such as mobile phone,
Flat board etc., but other applicable operating systems are also available;Touch page therein can be with
For mobile phone interface, flat board interface even computer touch interface;Slip instruction can be existed by user
Hand slip information generation in touch page, can also be slided by equipment of the user in touch page
Dynamic information generation;When father's control performs slip instruction, for example, slip instruction is upper sliding instruction
When, father's control controls to slide in touch page, and system is by synchronous automatic drafting touch page,
So that window to be presented is illustrated in the touch page newly drawn.
220th, child control receives displaying instruction, and performs the displaying instruction in touch-control page
Face shows data to be presented;
Wherein, the displaying instruction generates for system according to the slip instruction.
It should be noted that because customized child control of the invention does not have sliding function, because
This will not occur to slide conflict between the two when father's control performs slip instruction.
In summary, the present invention is based on self-defined child control, when receiving slip instruction, father
Control performs the slip instruction with sliding touch interface, and child control performs displaying instruction described
Touch page shows data to be presented, so that child control is while display data, will not be with father
Control occurs to slide conflict.
In the present embodiment, displaying instruction is sent to child control by selectivity by system, specific step
It is rapid as follows:
Child control be with system according to slip instruction from the subwindow list of the touch page
The child control of the mark association of the subwindow of selection;Wherein, the subwindow list includes:Extremely
A few subwindow, the mark of subwindow and the data to be presented associated with mark and child control.
It should be noted that after completing to set up subwindow list, system will be to each sub- window
Mouth one child control of association;In addition, the sliding action that system is made according to touch page is painted automatically
Touch page processed, and according to the touch page of drafting from the subwindow list of the touch page
Select subwindow and the child control with sub-window;
It will be appreciated that slip instruction for upper 1 unit of cunning apart from when, system may be needed
Show 1 new subwindow, and the subwindow that the subwindow is shown with current touch page
There is certain relation, by taking ordinal relation as an example, current touch page shows the 1-4 subwindow,
So new window is the 5th window, therefore system needs to select in subwindow list
5th window.
In the present embodiment, the displaying instruction carries the information of assignment operation;
Correspondingly, step 220 is specifically included:Child control performs assignment operation, in the touch-control
The region that repaints of the page shows the data to be presented associated with the mark of the subwindow;
Wherein, it is described to repaint what region generated for system according to the slip instruction.
It should be noted that system after corresponding subwindow is selected by the sub- window to selecting
The child control of mouthful association carries out assignment processing, will be to be presented with the sub-window selected
Data display is on subwindow;
So that the subwindow selected is the 5th subwindow as an example, looked into according to the mark of the 5th subwindow
The child control of the 5th subwindow is found out, and displaying instruction is sent to the child control of the 5th subwindow,
So that the child control of the 5th subwindow performs assignment operation, it will be treated with the 5th sub-window
Display data is illustrated in the touch page newly drawn.
In the present embodiment, the displaying instruction also carries the son when father's control performs slip instruction
The relative information slided does not occur with father's control for control;
It should be noted that the present invention is based on self-defined child control, when receiving slip instruction,
Father's control performs the slip instruction with sliding touch interface, child control perform displaying instruction with
The touch page shows data to be presented, without relative slide occurs between father's control.
A kind of flow for touch page methods of exhibiting that Fig. 3 provides for another embodiment of the present invention is shown
It is intended to, reference picture 3, the touch page methods of exhibiting comprises the following steps:
310th, system is initiated to obtain when detecting the touch page startup to server end
The request of data to be presented;
It should be noted that when touch page starts, by the synchronous father's control that loads to touch-control page
In face;In addition, server end is corresponding with the touch page of opening, such as:Detect and beat
The touch page opened is phoenix news pages, and server end is the server of phoenix news;
320th, at least one field name and corresponding field content of the server end feedback are received
Data;
330th, at least one described field name is traveled through, and is generated and at least one described field name
The subwindow of respective amount;
It should be noted that each data herein has the field name of an identification, with
Facilitate traversal step;
340th, to each one field name of sub-window and the data of corresponding field content, build
Vertical subwindow list.
It will be appreciated that after traversal field name, system knows that how many data etc. is to be presented,
And establishment and the quantity identical subwindow of data to be presented, and will be incited somebody to action according to the mark of subwindow
Field name is associated with mark, to reach the purpose by subwindow and data correlation to be presented.
In a feasible embodiment, subwindow of the invention is based on sliding shoe for system and slided
What the relative position on bar was selected from the subwindow list;The sliding shoe is on the slider bar
Relative position obtained for system when the touch page makees sliding action.
It will be appreciated that touch page is when making sliding action, sliding shoe will be same with touch page
Step is slided;In touch page slide downward, sliding shoe is slided on the slider bar by synchronous, by
This system can get the slip information of touch page, and select subwindow based on slip information.
Sub- window is selected in a kind of touch page methods of exhibiting that Fig. 4 provides for one embodiment of the invention
The schematic flow sheet of mouth step, reference picture 4, selection subwindow step is specifically following:
410th, slip instruction is being detected, and during father's control execution slip instruction, obtained
First position of the sliding shoe of touch page in slider bar;
It should be noted that before step 410 is carried out, in addition it is also necessary to load slider bar child control
Into touch page;
It will be appreciated that first position herein will be slided when will perform slip instruction for father's control
Position of the block in slider bar, slider bar therein can be that horizontal slider can also be vertical
Slider bar;
420th, according to the first position and the slip instruction, the sliding shoe is obtained in cunning
The second place in dynamic bar;
It should be noted that the operation information that system is received according to touch page, based on first
Put, calculate the second place for obtaining sliding shoe in slider bar;
It is understood that first position and the second place are preferably relative position, can be with cunning
The percentage of dynamic bar is represented;
430th, between the subwindow for defining relative position and selection of the sliding shoe in slider bar
Corresponding relation;
It should be noted that defined herein corresponding relation is preferably, in some relative position model
Enclose the interior child control to corresponding subwindow and carry out assignment;For example, currently showing on the tactile page
What is shown is the 1-4 subwindow, now, if sliding shoe is more than 50% running lengthwise in slider bar
When, then show the 5th subwindow;;If sliding shoe is in slider bar by 50% running lengthwise to 80%
During length, then the 5-7 subwindow is shown;
It will be appreciated that herein between relative position and subwindow of the sliding shoe in slider bar
The number for the subwindow that corresponding relation can also be shown based on every page of touch page;
440th, subwindow is selected from subwindow list according to the second place;
It should be noted that step 440 is specifically included according to the second place and step 430
In corresponding relation subwindow corresponding with the second place is selected from subwindow list.
450th, gone out according to the identifier lookup of the subwindow to be presented with the sub-window
Data and child control;
460th, the data to be presented with sub-window are assigned to and associated with the mark of subwindow
Child control.
It should be noted that based on the data to be presented and son that have in above-mentioned subwindow list
Incidence relation between control and the mark of subwindow, the sub-window for finding out and selecting
Data to be presented, and data to be presented are assigned to the control object with sub-window, with
Complete child windows displaying.
The design principle to the present invention is described in detail below:
The present invention uses a self-defined View (window) object, and the View (window) is right
As itself will not be slided while list display data is realized again, so as to avoid and father's control
Slip conflict.
Therefore, this customized View is can not to inherit itself to carry the control conduct slided up and down
Parent.Typically all directly inherit View objects and either inherit LinearLayout objects.
It will be appreciated that a data set is exactly presented in by ListView main function in the form of a list
In touch page, thus the topmost functions of customized View of the invention be exactly handle one to
Fixed data set, and it is presented in touch page with same manner;Because LinearLayout
Itself it is a linear layout, it can realize the exhibition method of list, but it can only locate
A data is managed, one huge data set of correspondence is just beyond one's ability to help;Data set herein is
The data fed back for server end.
Therefore customized View of the invention is usually to inherit LinearLayout layouts, is being made by oneself
All data sets are traveled through in the View of justice, are sequentially added this self-defined View's
In control, following code:
For (int i=0;i<count;i++){
View v=adapter.getView (i, null, null);
Final int tmp=i;
Final Object obj=adapter.getItem (i);
v.setOnClickListener(new View.OnClickListener(){
@Override
public void onClick(View v){
if(onItemClickListener!=null)
onItemClickListener.onItemClicked(v,obj,tmp);}}});
addView(v,i);}
, when ListView is substituted using customized View for explanation above
Realized successively according to following steps:
1st, a new Class file is created, LinearLayout layouts are inherited;
2nd, BaseAdapter objects are increased in this customized View, for managing data set,
This general object is all to be instantiated and assignment operation in the outside of this View as needed, so
This self-defined View is passed to again afterwards to use;
3rd, all data sets, data correspondence are traveled through successively in this customized View
In a view object, the data to be showed in this data are assigned to the control object in view,
Shown for final touch page;The click behaviour to view can be increased when traveling through assignment herein
The processing of work, so has click event to each data being presented on mobile phone, facilitates journey
Sequence person's subsequent operation;
4th, after customized View is carried out, it is possible to used in code, first in cloth
Will be with complete bag name path when being used on office interface;Then this is instantiated in code self-defined
View objects;Subsequently just can be fully according to this customized View operation
ListView carries out assignment and operated like that.So both solved and slided rushing for control with parent
It is prominent to realize again with the bandwagon effect of list type.
For method embodiment, in order to be briefly described, therefore it is all expressed as a series of dynamic
Combine, but those skilled in the art should know, embodiment of the present invention is not by being retouched
The limitation for the sequence of movement stated, because according to embodiment of the present invention, some steps can be used
Other orders are carried out simultaneously.Secondly, those skilled in the art should also know, specification
Described in embodiment belong to preferred embodiment, involved action is not necessarily
Necessary to embodiment of the present invention.
A kind of structure for touch page display systems that Fig. 5 provides for another embodiment of the present invention is shown
It is intended to, reference picture 5, the system includes:
Father's control 510, for when receiving slip instruction, performing the slip instruction, control
Make the touch page and make sliding action corresponding with the slip instruction, father's control is pre-
It is loaded into the touch page;
Child control 520, is touched for receiving displaying instruction, and performing the displaying instruction described
Control page presentation data to be presented;
The present invention is based on self-defined child control, and when receiving slip instruction, father's control 510 is held
The row slip instruction is with sliding touch interface, and child control 520 performs displaying instruction and touched described
Page presentation data to be presented are controlled, so that child control 520 is while display data, Bu Huiyu
Father's control 510 occurs to slide conflict.
In a feasible embodiment, child control 520 is from described with system according to slip instruction
The child control 520 of the mark association of the subwindow selected in the subwindow list of touch page;
Wherein, the subwindow list includes:At least one subwindow, the mark of subwindow and
With identifying the data to be presented associated and child control 520.
In a feasible embodiment, the subwindow is that system is based on sliding shoe on the slider bar
Relative position select from the subwindow list;
The relative position of the sliding shoe on the slider bar is that system is slided in the touch page
Obtained during action.
In a feasible embodiment, the displaying instruction carries the information of assignment operation;
Correspondingly, the child control 520, is additionally operable to perform assignment operation, in touch-control page
The region that repaints in face shows the data to be presented associated with the mark of the subwindow;
Wherein, it is described to repaint what region generated for system according to the slip instruction.
In a feasible embodiment, the displaying instruction is also carried performs slip in father's control
The information of relative slip does not occur with father's control 510 for child control during instruction.
For device embodiments, because it is substantially similar to method embodiment, so
What is described is fairly simple, and related part illustrates referring to the part of method embodiment.
It should be noted that in all parts of the device of the present invention, to be realized according to it
Function and logical partitioning has been carried out to part therein, still, the present invention is not only restricted to this, can
To be repartitioned or be combined to all parts as needed.
The all parts embodiment of the present invention can realize with hardware, or with one or
The software module run on multiple processors is realized, or is realized with combinations thereof.The present apparatus
In, PC is by realizing internet to equipment or device remote control, accurately control device
Or device is the step of each operate.The present invention is also implemented as described here for performing
Method some or all equipment or program of device (for example, computer program and
Computer program product).Computer-readable Jie can be stored in by being achieved in that the program of the present invention
In matter, and the file or document that program is produced produces data report and cpk with can be statistical
Report etc., can carry out batch testing and count to power amplifier.It should be noted that above-mentioned embodiment
The present invention will be described rather than limits the invention, and those skilled in the art exist
Replacement embodiment can be designed without departing from the scope of the appended claims.In right
It is required that in, any reference symbol between bracket should not be configured to the limit to claim
System.Word "comprising" does not exclude the presence of element or step not listed in the claims.It is located at
Word "a" or "an" before element does not exclude the presence of multiple such elements.This hair
It is bright can be by means of including the hardware of some different elements and by means of properly programmed meter
Calculation machine is realized.In if the unit claim of equipment for drying is listed, if in these devices
Dry can be embodied by same hardware branch.Word first, second, Yi Ji
Third use does not indicate that any order.These words can be construed to title.
Although being described in conjunction with the accompanying embodiments of the present invention, those skilled in the art can
To make various modifications and variations without departing from the spirit and scope of the present invention, so
Modifications and variations each fall within and be defined by the appended claims within the scope of.