Summary of the invention
Fundamental purpose of the present invention is to provide a kind of data Replica disposal route for software interface and device, to solve the inefficient problem of data copy operation.
To achieve these goals, according to an aspect of the present invention, a kind of data Replica disposal route for software interface is provided.
Data Replica disposal route for software interface according to the present invention comprises: receive the selection instruction to data area, and data area is for software interface needing the region residing for the data that copy; By the duplicate event in selection instruction trigger data region, wherein, duplicate event is for performing data copy operation; And store the data that described duplicate event copies.
Further, before receiving the selection instruction to data area, method also comprises: receive the switching-state information that the data Replica function of software interface is corresponding; And judge the state that switching-state information is corresponding; Wherein, if state corresponding to switching-state information is for opening, then receiving the selection instruction to data area, if state corresponding to switching-state information is for closing, then not receiving the selection instruction to data area.
Further, selection instruction comprises click commands, above-mentioned data placement is in unique html tag, duplicate event is bundled on the html tag at above-mentioned data place, and the duplicate event being triggered described data area by above-mentioned selection instruction is comprised: the html tag identifier obtaining above-mentioned data place; Above-mentioned data are obtained based on html tag identifier; And calls copy order performs replicate run to above-mentioned data.
Further, selection instruction comprises data and chooses instruction, and data choose instruction for choosing the data described software interface needing copy, and are comprised: obtain the data that above-mentioned data choose instruction to choose by the duplicate event in above-mentioned selection instruction trigger data region; And calls copy order performs replicate run to above-mentioned data.
Further, if selection instruction comprises the first selection instruction and the second selection instruction that receive successively, duplicate event comprises the first duplicate event and the second duplicate event, and method comprises: the first selection instruction triggers the first duplicate event; Store the event that the first duplicate event copies; Second selection instruction triggers the second duplicate event; And the data that storage the second duplicate event copies, wherein, the event that data cover first duplicate event that the second duplicate event copies copies.
To achieve these goals, according to a further aspect in the invention, a kind of data Replica treating apparatus for software interface is provided.
Data Replica treating apparatus for software interface according to the present invention comprises: receiver module, and for receiving the selection instruction to data area, data area is for software interface needing the region residing for the data that copy; Trigger module, for the duplicate event by selection instruction trigger data region, wherein, duplicate event is for performing data copy operation; And memory module, for the data that storage replication event copies.
Further, before receiving the selection instruction to data area, said apparatus also comprises: the first receiving element, the switching-state information that the data Replica function for receiving software interface is corresponding; Judging unit, for judging the state that switching-state information is corresponding, wherein, if the state that switching-state information is corresponding is unlatching, then receiving the selection instruction to data area, if state corresponding to switching-state information is for closing, then not receiving the selection instruction to data area.
Further, selection instruction comprises click commands, and above-mentioned data placement is in unique html tag, and duplicate event is bundled on the html tag at above-mentioned data place, above-mentioned trigger module comprises: the first acquiring unit, for obtaining the html tag identifier at above-mentioned data place; Second acquisition unit, for obtaining above-mentioned data based on html tag identifier; And first copied cells, for calls copy order, replicate run is performed to above-mentioned data.
Further, selection instruction comprises data and chooses instruction, and data choose instruction for choosing the data described software interface needing copy, and above-mentioned trigger module comprises: the 3rd acquiring unit, for obtaining the described data that described data choose instruction to choose; And second copied cells, for calls copy order, replicate run is performed to above-mentioned data.
Further, if selection instruction comprises the first selection instruction and the second selection instruction that receive successively, duplicate event comprises the first duplicate event and the second duplicate event, and device comprises: the first trigger element, triggers the first duplicate event for the first selection instruction; First storage unit, for storing the event that the first duplicate event copies; Second trigger element, triggers the second duplicate event for the second selection instruction; And second storage unit, for storing the data that the second duplicate event copies, wherein, the event that data cover first duplicate event that the second duplicate event copies copies.
Pass through the present invention, adopting is encapsulated in duplicate event by replicate run, trigger duplicate event by selection instruction carry out data Replica thus realize the one-key duplication of data, solve the inefficient problem of data copy operation, and then reach the effect of efficient replication data.
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.
Embodiments provide a kind of data Replica disposal route for software interface, Fig. 1 is the data Replica process flow figure for software interface according to the embodiment of the present invention.
As shown in Figure 1, the method comprises following step S102 to step S106:
Step S102: receive the selection instruction to data area, data area is for software interface needing the region residing for the data that copy.
Above-mentioned selection instruction is for selecting data software interface needing copy, and this selection instruction can be the action of mouse clicks according to region, also can be the action that mouse chooses data area.
Step S104: by the duplicate event in selection instruction trigger data region, wherein, duplicate event is for performing data copy operation.
By the operation realizing copy function being encapsulated in a duplicate event, user by selecting instruction just can trigger this duplicate event, realize the one-key duplication of data, compared to user in prior art by choosing the data that will copy, then right button of clicking the mouse is selected copy function or on keyboard, pressed shortcut Ctrl+C, and to realize copying of data more simple and efficient.
Step S106: store the data that described duplicate event copies.
Complete after data must copy, need the data copied to be stored in the position that a user can conveniently call, such as clipbook, thus user directly can carry out paste operation to the data copied.
The embodiment of the present invention, by the copy function of data being encapsulated in a duplicate event, triggering by the selection instruction receiving outside input the one-key duplication that this duplicate event realizes data, solves the inefficient problem of data copy operation in prior art.
User on software interface in order to intuitive and convenient check data time; often habitually can perform the click of mouse or utilize mouse to choose the operations such as data; now; system cannot judge whether user wants to perform the still just general click action of replicate run, easily causes the erroneous judgement of replicate run.
Preferably, in order to avoid the erroneous judgement of data copy operation, before receiving the selection instruction to data area, the method also comprises: receive the switching-state information that the data Replica function of software interface is corresponding; And judge the state that switching-state information is corresponding; Wherein, if state corresponding to switching-state information is for opening, then receiving the selection instruction to data area, if state corresponding to switching-state information is for closing, then not receiving the selection instruction to data area.
By arranging switch on above-mentioned software interface, when this switch is in opening, just receive the selection instruction of data area, otherwise, by the click of mouse or utilize mouse to choose the operation such as data to be considered as general mouse action, do not carry out corresponding data Replica process, the action such as habitual mouse click due to user can be avoided like this to cause the erroneous judgement of data copy operation.
Preferably, in order to user operation is more efficient and convenient, selection instruction comprises click commands, above-mentioned data placement is in unique html tag, duplicate event is bundled on the html tag at above-mentioned data place, is comprised: the html tag identifier obtaining above-mentioned data place by the duplicate event in above-mentioned selection instruction trigger data region; Above-mentioned data are obtained based on html tag identifier; And calls copy order performs replicate run to above-mentioned data.
The data that above-mentioned needs frequently copy can be distributed in continuous print region on software interface, and user, by clicking any one position in this region, the duplicate event in trigger data region can realize replicate run.The data that above-mentioned needs copy also can be distributed in multiple regions of diverse location on software interface, now, as long as any one position in any one region that user clicks the plurality of region, can realize copying of all data in the plurality of region, convenient to operation.
Before adopting click commands trigger data duplicate event, also need the data placement copied by needs in html tag, Fig. 2 is the schematic diagram triggering duplicate event according to the click commands of the embodiment of the present invention, and as shown in Figure 2, the step that click commands triggering duplicate event carries out data Replica is as follows:
Step S202: user click data, these data are the data that user needs to copy.
After user click data, namely receive the selection instruction to data area.
Step S204: the instruction triggers click event of click data.
This click event is data Replica event, and namely this data Replica event performs step S206 to S210, completes the replicate run of whole above-mentioned data.
Step S206: obtain data according to data place html tag ID.
Owing to will need the data placement copied in html tag in advance, and the ID of each html tag be unique, therefore just can be obtained the data needing to copy by html tag.
Step S208: calling system copy command, copies the data that step S206 obtains.
Realize copying of data by calling system copy command, and the data copied are stored in the position be user-friendly to, such as clipbook.
Step S210: copy successfully the prompting of laggard row.
By exporting information after completing data Replica, for telling that user has completed the replicate run of text, user is pointed out to carry out next step operation.
Step S212: user copies successful data to previous step and directly carries out paste operation, and whole process terminates.
Preferably, in order to make data copy operation more flexible, selection instruction comprises data and chooses instruction, data choose instruction for choosing the data described software interface needing copy, and are comprised: obtain the data that above-mentioned data choose instruction to choose by the duplicate event in above-mentioned selection instruction trigger data region; And calls copy order performs replicate run to above-mentioned data.
In actual conditions, user can change to the demand data on software interface, at this moment only by the demand will the data binding that copies being needed in duplicate event to realize data Replica be just difficult to meet user in advance.By user choose data on software interface choose instruction triggers duplicate event to realize selected data one-key to copy and can solve the inflexible problem of above-mentioned replicate run, user can choose the data of optional position on software interface to copy according to actual needs.Fig. 3 is the schematic diagram choosing instruction triggers duplicate event according to the data of the embodiment of the present invention, and as shown in Figure 3, it is as follows that data choose instruction triggers duplicate event to carry out the step of data Replica:
Step S302: user chooses data.
User starts data choose operation by pressing mouse, until terminate to choose operation when unclamping mouse, data selected are in this process all data to be modified, and user can choose the data of optional position on software interface as required.
Step S304: choose the instruction triggers of data to choose event, this chooses event to be data Replica event.
Trigger data duplicate event is determined whether by detecting the action of unclamping mouse, when the action of unclamping mouse being detected, then trigger data duplicate event, otherwise do not carry out any operation.
Step S306: obtain the data that user chooses; This step is that the data that calling system internal command performs choose operation, for preparing for the system copies of rapid S308.
Step S308: calling system copy command, copies, with above-mentioned steps S208 the data that step S306 obtains.
Step S310: copy successfully the prompting of laggard row, for telling that user has completed the replicate run of text, points out user to carry out next step operation, with above-mentioned steps S210.
Step S312: user copies successful data to step S310 and directly carries out paste operation, and whole reproduction process terminates.
Preferably, if selection instruction comprises the first selection instruction and the second selection instruction that receive successively, duplicate event comprises the first duplicate event and the second duplicate event, and method comprises: the first selection instruction triggers the first duplicate event; Store the event that the first duplicate event copies; Second selection instruction triggers the second duplicate event; And the data that storage the second duplicate event copies, wherein, the event that data cover first duplicate event that the second duplicate event copies copies.
When selection instruction is multiple, each selection instruction triggers duplicate event and copies data, if the replication region that this multiple instruction is selected is different, the then corresponding difference of data that copies of duplicate event, there will be exception when now user pastes the data copied, do not know the data of specifically pasting which replication region.Therefore, the sequencing copying data according to selection instruction triggering duplicate event is determined finally for the data of user's stickup, after the data that first copy of the data cover that copies, like this, finally in clipbook, only store the data finally copied, user can only paste the data finally copied, and thus can avoid occurring extremely during user's pasting data.
As can be seen from the above description, present invention achieves following technique effect:
The invention provides a kind of data Replica disposal route for software interface, the method is by being encapsulated in duplicate event by replicate run, trigger duplicate event by selection instruction carry out data Replica thus realize the one-key duplication of data, solve the inefficient problem of data copy operation, and then reach the effect of efficient replication data.
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.
According to still another embodiment of the invention, a kind of data Replica treating apparatus for software interface is provided.
As shown in Figure 4, this data Replica treating apparatus being used for software interface comprises: receiver module 10, trigger module 20 and memory module 30.
Receiver module 10, for receiving the selection instruction to data area, this data area is for software interface needing the region residing for the data that copy;
Above-mentioned selection instruction is for selecting data software interface needing copy, and this selection instruction can be the action of mouse clicks according to region, also can be the action that mouse chooses data area.
Trigger module 20, for being triggered the duplicate event of described data area by described selection instruction, wherein, this duplicate event is for performing data copy operation;
By the operation realizing copy function being encapsulated in a duplicate event, user by selecting instruction just can trigger this duplicate event, realize the one-key duplication of data, compared to user in prior art by choosing the data that will copy, then right button of clicking the mouse is selected copy function or on keyboard, pressed shortcut Ctrl+C, and to realize copying of data more simple and efficient.
Memory module 30, for storing the data that above-mentioned duplicate event copies.
Complete after data must copy, need the data copied to be stored in the position that a user can conveniently call, such as clipbook, thus user directly can carry out paste operation to the data copied.
The data Replica treating apparatus for software interface that the embodiment of the present invention provides is by being encapsulated in a duplicate event by the copy function of data, the selection instruction of outside input is received by receiver module 10, trigger module 20 triggers based on the selection instruction that outside inputs the one-key duplication that this duplicate event realizes data, and directly used for user by the data that memory module 30 storage replication completes, solve the inefficient problem of data copy operation in prior art.
User on software interface in order to intuitive and convenient check data time; often habitually can perform the click of mouse or utilize mouse to choose the operations such as data; now, system cannot judge whether user wants to perform the still just general click action of replicate run.
Preferably, in order to avoid the erroneous judgement of data copy operation, before receiving the selection instruction to data area, as shown in Figure 5, device also comprises: the first receiving element 40 and judging unit 50.
First receiving element 40, the switching-state information that the data Replica function for receiving software interface is corresponding;
Judging unit 50, for judging the state that switching-state information is corresponding, wherein, if the state that switching-state information is corresponding is unlatching, then receiving the selection instruction to above-mentioned data area, if state corresponding to switching-state information is for closing, then not receiving the selection instruction to above-mentioned data area.
By arranging a switch on above-mentioned software interface, when this switch is in opening, just receive the selection instruction of data area, otherwise, by the click of mouse or utilize mouse to choose the operation such as data to be considered as general mouse action, do not carry out corresponding data Replica process, the action such as habitual mouse click due to user can be avoided like this to cause the erroneous judgement of data copy operation.
Preferably, in order to user operation is more efficient and convenient, above-mentioned selection instruction comprises click commands, need the data placement copied in unique html tag, duplicate event is bundled on the html tag at the data place that above-mentioned needs copy, as shown in Figure 6, described trigger module 20 comprises: the first acquiring unit 201, for obtaining the html tag identifier at above-mentioned data place; Second acquisition unit 202, for obtaining described data based on html tag identifier; And first copied cells 203, for calls copy order, replicate run is performed to above-mentioned data.
The data that above-mentioned needs frequently copy can be distributed in continuous print region on software interface, user is by clicking any one position in this region, the duplicate event in trigger data region can realize replicate run, the data that above-mentioned needs copy also can be distributed in multiple regions of diverse location on software interface, now, as long as any one position in any one region that user clicks the plurality of region, copying of all data in the plurality of region can be realized, convenient to operation.
Preferably, in order to make data copy operation more flexible, above-mentioned selection instruction comprises data and chooses instruction, these data choose instruction for choosing data software interface needing copy, as shown in Figure 7, trigger module 20 comprises: the 3rd acquiring unit 204, for obtaining the data that above-mentioned data choose instruction to choose; And second copied cells 205, for calls copy order, replicate run is performed to data.
In actual conditions, user can change to the demand data on software interface, at this moment only by the demand will the data binding that copies being needed in duplicate event to realize data Replica be just difficult to meet user in advance.By user choose data on software interface choose instruction triggers duplicate event to realize selected data one-key to copy and can solve the inflexible problem of above-mentioned replicate run, user can choose the data of optional position on software interface to copy according to actual needs.
Preferably, if selection instruction comprises the first selection instruction and the second selection instruction that receive successively, duplicate event comprises the first duplicate event and the second duplicate event, and device comprises: the first trigger element, triggers the first duplicate event for the first selection instruction; First storage unit, for storing the event that the first duplicate event copies; Second trigger element, triggers the second duplicate event for the second selection instruction; And second storage unit, for storing the data that the second duplicate event copies, wherein, the event that data cover first duplicate event that the second duplicate event copies copies.
When selection instruction is multiple, each selection instruction triggers duplicate event and copies data, if the replication region that this multiple instruction is selected is different, the then corresponding difference of data that copies of duplicate event, there will be exception when now user pastes the data copied, do not know the data of specifically pasting which replication region.Therefore, the sequencing copying data according to selection instruction triggering duplicate event is determined finally for the data of user's stickup, after the data that first copy of the data cover that copies, like this, finally in clipbook, only store the data finally copied, user can only paste the data finally copied, and thus can avoid occurring extremely during user's pasting data.
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.