Invention content
It is a primary object of the present invention to provide a kind of data duplication method and device for software interface, with solution
The problem of certainly data copy operation efficiency is low.
To achieve these goals, according to an aspect of the invention, there is provided a kind of data for software interface are answered
Processing method processed.
It is according to the present invention to include for the data duplication method of software interface:Reception refers to the selection of data area
It enables, data area is needs the region residing for the data replicated on software interface;Pass through answering for selection instruction trigger data region
Event processed, wherein, duplicate event is used to perform data copy operation;And the data that the storage duplicate event replicates.
Further, before receiving to the selection instruction of data area, method further includes:Receive the data of software interface
The corresponding switching-state information of copy function;And judge the corresponding state of switching-state information;Wherein, if on off state is believed
Corresponding state is ceased to open, then receives the selection instruction to data area, if the corresponding state of switching-state information is closes
It closes, does not then receive the selection instruction to data area.
Further, selection instruction includes click commands, and above-mentioned data are placed in unique html tag, duplicate event
It is bundled on the html tag where above-mentioned data, passes through the duplicate event packet that above-mentioned selection instruction triggers the data area
It includes:Obtain the html tag identifier where above-mentioned data;Above-mentioned data are obtained based on html tag identifier;And it calls multiple
System order, which performs above-mentioned data, replicates operation.
Further, selection instruction includes data selection instruction, and data selection instruction is used to choose the software interface
The data replicated are needed, are included by the duplicate event in above-mentioned selection instruction trigger data region:It obtains above-mentioned data and chooses finger
Enable the data chosen;And calls copy order performs above-mentioned data and replicates operation.
Further, if selection instruction includes the first choice received successively instruction and the second selection instruction, thing is replicated
Part includes the first duplicate event and the second duplicate event, method include:The first duplicate event of first choice instruction triggers;Storage the
The event that one duplicate event replicates;Second selection instruction triggers the second duplicate event;And storage the second duplicate event duplication
Data, wherein, the event that the first duplicate event of data cover that the second duplicate event replicates replicates.
To achieve these goals, according to another aspect of the present invention, a kind of data for software interface are provided to answer
Processing unit processed.
It is according to the present invention to include for the data replication processes device of software interface:Receiving module, for receiving logarithm
According to the selection instruction in region, data area is needs the region residing for the data replicated on software interface;Trigger module, for leading to
The duplicate event in selection instruction trigger data region is crossed, wherein, duplicate event is used to perform data copy operation;And storage mould
Block, the data replicated for storage replication event.
Further, before receiving to the selection instruction of data area, above device further includes:First receiving unit,
For receiving the corresponding switching-state information of data copy function of software interface;Judging unit, for judging that on off state is believed
Corresponding state is ceased, wherein, if the corresponding state of switching-state information is opens, reception refers to the selection of data area
It enables, if the corresponding state of switching-state information does not receive the selection instruction to data area to close.
Further, selection instruction includes click commands, and above-mentioned data are placed in unique html tag, duplicate event
It is bundled on the html tag where above-mentioned data, above-mentioned trigger module includes:First acquisition unit, for obtaining above-mentioned data
The html tag identifier at place;Second acquisition unit obtains above-mentioned data for being based on html tag identifier;And first
Copied cells perform above-mentioned data for calls copy order and replicate operation.
Further, selection instruction includes data selection instruction, and data selection instruction is used to choose the software interface
The data replicated are needed, above-mentioned trigger module includes:Third acquiring unit, for obtaining the institute that the data selection instruction is chosen
State data;And second copied cells, above-mentioned data are performed for calls copy order and replicate operation.
Further, if selection instruction includes the first choice received successively instruction and the second selection instruction, thing is replicated
Part includes the first duplicate event and the second duplicate event, device include:First trigger element, for first choice instruction triggers
One duplicate event;First storage unit, for storing the event that the first duplicate event replicates;Second trigger element, for second
Selection instruction triggers the second duplicate event;And second storage unit, for storing the data that the second duplicate event replicates,
In, the event of the first duplicate event of data cover duplication of the second duplicate event duplication.
By the present invention, be encapsulated in duplicate event using that will replicate operation, by selection instruction triggering duplicate event into
Row data replicate the one-key duplication so as to fulfill data, solve the problems, such as that data copy operation efficiency is low, and then has reached height
Imitate the effect of replicate data.
Specific embodiment
It should be noted that in the absence of conflict, the feature in embodiment and embodiment in the application can phase
Mutually combination.The present invention will be described in detail below with reference to the accompanying drawings and in conjunction with the embodiments.
An embodiment of the present invention provides a kind of data duplication methods for software interface, and Fig. 1 is according to the present invention
The data duplication method flow chart for software interface of embodiment.
As shown in Figure 1, this method includes steps S102 to step S106:
Step S102:The selection instruction to data area is received, data area is needs the data replicated on software interface
Residing region.
For above-mentioned selection instruction for selecting to need the data replicated on software interface, the selection instruction can be that mouse is clicked
The action of data area or mouse choose the action of data area.
Step S104:By the duplicate event in selection instruction trigger data region, wherein, duplicate event is used to perform data
Replicate operation.
By the way that the operation for realizing copy function is encapsulated in a duplicate event, user can be touched by selection instruction
The duplicate event is sent out, realizes the one-key duplication of data, middle user is by choosing the data to be replicated, then point compared with the prior art
It hits right mouse button selection copy function or shortcut key Ctrl+C is pressed on keyboard and realize that the duplication of data is more simple and efficient.
Step S106:Store the data that the duplicate event replicates.
It completes after data must replicate, the position of calling can be facilitated by needing the data of duplication being stored in a user,
Such as clipbook, so as to which user can directly carry out paste operation to the data replicated.
The embodiment of the present invention is inputted by the way that the copy function of data is encapsulated in a duplicate event by receiving outside
Selection instruction come trigger the duplicate event realize data one-key duplication, solve data copy operation efficiency in the prior art
The problem of low.
User, in order to which intuitive and convenient is when checking data, is often habitually performing the click of mouse on software interface
Or the operations such as data are chosen using mouse, at this point, system can not judge whether user wishes to carry out duplication operation or be
General click action easily causes the erroneous judgement for replicating operation.
Preferably, in order to avoid the erroneous judgement of data copy operation, before receiving to the selection instruction of data area, the party
Method further includes:Receive the corresponding switching-state information of data copy function of software interface;And judge switching-state information pair
The state answered;Wherein, if the corresponding state of switching-state information receives the selection instruction to data area, such as to open
The corresponding state of fruit switching-state information does not receive the selection instruction to data area then to close.
By setting switch on above-mentioned software interface, when the switch is in opening, data area is just received
Otherwise selection instruction, chooses the operations such as data to be considered as general mouse action by the click of mouse or using mouse, without
Corresponding data replication processes can cause data copy operation to avoid due to actions such as the habitual mouse of user clicks in this way
Erroneous judgement.
Preferably, in order to which user's operation is more efficient and convenient, selection instruction includes click commands, and above-mentioned data are placed on only
In one html tag, duplicate event is bundled on the html tag where above-mentioned data, is passed through above-mentioned selection instruction and is triggered number
Include according to the duplicate event in region:Obtain the html tag identifier where above-mentioned data;It is obtained based on html tag identifier
Above-mentioned data;And calls copy order performs above-mentioned data and replicates operation.
The data that above-mentioned needs frequently replicate can be distributed in a continuous region, user on software interface and pass through click
Any one position in the region, can trigger data region duplicate event realize replicate operation.What above-mentioned needs replicated
Data can also be distributed on software interface in the multiple regions of different location, as long as at this point, user clicks multiple region
Any one position in any one region can realize the duplication of all data in multiple region, easy to operate fast
It is prompt.
Before click commands trigger data duplicate event, it is also necessary to which the data for needing to replicate are placed on html tag
In, Fig. 2 is the schematic diagram of click commands triggering duplicate event according to embodiments of the present invention, as shown in Fig. 2, click commands trigger
It is as follows that duplicate event carries out the step of data duplication:
Step S202:User click data, the data are that user needs the data replicated.
After user click data, that is, receive the selection instruction to data area.
Step S204:The instruction triggers of click data click event.
The click event is data duplicate event, which performs step S206 to S210, is completed whole
The duplication operation of a above-mentioned data.
Step S206:Html tag ID obtains data according to where data.
Since the data for needing to replicate are placed in html tag in advance, and the ID of each html tag is unique, therefore
It is obtained with needing the data replicated by html tag.
Step S208:Calling system copy command replicates the step S206 data obtained.
The duplication of data is realized by calling system copy command, and the data for replicating completion is stored in, user is facilitated to make
Position, such as clipbook.
Step S210:It is prompted after replicating successfully.
By exporting prompt message after completing data and replicating, for the duplication behaviour that user is told to have been completed text
Make, user is prompted to carry out the operation of next step.
Step S212:User replicates successful data to previous step and directly carries out paste operation, and whole process terminates.
Preferably, in order to enable data copy operation is more flexible, selection instruction includes data selection instruction, and data are chosen
Instruction passes through the duplication thing in above-mentioned selection instruction trigger data region for choosing the data for needing to replicate on the software interface
Part includes:Obtain the data that above-mentioned data selection instruction is chosen;And calls copy order performs above-mentioned data and replicates operation.
In actual conditions, user can change to the demand data on software interface, at this moment only by advance need to
The data to be replicated, which are bundled in duplicate event, realizes that data duplication is just difficult to meet the needs of users.Software is chosen by user
Data chooses instruction triggers duplicate event to realize that selected data one-key duplication can solve above-mentioned duplication operation on interface
Inflexible problem, user can choose the data of any position on software interface to be replicated according to actual needs.Fig. 3 is root
According to the schematic diagram of the data selection instruction triggering duplicate event of the embodiment of the present invention, as shown in figure 3, data selection instruction triggering is multiple
It is as follows that event processed carries out the step of data duplication:
Step S302:User chooses data.
User starts data by pressing mouse and chooses operation, until terminating to choose operation when unclamping mouse, in this mistake
The data being selected in journey are all data to be modified, and user can choose the number of any position on software interface as needed
According to.
Step S304:The instruction triggers of data is chosen to choose event, it is data duplicate event that this, which chooses event,.
The action of mouse is unclamped by detection to determine whether trigger data duplicate event, unclamps the dynamic of mouse when detecting
When making, then trigger data duplicate event, otherwise without any operation.
Step S306:Obtain the data that user chooses;The step chooses behaviour for the data that calling system internal command performs
Make, for preparing for the system copies of rapid S308.
Step S308:Calling system copy command replicates the step S306 data obtained, same to above-mentioned steps
S208。
Step S310:It is prompted after replicating successfully, for the duplication operation that user is told to have been completed text, is prompted
User carries out the operation of next step, with above-mentioned steps S210.
Step S312:User replicates successful data to step S310 and directly carries out paste operation, entire reproduction process knot
Beam.
Preferably, if selection instruction includes the first choice received successively instruction and the second selection instruction, duplicate event
Including the first duplicate event and the second duplicate event, method includes:The first duplicate event of first choice instruction triggers;Storage first
The event that duplicate event replicates;Second selection instruction triggers the second duplicate event;And the number that the second duplicate event of storage replicates
According to, wherein, the event that the first duplicate event of data cover that the second duplicate event replicates replicates.
When selection instruction is multiple, each selection instruction triggers duplicate event replicate data, if this multiple instruction
The replication region of selection is different, then the data that duplicate event replicates are accordingly different, and user pastes the data of duplication at this time
When will appear exception, it is not known that the data of which replication region specifically pasted.Therefore, it is answered according to selection instruction triggering duplicate event
The sequencing of data processed determines the data pasted eventually for user, data that the data cover replicated afterwards first replicates, this
Sample finally only stores the data finally replicated in clipbook, and user can only paste the data finally replicated, thus energy
It enough avoids being abnormal during user's pasting data.
It can be seen from the above description that the present invention realizes following technique effect:
The present invention provides a kind of data duplication method for software interface, this method will be by that will replicate operation envelope
In duplicate event, duplicate event is triggered by selection instruction and carries out one-key duplication of the data duplication so as to fulfill data, solution
The problem of data copy operation efficiency of having determined is low, and then achieved the effect that efficient replication data.
It should be noted that step shown in the flowchart of the accompanying drawings can be in such as a group of computer-executable instructions
It is performed in computer system, although also, show logical order in flow charts, it in some cases, can be with not
The sequence being same as herein performs shown or described step.
According to still another embodiment of the invention, a kind of data replication processes device for software interface is provided.
As shown in figure 4, the data replication processes device for being used for software interface includes:Receiving module 10, trigger module 20
With memory module 30.
Receiving module 10, for receiving the selection instruction to data area, the data area is multiple to be needed on software interface
Region residing for the data of system;
For above-mentioned selection instruction for selecting to need the data replicated on software interface, the selection instruction can be that mouse is clicked
The action of data area or mouse choose the action of data area.
Trigger module 20, for triggering the duplicate event of the data area by the selection instruction, wherein, the duplication
Event is used to perform data copy operation;
By the way that the operation for realizing copy function is encapsulated in a duplicate event, user can be touched by selection instruction
The duplicate event is sent out, realizes the one-key duplication of data, middle user is by choosing the data to be replicated, then point compared with the prior art
It hits right mouse button selection copy function or shortcut key Ctrl+C is pressed on keyboard and realize that the duplication of data is more simple and efficient.
Memory module 30, for storing the data that above-mentioned duplicate event replicates.
It completes after data must replicate, the position of calling can be facilitated by needing the data of duplication being stored in a user,
Such as clipbook, so as to which user can directly carry out paste operation to the data replicated.
Data replication processes device provided in an embodiment of the present invention for software interface is by by the copy function of data
It is encapsulated in a duplicate event, the selection instruction of outside input is received by receiving module 10, trigger module 20 is based on outside
The selection instruction of input triggers the duplicate event and realizes the one-key duplication of data, and passes through the completion of 30 storage replication of memory module
Data directly use for user, solve the problems, such as that data copy operation efficiency is low in the prior art.
User, in order to which intuitive and convenient is when checking data, is often habitually performing the click of mouse on software interface
Or the operations such as data are chosen using mouse, at this point, system can not judge whether user wishes to carry out duplication operation or be
General click action.
Preferably, in order to avoid the erroneous judgement of data copy operation, before receiving to the selection instruction of data area, such as scheme
Shown in 5, device further includes:First receiving unit 40 and judging unit 50.
First receiving unit 40, for receiving the corresponding switching-state information of data copy function of software interface;
Judging unit 50, for judging the corresponding state of switching-state information, wherein, if switching-state information is corresponding
State then receives the selection instruction to above-mentioned data area to open, if the corresponding state of switching-state information is closing,
The selection instruction to above-mentioned data area is not received.
By setting a switch, when the switch is in opening, just receive data field on above-mentioned software interface
Otherwise the selection instruction in domain, chooses the operations such as data to be considered as general mouse action, no by the click of mouse or using mouse
Corresponding data replication processes are carried out, data can be caused to replicate to avoid due to actions such as the habitual mouse of user clicks in this way
The erroneous judgement of operation.
Preferably, in order to which user's operation is more efficient and convenient, above-mentioned selection instruction includes click commands, needs the number replicated
According to being placed in unique html tag, duplicate event is bundled on the html tag where the data that above-mentioned needs replicate, such as
Shown in Fig. 6, the trigger module 20 includes:First acquisition unit 201, for obtaining the html tag mark where above-mentioned data
Symbol;Second acquisition unit 202 obtains the data for being based on html tag identifier;And first copied cells 203, it uses
Above-mentioned data are performed in calls copy order and replicate operation.
The data that above-mentioned needs frequently replicate can be distributed in a continuous region, user on software interface and pass through click
Any one position in the region, can the duplicate event in trigger data region realize and replicate operation, what above-mentioned needs replicated
Data can also be distributed on software interface in the multiple regions of different location, as long as at this point, user clicks multiple region
Any one position in any one region can realize the duplication of all data in multiple region, easy to operate fast
It is prompt.
Preferably, in order to enable data copy operation is more flexible, above-mentioned selection instruction includes data selection instruction, the number
According to instruction is chosen for choosing the data for needing to replicate on software interface, as shown in fig. 7, trigger module 20 includes:Third obtains
Unit 204, for obtaining the data that above-mentioned data selection instruction is chosen;And second copied cells 205, it is ordered for calls copy
It enables performing data and replicates operation.
In actual conditions, user can change to the demand data on software interface, at this moment only by advance need to
The data to be replicated, which are bundled in duplicate event, realizes that data duplication is just difficult to meet the needs of users.Software is chosen by user
Data chooses instruction triggers duplicate event to realize that selected data one-key duplication can solve above-mentioned duplication operation on interface
Inflexible problem, user can choose the data of any position on software interface to be replicated according to actual needs.
Preferably, if selection instruction includes the first choice received successively instruction and the second selection instruction, duplicate event
Including the first duplicate event and the second duplicate event, device includes:First trigger element, for first choice instruction triggers first
Duplicate event;First storage unit, for storing the event that the first duplicate event replicates;Second trigger element, for the second choosing
Select the second duplicate event of instruction triggers;And second storage unit, for storing the data that the second duplicate event replicates, wherein,
The event that the first duplicate event of data cover that second duplicate event replicates replicates.
When selection instruction is multiple, each selection instruction triggers duplicate event replicate data, if this multiple instruction
The replication region of selection is different, then the data that duplicate event replicates are accordingly different, and user pastes the data of duplication at this time
When will appear exception, it is not known that the data of which replication region specifically pasted.Therefore, it is answered according to selection instruction triggering duplicate event
The sequencing of data processed determines the data pasted eventually for user, data that the data cover replicated afterwards first replicates, this
Sample finally only stores the data finally replicated in clipbook, and user can only paste the data finally replicated, thus energy
It enough avoids being abnormal during user's pasting data.
Obviously, those skilled in the art should be understood that each module of the above-mentioned present invention or each step can be with general
Computing device realize that they can concentrate on single computing device or be distributed in multiple computing devices and be formed
Network on, optionally, they can be realized with the program code that computing device can perform, it is thus possible to which they are stored
In the storage device by computing device come perform either they are fabricated to respectively each integrated circuit modules or by they
In multiple modules or step be fabricated to single integrated circuit module to realize.In this way, the present invention is not limited to any specific
Hardware and software combines.
The foregoing is only a preferred embodiment of the present invention, is not intended to restrict the invention, for the skill of this field
For art personnel, the invention may be variously modified and varied.All within the spirits and principles of the present invention, that is made any repaiies
Change, equivalent replacement, improvement etc., should all be included in the protection scope of the present invention.