CN104932796A - Method and device for controlling component drag and drop - Google Patents

Method and device for controlling component drag and drop Download PDF

Info

Publication number
CN104932796A
CN104932796A CN201510296097.XA CN201510296097A CN104932796A CN 104932796 A CN104932796 A CN 104932796A CN 201510296097 A CN201510296097 A CN 201510296097A CN 104932796 A CN104932796 A CN 104932796A
Authority
CN
China
Prior art keywords
operand
placement location
assembly
unit
operational order
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201510296097.XA
Other languages
Chinese (zh)
Other versions
CN104932796B (en
Inventor
陶昕宇
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Wuxi Tvmining Juyuan Media Technology Co Ltd
Original Assignee
Wuxi Tvmining Juyuan Media Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Wuxi Tvmining Juyuan Media Technology Co Ltd filed Critical Wuxi Tvmining Juyuan Media Technology Co Ltd
Priority to CN201510296097.XA priority Critical patent/CN104932796B/en
Publication of CN104932796A publication Critical patent/CN104932796A/en
Application granted granted Critical
Publication of CN104932796B publication Critical patent/CN104932796B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The embodiment of the invention discloses a method and a device for controlling component drag and drop, which are used for adopting different control modes according to the type of an operation object dragged by a user. The method comprises the steps as follows: responding to an operational order triggered by dragging a component by the user, executing a dragging operation corresponding to the operational order, and simultaneously recognizing an object type of the operation object corresponding to the operational order; judging whether the condition of setting the operation object to a placing position meets a preset placing condition according to the recognized object type of the operation object while dragging the operation object to the placing position pointed by the operational order; setting the operation object at the placing position if it is judged that the condition of setting the operation object to the placing position meets the preset placing condition; outputting a prompt message of dragging failure so as to prompt the user not to set the operation object at the placing position if it is judged that the condition of setting the operation object to the placing position does not meet the preset placing condition. The method and the device of the invention have beneficial effects of improving intelligence and convenience of controlling the component drag and drop.

Description

A kind of control method of assembly drag and drop and device
Technical field
The present invention relates to Internet technical field, the control method of particularly a kind of assembly drag and drop and device.
Background technology
Through the develop rapidly of Internet technology in recent years, the business of internet constantly increases, and people can touch various information based on internet, and network also becomes a part indispensable in people's routine work and life.Such as, user can utilize internet transmitting-receiving work mail, carry out video conference etc.; Or, utilize internet browsing news, listen to the music, do shopping, make a reservation, watch video etc.User is while utilizing internet to carry out work, amusement and life, for the ease of user operation, the display interface of correspondence can arrange some and be convenient to the assembly that user performs corresponding operating and the assembly unit be made up of multiple assembly, user can drag these assemblies or assembly unit extremely corresponding position as required.
At present, when dragging and place said modules to user and assembly unit controls, the following control mode of usual employing: assembly or the assembly unit of directly placing user's dragging according to the drag-and-drop operation of user, this control mode easily causes the confusion of the component placement position on display interface, and such as identical assembly repeats to place; Also be not easy to manage the dragging of said modules and assembly unit and placement location simultaneously.Another kind of control mode is: for assembly or the assembly unit of fixed placement, directly forbids that user performs corresponding drag-and-drop operation; The position of various assembly and assembly unit is directly fixed by this control mode, is unfavorable for user operation, and control mode is not intelligent.Therefore, these above control modes are more single, and the concrete assembly that can not drag according to user and assembly unit perform corresponding control operation.
Summary of the invention
The embodiment of the present invention provides a kind of control method and device of assembly drag and drop, and the particular type in order to the assembly that drags according to user and/or assembly unit adopts different control modes, realizes the intellectuality of assembly drag and drop, facilitation controls.
The embodiment of the present invention provides a kind of control method of assembly drag and drop, comprising:
Response user drags the operational order that assembly triggers, and performs the drag operation that described operational order is corresponding, identifies the object type of the operand that described operational order is corresponding simultaneously;
When described operand being dragged to the placement location that described operational order points to, according to the object type of the described operand identified, judge whether described operand is arranged on described placement location place meets default placement condition;
When judging to meet default placement condition, described operand is arranged on described placement location place; When judging not meet default placement condition, exporting and dragging failed information, described operand can not be arranged on described placement location place to point out user.
In one embodiment, described response user drags the operational order that assembly triggers, and performs the drag operation that described operational order is corresponding, identifies the object type of the operand that described operational order is corresponding simultaneously, comprising:
Receive user when dragging the operational order that assembly triggers, respond described operational order, perform the drag operation that described operational order is corresponding, start to drag the operand that described operational order points to;
While the described operand of dragging, extract the attribute information of described operand, according to the described attribute information extracted, identify that the object type of described operand is single component or is the assembly unit comprising multiple assembly.
In one embodiment, described when described operand being dragged to the placement location that described operational order points to, according to the object type of the described operand identified, judge that whether described operand is arranged on described placement location place meets default placement condition, comprising:
Performing in the process dragging the operation of described operand, detecting described operand and whether arrive placement location performed by described operational order;
When detecting that described operand arrives described placement location, the object type obtaining the described operand identified is the assembly unit that single component still comprises multiple assembly;
If when the object type of the described operand obtained is single component, places rule and described placement location according to default single component, determine whether described operand to be arranged on described placement location place;
If when the object type of the described operand obtained is the assembly unit comprising multiple assembly, places rule according to description components unit, determine whether described operand to be arranged on described placement location place.
In one embodiment, if when the object type of the described operand of described acquisition is single component, places rule and described placement location according to default single component, determine whether described operand to be arranged on described placement location place, comprising:
When the object type of the described operand obtained is single component, obtain the positional information of described placement location;
According to the positional information of described placement location obtained, judge that whether described placement location is comprise placement location corresponding to the assembly unit of multiple single component;
If described placement location is the placement location that assembly unit is corresponding, then judge whether the assembly unit that described placement location is corresponding is fixation kit unit; If fixation kit unit, then determine described operand to be arranged on described placement location place; If not fixation kit unit, then determine described operand to be arranged on described placement location place;
If described placement location is the placement location that single component is corresponding, then determine described operand to be arranged on described placement location place.
In one embodiment, if when the object type of the described operand of described acquisition is the assembly unit comprising multiple assembly, places rule according to description components unit, determine whether described operand to be arranged on described placement location place, comprising:
When the object type of the described operand obtained is the assembly unit comprising multiple assembly, obtain in display box corresponding to described placement location whether there is the assembly unit identical with described operand;
If there is not the assembly unit identical with described operand in described display box, then determine described operand to be arranged on described placement location place;
If there is the assembly unit identical with described operand in described display box, then judge whether the number of the assembly unit identical with described operand existed in above-mentioned display box reaches predetermined threshold value; If do not reach predetermined threshold value, then determine described operand to be arranged on described placement location place; If reach predetermined threshold value, then determine described operand to be arranged on described placement location place.
Corresponding to the control method of a kind of assembly drag and drop described by above embodiment, the embodiment of the present invention additionally provides a kind of control device of assembly drag and drop, comprising:
Modules dragged, dragging for responding user the operational order that assembly triggers, performing the drag operation that described operational order is corresponding, identifying the object type of the operand that described operational order is corresponding simultaneously;
Judge module, for when described operand being dragged to the placement location that described operational order points to, according to the object type of the described operand identified, judges whether described operand is arranged on described placement location place meets default placement condition;
Module being set, for when judging to meet default placement condition, described operand being arranged on described placement location place; When judging not meet default placement condition, exporting and dragging failed information, described operand can not be arranged on described placement location place to point out user.
In one embodiment, describedly modules draggedly to comprise:
Response unit, for receive user drag the operational order that assembly triggers time, respond described operational order, perform the drag operation that described operational order is corresponding, start to drag the operand that described operational order points to;
Recognition unit, for while the described operand of dragging, extracts the attribute information of described operand, according to the described attribute information extracted, identifies that the object type of described operand is single component or is the assembly unit comprising multiple assembly.
In one embodiment, described judge module comprises:
Detecting unit, for performing in the process dragging the operation of described operand, detecting described operand and whether arriving placement location performed by described operational order;
Type acquiring unit, for when detecting that described operand arrives described placement location, the object type obtaining the described operand identified is the assembly unit that single component still comprises multiple assembly;
First judging unit, if when the object type of the described operand obtained for described acquiring unit is single component, places rule and described placement location according to default single component, determine whether described operand to be arranged on described placement location place;
Second judging unit, if when the object type of the described operand obtained for described acquiring unit is the assembly unit comprising multiple assembly, places rule according to description components unit, determine whether described operand to be arranged on described placement location place.
In one embodiment, described first judging unit comprises:
Position acquisition subelement, for when the object type of the described operand that described type acquiring unit obtains is single component, obtains the positional information of described placement location;
Position judgment subelement, for:
According to the positional information of the described placement location that described position acquisition subelement obtains, judge that whether described placement location is comprise placement location corresponding to the assembly unit of multiple single component;
If described placement location is the placement location that assembly unit is corresponding, then judge whether the assembly unit that described placement location is corresponding is fixation kit unit; If fixation kit unit, then determine described operand to be arranged on described placement location place; If not fixation kit unit, then determine described operand to be arranged on described placement location place;
If described placement location is the placement location that single component is corresponding, then determine described operand to be arranged on described placement location place.
In one embodiment, described second judging unit comprises:
Assembly obtains subelement, for when the object type of the described operand that described type acquiring unit obtains is the assembly unit comprising multiple assembly, obtain in display box corresponding to described placement location whether there is the assembly unit identical with described operand;
Assembly judgment sub-unit, for:
If there is not the assembly unit identical with described operand in described display box, then determine described operand to be arranged on described placement location place;
If there is the assembly unit identical with described operand in described display box, then judge whether the number of the assembly unit identical with described operand existed in above-mentioned display box reaches predetermined threshold value; If do not reach predetermined threshold value, then determine described operand to be arranged on described placement location place; If reach predetermined threshold value, then determine described operand to be arranged on described placement location place.
Control method and the device of a kind of assembly drag and drop described by above embodiment can reach following beneficial effect:
Drag by response user the operational order that assembly triggers, perform the drag operation that described operational order is corresponding, identify the object type of the operand that described operational order is corresponding simultaneously; When described operand being dragged to the placement location that described operational order points to, according to the object type of the described operand identified, judge whether described operand is arranged on described placement location place meets default placement condition; When judging to meet default placement condition, described operand is arranged on described placement location place; When judging not meet default placement condition, exporting and dragging failed information, described operand can not be arranged on described placement location place to point out user; There is the beneficial effect that the single component that drags according to user and/or the particular type of assembly unit adopt different control modes, improve intellectuality and facilitation operation that the drag and drop of assembly are controlled; To user, due to the operating result of these drag and drop of user can be notified in time, therefore improve Consumer's Experience.
Other features and advantages of the present invention will be set forth in the following description, and, partly become apparent from instructions, or understand by implementing the present invention.Object of the present invention and other advantages realize by structure specifically noted in write instructions, claims and accompanying drawing and obtain.
Below by drawings and Examples, technical scheme of the present invention is described in further detail.
Accompanying drawing explanation
Accompanying drawing is used to provide a further understanding of the present invention, and forms a part for instructions, together with embodiments of the present invention for explaining the present invention, is not construed as limiting the invention.In the accompanying drawings:
Fig. 1 is the process flow diagram of the control method of a kind of assembly drag and drop of the present invention according to an exemplary embodiment;
Fig. 2 is the process flow diagram of step S10 in the control method of a kind of assembly drag and drop of the present invention according to an exemplary embodiment;
Fig. 3 is the process flow diagram of step S20 in the control method of a kind of assembly drag and drop of the present invention according to an exemplary embodiment;
Fig. 4 is the process flow diagram of step S203 in the control method of a kind of assembly drag and drop of the present invention according to an exemplary embodiment;
Fig. 5 is the process flow diagram of step S204 in the control method of a kind of assembly drag and drop of the present invention according to an exemplary embodiment;
Fig. 6 is the block diagram of the control device of a kind of assembly drag and drop of the present invention according to an exemplary embodiment;
Fig. 7 is the block diagram of in the control device of a kind of assembly drag and drop of the present invention according to an exemplary embodiment modules dragged 60;
Fig. 8 is the block diagram judging mould 70 in the control device of a kind of assembly drag and drop of the present invention according to an exemplary embodiment;
Fig. 9 is the block diagram of the first judging unit 703 in the control device of a kind of assembly drag and drop of the present invention according to an exemplary embodiment;
Figure 10 is the block diagram of the second judging unit 704 in the control device of a kind of assembly drag and drop of the present invention according to an exemplary embodiment.
Embodiment
Below in conjunction with accompanying drawing, the preferred embodiments of the present invention are described, should be appreciated that preferred embodiment described herein is only for instruction and explanation of the present invention, is not intended to limit the present invention.
Disclosed by the invention one control method that embodiments provides a kind of assembly drag and drop, the particular type in order to the assembly that drags according to user and/or assembly unit adopts different control modes, realizes the intellectuality of assembly drag and drop, facilitation controls.As shown in Figure 1, in the embodiment of the present invention, a kind of control method of assembly drag and drop comprises step S10-S30:
Step S10, response user drag the operational order that assembly triggers, and perform the drag operation that described operational order is corresponding, identify the object type of the operand that described operational order is corresponding simultaneously;
In the embodiment of the present invention, the assembly that user performs corresponding operating is convenient to owing to the display interface that playback equipment is corresponding can be arranged some, some also can arrange some assembly units be made up of multiple assembly simultaneously, user can be as required, above-mentioned single component or assembly unit are dragged to the relevant position in display interface, be such as dragged in display box.Therefore, when detecting that user drags the operational order that assembly triggers, the instruction of response aforesaid operations, based on described operational order, the single component that this operational order mobile is corresponding or assembly unit, and while mobile above-mentioned single component or assembly unit, identify the object type of the operand that this operational order is corresponding, what namely identification dragged is single component or assembly unit.
In one embodiment, as shown in Figure 2, described step S10 may be embodied as step S101-S102 as described below:
Step S101, receive user when dragging the operational order that assembly triggers, respond described operational order, perform the drag operation that described operational order is corresponding, start to drag the operand that described operational order points to;
Step S102, dragging described operand while, extract the attribute information of described operand, according to the described attribute information extracted, identify that the object type of described operand is single component or is the assembly unit comprising multiple assembly.
In the embodiment of the present invention, when receiving user and dragging the operational order that assembly triggers, respond this operational order, perform the drag operation that this operational order is corresponding, start to drag the operand performed by this operational order, and show the dragging track of this drag object in real time, check for user.While the described operand of dragging, extract the attribute information of described operand corresponding to described operational order, and resolve the attribute information of the described operand extracted; According to analysis result, identify that the object type of this operand is single component, still comprise the assembly unit of multiple single component, according to the concrete object type of this operand, to perform follow-up control operation.
Step S20, when described operand is dragged to described operational order point to placement location time, according to the object type of the described operand identified, judge whether described operand is arranged on described placement location place meets default placement condition;
While drag operation based on the operational order executable operations object of user's triggering, whether Real-Time Monitoring user triggers the operational order stopping dragging, when detecting that user triggers the operational order stopping dragging, namely when described operand being dragged to the placement location that described operational order points to, the object type corresponding according to above-mentioned this operand identified, judges whether this operand to be placed on the placement location place of stopping dragging corresponding to this operand.
On same operation interface, for the placement location of operand, because corresponding different placements of different object types is regular, therefore, can, according to the concrete object type of this operand, determine whether this operand to be placed on corresponding above-mentioned placement location place.
In one embodiment, as shown in Figure 3, described step S20 may be embodied as step S201-S204 as described below:
Step S201, to perform in the process dragging the operation of described operand, detecting described operand and whether arrive placement location performed by described operational order;
Step S202, when detecting that described operand arrives described placement location, obtaining the object type of described operand identified is the assembly unit that single component still comprises multiple assembly;
If when the object type of the described operand that step S203 obtains is single component, places rule and described placement location according to default single component, determine whether described operand to be arranged on described placement location place;
If when the object type of the described operand that step S204 obtains is the assembly unit comprising multiple assembly, places rule according to description components unit, determine whether described operand to be arranged on described placement location place.
In the embodiment of the present invention, when the placement location that described operand arrives performed by described operational order being detected, according to the object type of this operand obtained, the rule of the placement corresponding to this object type is taked to judge whether this operand to be arranged on corresponding placement location place.Because the object type of operand is different, the placement rule of its correspondence is not identical yet, so, first get the concrete object type that this operand is corresponding, and according to the object type of this operand, search the placement rule that this object type maps, then the placement rule that basis matches with the object type of this operand, determine whether operand to be arranged on corresponding placement location place.
In one embodiment, as shown in Figure 4, described step S203 may be embodied as step S231-S234 as described below:
Step S231, when the object type of described operand obtained is single component, obtain the positional information of described placement location;
Step S232, according to the positional information of described placement location obtained, judge that whether described placement location is comprise placement location corresponding to the assembly unit of multiple single component;
If the described placement location of step S233 is the placement location that assembly unit is corresponding, then judge whether the assembly unit that described placement location is corresponding is fixation kit unit; If fixation kit unit, then determine described operand to be arranged on described placement location place; If not fixation kit unit, then determine described operand to be arranged on described placement location place;
If the described placement location of step S234 is the placement location that single component is corresponding, then determine described operand to be arranged on described placement location place.
In the embodiment of the present invention, when the object type of operand obtained is single component, judge that whether this placement location is the placement location that certain assembly unit of pre-setting is corresponding by the positional information obtaining described placement location.If this placement location placement location that not to be certain assembly unit of pre-setting corresponding, such as, this placement location is the placement location that single component is corresponding, then direct this single component is arranged on above-mentioned placement location place.
If the placement location that certain assembly unit pre-set during this placement location is corresponding, then need to extract the attribute information of the assembly unit A being arranged on this placement location, judge whether this assembly unit A is default fixation kit unit by the above-mentioned attribute information extracted; If judge that this assembly unit A is default fixation kit unit, then determine single component corresponding for described operand to be arranged on described placement location place; Such as, station symbol assembly unit comprises local component and figure chip module, and this station symbol assembly unit is fixation kit unit, therefore, in the display box of display interface, does not allow user in this station symbol assembly unit, pull corresponding single component into.If judge that this assembly unit A is not default fixation kit unit, then determine single component corresponding for described operand to be arranged on described placement location place; Such as, this assembly unit is user-defined assembly unit, then determine described operand to be arranged on described placement location place.
In one embodiment, as shown in Figure 5, described step S204 may be embodied as step S241-S243 as described below:
Step S241, when the object type of described operand obtained is the assembly unit comprising multiple assembly, obtain in display box corresponding to described placement location whether there is the assembly unit identical with described operand;
If there is not the assembly unit identical with described operand in the described display box of step S242, then determine described operand to be arranged on described placement location place;
If there is the assembly unit identical with described operand in the described display box of step S243, then judge whether the number of the assembly unit identical with described operand existed in above-mentioned display box reaches predetermined threshold value; If do not reach predetermined threshold value, then determine described operand to be arranged on described placement location place; If reach predetermined threshold value, then determine described operand to be arranged on described placement location place.
In the embodiment of the present invention, when the object type of the operand obtained is the assembly unit comprising multiple single component, by judging to place in the display box of single component and/or assembly unit, the quantity of the assembly unit identical with the said modules unit B that need place, determines whether this assembly unit B to be placed on described placement location place corresponding in this display box.Therefore, when the object type getting described operand is the assembly unit comprising multiple assembly, first obtain in display box corresponding to described placement location whether there is the assembly unit identical with described operand; If when there is not the assembly unit B of this operand such as described by above embodiment in this display box, then determine directly to be placed on by assembly unit corresponding for this operand described placement location place corresponding in display box.
If there is the assembly unit identical with described operand in this display box, then obtain the quantity of the assembly unit identical with aforesaid operations object existed in this display box; And judge whether the number of the assembly unit identical with described operand existed in above-mentioned display box reaches predetermined threshold value; If do not reach predetermined threshold value, then determine described operand to be arranged on described placement location place; If reach predetermined threshold value, then determine described operand to be arranged on described placement location place.
Step S30, when judging to meet default placement condition, described operand is arranged on described placement location place; When judging not meet default placement condition, exporting and dragging failed information, described operand can not be arranged on described placement location place to point out user.
According to above-mentioned judged result, when judging the placement condition corresponding to the object type that aforesaid operations object meets this operand, this operand is placed on above-mentioned placement location place; After having placed aforesaid operations object, also directly in display box, the operand placed can be shown, check for user.When judging the placement condition corresponding to the object type that aforesaid operations object does not meet this operand, exporting and dragging failed information, thus prompting user can not be arranged on the placement location place of correspondence by this operand.
The control method of a kind of assembly drag and drop described by the above embodiment of the present invention, the operational order that assembly triggers is dragged by response user, perform the drag operation that described operational order is corresponding, identify the object type of the operand that described operational order is corresponding simultaneously; When described operand being dragged to the placement location that described operational order points to, according to the object type of the described operand identified, judge whether described operand is arranged on described placement location place meets default placement condition; When judging to meet default placement condition, described operand is arranged on described placement location place; When judging not meet default placement condition, exporting and dragging failed information, described operand can not be arranged on described placement location place to point out user; There is the beneficial effect that the single component that drags according to user and/or the particular type of assembly unit adopt different control modes, improve intellectuality and facilitation operation that the drag and drop of assembly are controlled; To user, due to the operating result of these drag and drop of user can be notified in time, therefore improve Consumer's Experience.
The control method of a kind of assembly drag and drop that the corresponding embodiment of the present invention provides, present invention also offers a kind of control device of assembly drag and drop; As shown in Figure 6, the control device of described a kind of assembly drag and drop, comprising: modules dragged 60, judge module 70 and arrange module 80; Wherein:
Described modules dragged 60, dragging for responding user the operational order that assembly triggers, performing the drag operation that described operational order is corresponding, identifying the object type of the operand that described operational order is corresponding simultaneously;
In one embodiment, as shown in Figure 7, described modules dragged 60 comprise:
Response unit 601, for receive user drag the operational order that assembly triggers time, respond described operational order, perform the drag operation that described operational order is corresponding, start to drag the operand that described operational order points to;
Recognition unit 602, for while the described operand of dragging, extracts the attribute information of described operand, according to the described attribute information extracted, identifies that the object type of described operand is single component or is the assembly unit comprising multiple assembly.
Described judge module 70, for when described operand being dragged to the placement location that described operational order points to, according to the object type of the described operand identified, judge whether described operand is arranged on described placement location place meets default placement condition;
In one embodiment, as shown in Figure 8, described judge module 70 comprises: detecting unit 701, type acquiring unit 702, first judging unit 703 and the second judging unit 704; Wherein:
Described detecting unit 701, for performing in the process dragging the operation of described operand, detecting described operand and whether arriving placement location performed by described operational order;
Described type acquiring unit 702, for when detecting that described operand arrives described placement location, the object type obtaining the described operand identified is the assembly unit that single component still comprises multiple assembly;
Described first judging unit 703, if when the object type for the described operand of described acquiring unit acquisition is single component, place rule and described placement location according to default single component, determine whether described operand to be arranged on described placement location place;
In one embodiment, as shown in Figure 9, described first judging unit 703 comprises:
Position acquisition subelement 731, for when the object type of the described operand that described type acquiring unit obtains is single component, obtains the positional information of described placement location;
Position judgment subelement 732, for:
According to the positional information of the described placement location that described position acquisition subelement obtains, judge that whether described placement location is comprise placement location corresponding to the assembly unit of multiple single component;
If described placement location is the placement location that assembly unit is corresponding, then judge whether the assembly unit that described placement location is corresponding is fixation kit unit; If fixation kit unit, then determine described operand to be arranged on described placement location place; If not fixation kit unit, then determine described operand to be arranged on described placement location place;
If described placement location is the placement location that single component is corresponding, then determine described operand to be arranged on described placement location place.
Described second judging unit 704, if when the object type for the described operand of described acquiring unit acquisition is the assembly unit comprising multiple assembly, place rule according to description components unit, determine whether described operand to be arranged on described placement location place.
In one embodiment, as shown in Figure 10, described second judging unit 704 comprises:
Assembly obtains subelement 741, for when the object type of the described operand that described type acquiring unit obtains is the assembly unit comprising multiple assembly, obtain in display box corresponding to described placement location whether there is the assembly unit identical with described operand;
Assembly judgment sub-unit 742, for:
If there is not the assembly unit identical with described operand in described display box, then determine described operand to be arranged on described placement location place;
If there is the assembly unit identical with described operand in described display box, then judge whether the number of the assembly unit identical with described operand existed in above-mentioned display box reaches predetermined threshold value; If do not reach predetermined threshold value, then determine described operand to be arranged on described placement location place; If reach predetermined threshold value, then determine described operand to be arranged on described placement location place.
Described module 80 being set, for when judging to meet default placement condition, described operand being arranged on described placement location place; When judging not meet default placement condition, exporting and dragging failed information, described operand can not be arranged on described placement location place to point out user.
The control device of a kind of assembly drag and drop described by the above embodiment of the present invention, the operational order that assembly triggers is dragged by response user, perform the drag operation that described operational order is corresponding, identify the object type of the operand that described operational order is corresponding simultaneously; When described operand being dragged to the placement location that described operational order points to, according to the object type of the described operand identified, judge whether described operand is arranged on described placement location place meets default placement condition; When judging to meet default placement condition, described operand is arranged on described placement location place; When judging not meet default placement condition, exporting and dragging failed information, described operand can not be arranged on described placement location place to point out user; There is the beneficial effect that the single component that drags according to user and/or the particular type of assembly unit adopt different control modes, improve intellectuality and facilitation operation that the drag and drop of assembly are controlled; To user, due to the operating result of these drag and drop of user can be notified in time, therefore improve Consumer's Experience.
Those skilled in the art should understand, embodiments of the invention can be provided as method, system or computer program.Therefore, the present invention can adopt the form of complete hardware embodiment, completely software implementation or the embodiment in conjunction with software and hardware aspect.And the present invention can adopt in one or more form wherein including the upper computer program implemented of computer-usable storage medium (including but not limited to magnetic disk memory and optical memory etc.) of computer usable program code.
The present invention describes with reference to according to the process flow diagram of the method for the embodiment of the present invention, equipment (system) and computer program and/or block scheme.Should understand can by the combination of the flow process in each flow process in computer program instructions realization flow figure and/or block scheme and/or square frame and process flow diagram and/or block scheme and/or square frame.These computer program instructions can being provided to the processor of multi-purpose computer, special purpose computer, Embedded Processor or other programmable data processing device to produce a machine, making the instruction performed by the processor of computing machine or other programmable data processing device produce device for realizing the function of specifying in process flow diagram flow process or multiple flow process and/or block scheme square frame or multiple square frame.
These computer program instructions also can be stored in can in the computer-readable memory that works in a specific way of vectoring computer or other programmable data processing device, the instruction making to be stored in this computer-readable memory produces the manufacture comprising command device, and this command device realizes the function of specifying in process flow diagram flow process or multiple flow process and/or block scheme square frame or multiple square frame.
These computer program instructions also can be loaded in computing machine or other programmable data processing device, make on computing machine or other programmable devices, to perform sequence of operations step to produce computer implemented process, thus the instruction performed on computing machine or other programmable devices is provided for the step realizing the function of specifying in process flow diagram flow process or multiple flow process and/or block scheme square frame or multiple square frame.
Obviously, those skilled in the art can carry out various change and modification to the present invention and not depart from the spirit and scope of the present invention.Like this, if these amendments of the present invention and modification belong within the scope of the claims in the present invention and equivalent technologies thereof, then the present invention is also intended to comprise these change and modification.

Claims (10)

1. a control method for assembly drag and drop, is characterized in that, comprising:
Response user drags the operational order that assembly triggers, and performs the drag operation that described operational order is corresponding, identifies the object type of the operand that described operational order is corresponding simultaneously;
When described operand being dragged to the placement location that described operational order points to, according to the object type of the described operand identified, judge whether described operand is arranged on described placement location place meets default placement condition;
When judging to meet default placement condition, described operand is arranged on described placement location place; When judging not meet default placement condition, exporting and dragging failed information, described operand can not be arranged on described placement location place to point out user.
2. the method for claim 1, is characterized in that, described response user drags the operational order that assembly triggers, and performs the drag operation that described operational order is corresponding, identifies the object type of the operand that described operational order is corresponding simultaneously, comprising:
Receive user when dragging the operational order that assembly triggers, respond described operational order, perform the drag operation that described operational order is corresponding, start to drag the operand that described operational order points to;
While the described operand of dragging, extract the attribute information of described operand, according to the described attribute information extracted, identify that the object type of described operand is single component or is the assembly unit comprising multiple assembly.
3. method as claimed in claim 1 or 2, it is characterized in that, described when described operand being dragged to the placement location that described operational order points to, according to the object type of the described operand identified, judge that whether described operand is arranged on described placement location place meets default placement condition, comprising:
Performing in the process dragging the operation of described operand, detecting described operand and whether arrive placement location performed by described operational order;
When detecting that described operand arrives described placement location, the object type obtaining the described operand identified is the assembly unit that single component still comprises multiple assembly;
If when the object type of the described operand obtained is single component, places rule and described placement location according to default single component, determine whether described operand to be arranged on described placement location place;
If when the object type of the described operand obtained is the assembly unit comprising multiple assembly, places rule according to description components unit, determine whether described operand to be arranged on described placement location place.
4. method as claimed in claim 3, it is characterized in that, if when the object type of the described operand of described acquisition is single component, place rule and described placement location according to default single component, determine whether described operand to be arranged on described placement location place, comprising:
When the object type of the described operand obtained is single component, obtain the positional information of described placement location;
According to the positional information of described placement location obtained, judge that whether described placement location is comprise placement location corresponding to the assembly unit of multiple single component;
If described placement location is the placement location that assembly unit is corresponding, then judge whether the assembly unit that described placement location is corresponding is fixation kit unit; If fixation kit unit, then determine described operand to be arranged on described placement location place; If not fixation kit unit, then determine described operand to be arranged on described placement location place;
If described placement location is the placement location that single component is corresponding, then determine described operand to be arranged on described placement location place.
5. method as claimed in claim 3, it is characterized in that, if when the object type of the described operand of described acquisition is the assembly unit comprising multiple assembly, place rule according to description components unit, determine whether described operand to be arranged on described placement location place, comprising:
When the object type of the described operand obtained is the assembly unit comprising multiple assembly, obtain in display box corresponding to described placement location whether there is the assembly unit identical with described operand;
If there is not the assembly unit identical with described operand in described display box, then determine described operand to be arranged on described placement location place;
If there is the assembly unit identical with described operand in described display box, then judge whether the number of the assembly unit identical with described operand existed in above-mentioned display box reaches predetermined threshold value; If do not reach predetermined threshold value, then determine described operand to be arranged on described placement location place; If reach predetermined threshold value, then determine described operand to be arranged on described placement location place.
6. a control device for assembly drag and drop, is characterized in that, comprising:
Modules dragged, dragging for responding user the operational order that assembly triggers, performing the drag operation that described operational order is corresponding, identifying the object type of the operand that described operational order is corresponding simultaneously;
Judge module, for when described operand being dragged to the placement location that described operational order points to, according to the object type of the described operand identified, judges whether described operand is arranged on described placement location place meets default placement condition;
Module being set, for when judging to meet default placement condition, described operand being arranged on described placement location place; When judging not meet default placement condition, exporting and dragging failed information, described operand can not be arranged on described placement location place to point out user.
7. device as claimed in claim 6, is characterized in that, describedly modules draggedly to comprise:
Response unit, for receive user drag the operational order that assembly triggers time, respond described operational order, perform the drag operation that described operational order is corresponding, start to drag the operand that described operational order points to;
Recognition unit, for while the described operand of dragging, extracts the attribute information of described operand, according to the described attribute information extracted, identifies that the object type of described operand is single component or is the assembly unit comprising multiple assembly.
8. device as claimed in claims 6 or 7, it is characterized in that, described judge module comprises:
Detecting unit, for performing in the process dragging the operation of described operand, detecting described operand and whether arriving placement location performed by described operational order;
Type acquiring unit, for when detecting that described operand arrives described placement location, the object type obtaining the described operand identified is the assembly unit that single component still comprises multiple assembly;
First judging unit, if when the object type of the described operand obtained for described acquiring unit is single component, places rule and described placement location according to default single component, determine whether described operand to be arranged on described placement location place;
Second judging unit, if when the object type of the described operand obtained for described acquiring unit is the assembly unit comprising multiple assembly, places rule according to description components unit, determine whether described operand to be arranged on described placement location place.
9. device as claimed in claim 8, it is characterized in that, described first judging unit comprises:
Position acquisition subelement, for when the object type of the described operand that described type acquiring unit obtains is single component, obtains the positional information of described placement location;
Position judgment subelement, for:
According to the positional information of the described placement location that described position acquisition subelement obtains, judge that whether described placement location is comprise placement location corresponding to the assembly unit of multiple single component;
If described placement location is the placement location that assembly unit is corresponding, then judge whether the assembly unit that described placement location is corresponding is fixation kit unit; If fixation kit unit, then determine described operand to be arranged on described placement location place; If not fixation kit unit, then determine described operand to be arranged on described placement location place;
If described placement location is the placement location that single component is corresponding, then determine described operand to be arranged on described placement location place.
10. device as claimed in claim 8, it is characterized in that, described second judging unit comprises:
Assembly obtains subelement, for when the object type of the described operand that described type acquiring unit obtains is the assembly unit comprising multiple assembly, obtain in display box corresponding to described placement location whether there is the assembly unit identical with described operand;
Assembly judgment sub-unit, for:
If there is not the assembly unit identical with described operand in described display box, then determine described operand to be arranged on described placement location place;
If there is the assembly unit identical with described operand in described display box, then judge whether the number of the assembly unit identical with described operand existed in above-mentioned display box reaches predetermined threshold value; If do not reach predetermined threshold value, then determine described operand to be arranged on described placement location place; If reach predetermined threshold value, then determine described operand to be arranged on described placement location place.
CN201510296097.XA 2015-06-02 2015-06-02 A kind of control method and device of component drag and drop Expired - Fee Related CN104932796B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510296097.XA CN104932796B (en) 2015-06-02 2015-06-02 A kind of control method and device of component drag and drop

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510296097.XA CN104932796B (en) 2015-06-02 2015-06-02 A kind of control method and device of component drag and drop

Publications (2)

Publication Number Publication Date
CN104932796A true CN104932796A (en) 2015-09-23
CN104932796B CN104932796B (en) 2018-05-08

Family

ID=54119981

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510296097.XA Expired - Fee Related CN104932796B (en) 2015-06-02 2015-06-02 A kind of control method and device of component drag and drop

Country Status (1)

Country Link
CN (1) CN104932796B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109782983A (en) * 2017-11-13 2019-05-21 腾讯科技(深圳)有限公司 The view layout method of adjustment and device of Application Program Interface
WO2022052677A1 (en) * 2020-09-09 2022-03-17 华为技术有限公司 Interface display method and electronic device

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5644739A (en) * 1995-01-27 1997-07-01 Microsoft Corporation Method and system for adding buttons to a toolbar
CN101223496A (en) * 2005-07-13 2008-07-16 微软公司 Rich drag drop user interface
CN103116453A (en) * 2013-02-05 2013-05-22 惠州Tcl移动通信有限公司 Operation management method and operation management device of graphic object
CN103150198A (en) * 2013-02-22 2013-06-12 三一重工股份有限公司 Display method of configuration software
CN103150079A (en) * 2013-02-01 2013-06-12 Tcl集团股份有限公司 Application icon management method and device based on Firefox OS (Operation System) platform

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5644739A (en) * 1995-01-27 1997-07-01 Microsoft Corporation Method and system for adding buttons to a toolbar
CN101223496A (en) * 2005-07-13 2008-07-16 微软公司 Rich drag drop user interface
CN103150079A (en) * 2013-02-01 2013-06-12 Tcl集团股份有限公司 Application icon management method and device based on Firefox OS (Operation System) platform
CN103116453A (en) * 2013-02-05 2013-05-22 惠州Tcl移动通信有限公司 Operation management method and operation management device of graphic object
CN103150198A (en) * 2013-02-22 2013-06-12 三一重工股份有限公司 Display method of configuration software

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109782983A (en) * 2017-11-13 2019-05-21 腾讯科技(深圳)有限公司 The view layout method of adjustment and device of Application Program Interface
WO2022052677A1 (en) * 2020-09-09 2022-03-17 华为技术有限公司 Interface display method and electronic device

Also Published As

Publication number Publication date
CN104932796B (en) 2018-05-08

Similar Documents

Publication Publication Date Title
CN103106024B (en) Text entry method in touch screen terminal and device thereof
CN102830907B (en) A kind of touch screen mobile terminal and placement figure calibration method thereof
CN104731613A (en) Quick application starting method and system
CN104965664A (en) Application operation method and apparatus
EP2891041B1 (en) User interface apparatus in a user terminal and method for supporting the same
JP6434640B2 (en) Message display method, message display device, and message display device
EP3543831A1 (en) User interface apparatus in a user terminal and method for supporting the same
CN107786430B (en) Robot chatting method and system
CN103777947A (en) Method and device for managing main interface of mobile terminal
CN103218555A (en) Logging-in method and device for application program
CN103729340A (en) Method and device for editing table in webpage
CN104536643A (en) Icon dragging method and terminal
CN105302619A (en) Information processing method and device and electronic equipment
CN105183291A (en) Method and system for extracting information in display interface
CN107562356B (en) Fingerprint identification positioning method and device, storage medium and electronic equipment
CN104484058A (en) Instant expression image outputting method and instant expression image outputting device
JP2020535501A (en) Target recognition method, device and intelligent terminal
CN104598133B (en) The specification generation method and device of object
KR101605507B1 (en) Method for executing macro and control method of web sever for executing macro, recording medium for performing the method
CN103176800A (en) Application program login method and device
CN104932796A (en) Method and device for controlling component drag and drop
KR20140031587A (en) Linkage application control system and method of controlling of application loading
CN114019807A (en) Data processing method, device, system, equipment and readable storage medium
CN103235682B (en) A kind of method and device showing menu
CN104765565A (en) Floating control placing method and device

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
PE01 Entry into force of the registration of the contract for pledge of patent right

Denomination of invention: A control method and device for component drag and drop

Effective date of registration: 20210104

Granted publication date: 20180508

Pledgee: Inner Mongolia Huipu Energy Co.,Ltd.

Pledgor: WUXI TVMINING MEDIA SCIENCE & TECHNOLOGY Co.,Ltd.

Registration number: Y2020990001517

PE01 Entry into force of the registration of the contract for pledge of patent right
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20180508

Termination date: 20210602

CF01 Termination of patent right due to non-payment of annual fee