CN104932796B - A kind of control method and device of component drag and drop - Google Patents
A kind of control method and device of component drag and drop Download PDFInfo
- Publication number
- CN104932796B CN104932796B CN201510296097.XA CN201510296097A CN104932796B CN 104932796 B CN104932796 B CN 104932796B CN 201510296097 A CN201510296097 A CN 201510296097A CN 104932796 B CN104932796 B CN 104932796B
- Authority
- CN
- China
- Prior art keywords
- operation object
- placement location
- operational order
- unit
- component
- 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.)
- Expired - Fee Related
Links
Landscapes
- User Interface Of Digital Computer (AREA)
Abstract
The embodiment of the invention discloses a kind of control method and device of component drag and drop, different control modes is used to the type of the operation object dragged according to user.The described method includes:Response user drags the operational order that component is triggered, and performs the corresponding drag operation of the operational order, while identify the object type of the corresponding operation object of the operational order;When the operation object is dragged to the placement location that the operational order is directed toward, according to the object type of the operation object identified, judge the operation object is arranged at the placement location to whether meet default placement condition;When judging to meet default placement condition, the operation object is arranged at the placement location;When judging not meeting default placement condition, the prompt message of output dragging failure, to prompt user that the operation object cannot be arranged at the placement location;With the intelligence for improving component drag and drop control and the beneficial effect of facilitation.
Description
Technical field
The present invention relates to Internet technical field, more particularly to a kind of control method and device of component drag and drop.
Background technology
By the rapid development of Internet technology in recent years, the business of internet is continuously increased, and people are based on internet
Various information can be touched, network also becomes a part indispensable in people's routine work and life.Such as
User can be received and dispatched work mail using internet, carry out video conference etc.;Alternatively, using internet browsing news, listen to music,
Do shopping, make a reservation, watching video etc..User is grasped while being worked, being entertained and being lived using internet for the ease of user
Make, some can be set to perform the component of corresponding operating easy to user and be made of multiple components on corresponding display interface
Assembly unit, user can drag these components or assembly unit as needed to corresponding position.
At present, when said modules being dragged and placing to user and assembly unit is controlled, generally use controls as follows
Mode:The component or assembly unit of user's dragging are directly placed according to the drag-and-drop operation of user, this control mode is easy
The confusion of the component placement position on display interface, such as identical component is caused to repeat placement etc.;Also it is not easy to upper at the same time
The dragging and placement location for stating component and assembly unit are managed.Another control mode is:For the component of fixed placement
Or assembly unit, directly forbid user to perform corresponding drag-and-drop operation;This control mode is directly by various assemblies and component
The position of unit is fixed, and is unfavorable for user's operation, and control mode is not intelligent.Therefore, the above control mode compares
It is single, it is impossible to which that corresponding control operation is performed according to the specific component and assembly unit of user's dragging.
The content of the invention
The embodiment of the present invention provides a kind of control method and device of component drag and drop, to the component dragged according to user
And/or the particular type of assembly unit uses different control modes, intelligence, the facilitation control of component drag and drop are realized.
The embodiment of the present invention provides a kind of control method of component drag and drop, including:
Response user drags the operational order that component is triggered, and performs the corresponding drag operation of the operational order, at the same time
Identify the object type of the corresponding operation object of the operational order;
When the operation object is dragged to the placement location that the operational order is directed toward, according to the behaviour identified
Make the object type of object, judge the operation object is arranged at the placement location to whether meet default placement condition;
When judging to meet default placement condition, the operation object is arranged at the placement location;Judging
When going out not meeting default placement condition, the prompt message of output dragging failure, to prompt user to set the operation object
Put at the placement location.
In one embodiment, the response user drags the operational order that component is triggered, and performs the operational order
Corresponding drag operation, while identify the object type of the corresponding operation object of the operational order, including:
When receiving the operational order that user's dragging component is triggered, the operational order is responded, the operation is performed and refers to
Corresponding drag operation is made, starts to drag the operation object that the operational order is directed toward;
While the operation object is dragged, the attribute information of the operation object is extracted, according to extracting
Attribute information, the object type for identifying the operation object are single component or are the assembly unit for including multiple components.
In one embodiment, it is described when the placement location that the operation object is dragged to the operational order direction
When, according to the object type of the operation object identified, judge the operation object being arranged at the placement location
Whether default placement condition is met, including:
During performing and dragging operation object operation, detect the operation object and whether reach the operation and refer to
The performed placement location of order;
When detecting that the operation object reaches the placement location, the object of the operation object identified is obtained
Type still includes the assembly unit of multiple components for single component;
If the object type of the operation object obtained be single component, according to default single component place rule with
The placement location, it is determined whether the operation object can be arranged at the placement location;
If the object type of the operation object obtained is the assembly unit comprising multiple components, according to description components
Unit places rule, it is determined whether the operation object can be arranged at the placement location.
In one embodiment, if the object type of the operation object of the acquisition is single component, according to pre-
If single component places regular and described placement location, it is determined whether the operation object can be arranged on the placement location
Place, including:
When the object type of the operation object of acquisition is single component, the position letter of the placement location is obtained
Breath;
According to the positional information of the placement location of acquisition, judge whether the placement location is comprising multiple single groups
The corresponding placement location of assembly unit of part;
If the placement location is the corresponding placement location of assembly unit, the corresponding component list of the placement location is judged
Whether member is fixation kit unit;If fixation kit unit, it is determined that the operation object cannot be arranged on the placement
At position;If not fixation kit unit, it is determined that the operation object can be arranged at the placement location;
If the placement location is the corresponding placement location of single component, it is determined that can be arranged on the operation object
At the placement location.
In one embodiment, if the object type of the operation object of the acquisition is the component for including multiple components
During unit, rule is placed according to description components unit, it is determined whether the operation object can be arranged on the placement location
Place, including:
When the object type of the operation object of acquisition is the assembly unit comprising multiple components, the placement is obtained
In the display box of position correspondence whether the existing assembly unit identical with the operation object;
If the assembly unit identical with the operation object is not present in the display box, it is determined that can be by the operation
Object is arranged at the placement location;
If there is the assembly unit identical with the operation object in the display box, judge exist in above-mentioned display box
The number of the assembly unit identical with the operation object whether reached predetermined threshold value;If not up to predetermined threshold value, really
Surely the operation object can be arranged at the placement location;If reach predetermined threshold value, it is determined that cannot be by the operation
Object is arranged at the placement location.
Corresponding to a kind of described control method of component drag and drop of above example, the embodiment of the present invention additionally provides one
The control device of kind component drag and drop, including:
Operational order that is modules dragged, dragging component for responding user and triggered, it is corresponding to perform the operational order
Drag operation, while identify the object type of the corresponding operation object of the operational order;
Judgment module, for when the operation object is dragged to the placement location that the operational order is directed toward, according to
Whether the object type of the operation object identified, judge the operation object being arranged at the placement location and meet
Default placement condition;
Setup module, for when judging to meet default placement condition, the operation object to be arranged on the placement
At position;When judging not meeting default placement condition, the prompt message of output dragging failure, to prompt user cannot be by institute
Operation object is stated to be arranged at the placement location.
In one embodiment, it is described it is modules dragged including:
Response unit, when dragging the operational order that component is triggered for receiving user, responds the operational order, holds
The corresponding drag operation of the row operational order, starts to drag the operation object that the operational order is directed toward;
Recognition unit, for while the operation object is dragged, extracting the attribute information of the operation object, according to
The attribute information extracted, the object type for identifying the operation object are single component or are to include multiple components
Assembly unit.
In one embodiment, the judgment module includes:
Detection unit, for during the dragging operation object operation is performed, whether detecting the operation object
Reach the placement location performed by the operational order;
Type acquiring unit, for when detecting that the operation object reaches the placement location, obtaining what is identified
The object type of the operation object still includes the assembly unit of multiple components for single component;
First judging unit, if the object type of the operation object obtained for the acquiring unit is single component
When, regular and described placement location is placed according to default single component, it is determined whether the operation object can be arranged on institute
State at placement location;
Second judging unit, if the object type of the operation object obtained for the acquiring unit is comprising multiple
During the assembly unit of component, rule is placed according to description components unit, it is determined whether the operation object can be arranged on institute
State at placement location.
In one embodiment, first judging unit includes:
Position acquisition subelement, the object type for the operation object obtained when the type acquiring unit are single
During one component, the positional information of the placement location is obtained;
Position judgment subelement, is used for:
The positional information of the placement location obtained according to the position acquisition subelement, judges that the placement location is
No is the corresponding placement location of the assembly unit comprising multiple single components;
If the placement location is the corresponding placement location of assembly unit, the corresponding component list of the placement location is judged
Whether member is fixation kit unit;If fixation kit unit, it is determined that the operation object cannot be arranged on the placement
At position;If not fixation kit unit, it is determined that the operation object can be arranged at the placement location;
If the placement location is the corresponding placement location of single component, it is determined that can be arranged on the operation object
At the placement location.
In one embodiment, second judging unit includes:
Component obtains subelement, and the object type for the operation object obtained when the type acquiring unit is bag
During assembly unit containing multiple components, whether existing with the operation object obtain in the corresponding display box of the placement location
Identical assembly unit;
Component judgment sub-unit, is used for:
If the assembly unit identical with the operation object is not present in the display box, it is determined that can be by the operation
Object is arranged at the placement location;
If there is the assembly unit identical with the operation object in the display box, judge exist in above-mentioned display box
The number of the assembly unit identical with the operation object whether reached predetermined threshold value;If not up to predetermined threshold value, really
Surely the operation object can be arranged at the placement location;If reach predetermined threshold value, it is determined that cannot be by the operation
Object is arranged at the placement location.
A kind of described control method and device of component drag and drop of above example can reach following beneficial effect:
The operational order for dragging component by responding user and being triggered, performs the corresponding drag operation of the operational order,
The object type of the corresponding operation object of the operational order is identified at the same time;Refer to when the operation object is dragged to the operation
When making the placement location being directed toward, according to the object type of the operation object identified, judge to set the operation object
Whether meet default placement condition at the placement location;When judging to meet default placement condition, by the operation pair
As being arranged at the placement location;When judging not meeting default placement condition, the prompt message of output dragging failure, with
The operation object cannot be arranged at the placement location by prompting user;With the single component that is dragged according to user and/
Or the particular type of assembly unit uses the beneficial effect of different control modes, improve the drag and drop to component and be controlled
Intelligence and facilitation operation;For user, due to that can notify the operating result of this drag and drop of user in time, carry
High user experience.
Other features and advantages of the present invention will be illustrated in the following description, also, partly becomes from specification
Obtain it is clear that or being understood by implementing the present invention.The purpose of the present invention and other advantages can be by the explanations write
Specifically noted structure is realized and obtained in book, claims and attached drawing.
Below by drawings and examples, technical scheme is described in further detail.
Brief description of the drawings
Attached drawing is used for providing a further understanding of the present invention, and a part for constitution instruction, the reality with the present invention
Apply example to be used to explain the present invention together, be not construed as limiting the invention.In the accompanying drawings:
Fig. 1 is a kind of flow chart of the control method of component drag and drop of the present invention according to an exemplary embodiment;
Step S10 in a kind of control method of component drag and drop of the Fig. 2 for the present invention according to an exemplary embodiment
Flow chart;
Step S20 in a kind of control method of component drag and drop of the Fig. 3 for the present invention according to an exemplary embodiment
Flow chart;
Step S203 in a kind of control method of component drag and drop of the Fig. 4 for the present invention according to an exemplary embodiment
Flow chart;
Step S204 in a kind of control method of component drag and drop of the Fig. 5 for the present invention according to an exemplary embodiment
Flow chart;
Fig. 6 is a kind of block diagram of the control device of component drag and drop of the present invention according to an exemplary embodiment;
Modules dragged 60 in a kind of control device of component drag and drop of the Fig. 7 for the present invention according to an exemplary embodiment
Block diagram;
Fig. 8 is to judge mould 70 in a kind of control device of component drag and drop of the present invention according to an exemplary embodiment
Block diagram;
First judges list in a kind of control device of component drag and drop of the Fig. 9 for the present invention according to an exemplary embodiment
The block diagram of member 703;
Second judges in a kind of control device of component drag and drop of the Figure 10 for the present invention according to an exemplary embodiment
The block diagram of unit 704.
Embodiment
The preferred embodiment of the present invention is illustrated below in conjunction with attached drawing, it will be appreciated that described herein preferred real
Apply example to be merely to illustrate and explain the present invention, be not intended to limit the present invention.
A kind of control method of component drag and drop is provided in an embodiment disclosed by the invention, to what is dragged according to user
The particular type of component and/or assembly unit uses different control modes, realizes intelligence, the facilitation control of component drag and drop
System.As shown in Figure 1, a kind of control method of component drag and drop includes step S10-S30 in the embodiment of the present invention:
Step S10, respond user and drag the operational order that component is triggered, perform the corresponding dragging behaviour of the operational order
Make, while identify the object type of the corresponding operation object of the operational order;
In the embodiment of the present invention, since some can be set to be performed accordingly easy to user on the corresponding display interface of playback equipment
The component of operation, some can also set some assembly units being made of multiple components at the same time, and user can be as needed, will
Above-mentioned single component or assembly unit drag to the relevant position in display interface, for example are dragged in display box.Therefore, when
When detecting that user drags the operational order that component is triggered, response aforesaid operations instruction is mobile to be somebody's turn to do based on the operational order
The corresponding single component of operational order either assembly unit and while the above-mentioned single component of movement or assembly unit, knows
The not object type of the corresponding operation object of the operational order, i.e., what identification was dragged is single component or assembly unit.
In one embodiment, as shown in Fig. 2, the step S10 may be implemented as the step S101- of description
S102:
When step S101, receiving the operational order that user's dragging component is triggered, the operational order is responded, performs institute
The corresponding drag operation of operational order is stated, starts to drag the operation object that the operational order is directed toward;
Step S102, while the operation object is dragged, the attribute information of the operation object is extracted, according to extraction
The attribute information gone out, the object type for identifying the operation object are single component or are the component for including multiple components
Unit.
In the embodiment of the present invention, when receiving the operational order that user's dragging component is triggered, the operational order is responded,
The corresponding drag operation of the operational order is performed, starts to drag the operation object performed by the operational order, and real-time display should
The dragging track of drag object, is checked for user.While the operation object is dragged, it is corresponding to extract the operational order
The attribute information of the operation object, and parse the attribute information of the operation object extracted;According to analysis result, identification
The object type of the operation object is single component, or includes the assembly unit of multiple single components, so as to according to the operation
The specific object type of object, performs follow-up control operation.
Step S20, when the operation object is dragged to the placement location that the operational order is directed toward, according to identifying
The operation object object type, judge the operation object being arranged at the placement location whether meet default put
Put condition;
While operational order based on user's triggering performs the drag operation of operation object, monitor whether user touches in real time
The operational order for stopping dragging being sent out, when detecting that user triggers the operational order for stopping dragging, i.e., when by the operation
When object is dragged to the placement location that the operational order is directed toward, according to the above-mentioned corresponding object class of the operation object identified
Type, judge whether by the operation object be placed on stop drag the operation object corresponding to placement location at.
In same operation interface, for the placement location of operation object, since different object types corresponds to
Difference places rule, therefore, can be according to the specific object type of the operation object, come determine whether can be by the operation object
It is placed at corresponding above-mentioned placement location.
In one embodiment, as shown in figure 3, the step S20 may be implemented as the step S201- of description
S204:
Step S201, during the dragging operation object operation is performed, detect whether the operation object reaches
Placement location performed by the operational order;
Step S202, when detecting that the operation object reaches the placement location, the operation identified is obtained
The object type of object still includes the assembly unit of multiple components for single component;
Step S203, if the object type of the operation object obtained is single component, according to default single component
Place regular and described placement location, it is determined whether the operation object can be arranged at the placement location;
Step S204, if the object type of the operation object obtained is the assembly unit comprising multiple components, root
Rule is placed according to description components unit, it is determined whether the operation object can be arranged at the placement location.
In the embodiment of the present invention, when detecting that the operation object reaches the placement location performed by the operational order
When, according to the object type of the operation object of acquisition, the placement rule corresponding to the object type is taken to determine whether will
The operation object is arranged at corresponding placement location.Since the object type of operation object is different, its corresponding placement rule
Also differ, so, the corresponding specific object type of the operation object is first got, and according to the object class of the operation object
Type, searches the placement rule of object type mapping, the placement rule to match further according to the object type with the operation object,
Determine whether operation object being arranged at corresponding placement location.
In one embodiment, as shown in figure 4, the step S203 may be implemented as the step S231- of description
S234:
Step S231, when the object type of the operation object of acquisition is single component, the placement location is obtained
Positional information;
Step S232, according to the positional information of the placement location of acquisition, judge the placement location whether be comprising
The corresponding placement location of assembly unit of multiple single components;
If step S233, described placement location is the corresponding placement location of assembly unit, the placement location pair is judged
Whether the assembly unit answered is fixation kit unit;If fixation kit unit, it is determined that the operation object cannot be set
At the placement location;If not fixation kit unit, it is determined that the operation object can be arranged on to the placement position
Put place;
If step S234, described placement location is the corresponding placement location of single component, it is determined that can be by the operation
Object is arranged at the placement location.
In the embodiment of the present invention, when the object type of the operation object of acquisition is single component, by being put described in acquisition
The positional information of seated position judges whether the placement location is the corresponding placement location of some pre-set assembly unit.Such as
The fruit placement location is not the corresponding placement location of some pre-set assembly unit, such as, which is single group
The single component, then be directly arranged at above-mentioned placement location by the corresponding placement location of part.
If the corresponding placement location of pre-set some assembly unit, needs extraction to be arranged on during the placement location
The attribute information of the assembly unit A of the placement location, by the above-mentioned attribute information of extraction come judge assembly unit A whether be
Default fixation kit unit;If it is judged that assembly unit A is default fixation kit unit, it is determined that cannot be by described in
The corresponding single component of operation object is arranged at the placement location;For example station symbol assembly unit includes local component and figure
Piece component, and the station symbol assembly unit is fixation kit unit, therefore, in the display box of display interface, do not allow user to
Corresponding single component is dragged in the station symbol assembly unit.If it is judged that assembly unit A is not default fixation kit list
Member, it is determined that the corresponding single component of the operation object can be arranged at the placement location;Such as the assembly unit
For user-defined assembly unit, it is determined that the operation object can be arranged at the placement location.
In one embodiment, as shown in figure 5, the step S204 may be implemented as the step S241- of description
S243:
Step S241, when the object type of the operation object of acquisition is the assembly unit comprising multiple components, obtain
Take in the corresponding display box of the placement location whether the existing assembly unit identical with the operation object;
If the assembly unit identical with the operation object is not present in step S242, described display box, it is determined that can
The operation object is arranged at the placement location;
If there is the assembly unit identical with the operation object in step S243, described display box, judge above-mentioned aobvious
Show whether the number of assembly unit identical with the operation object present in frame has reached predetermined threshold value;It is if not up to default
Threshold value, it is determined that the operation object can be arranged at the placement location;If reach predetermined threshold value, it is determined that cannot incite somebody to action
The operation object is arranged at the placement location.
In the embodiment of the present invention, when the object type of the operation object of acquisition is to include the assembly units of multiple single components
When, it is identical with the said modules unit B that need to be placed in the display box by judging to place single component and/or assembly unit
The quantity of assembly unit, to determine whether assembly unit B being placed in the display box at the corresponding placement location.Cause
This, when the object type for getting the operation object is the assembly unit comprising multiple components, obtains the placement first
In the display box of position correspondence whether the existing assembly unit identical with the operation object;If it is not present in the display box
During the described assembly unit B of the operation object such as above example, it is determined that can be directly corresponding by the operation object
Assembly unit is placed in display box at the corresponding placement location.
If there is the assembly unit identical with the operation object in the display box, obtain and deposited in the display box
The assembly unit identical with aforesaid operations object quantity;And judge present in above-mentioned display box with the operation object
Whether the number of identical assembly unit has reached predetermined threshold value;If not up to predetermined threshold value, it is determined that can be by the operation
Object is arranged at the placement location;If reach predetermined threshold value, it is determined that the operation object cannot be arranged on to described put
At seated position.
Step S30, when judging to meet default placement condition, the operation object is arranged on the placement location
Place;When judging not meeting default placement condition, the prompt message of output dragging failure, to prompt user cannot be by the behaviour
It is arranged on as object at the placement location.
According to above-mentioned judging result, judging that aforesaid operations object meets corresponding to the object type of the operation object
During placement condition, which is placed at above-mentioned placement location;, can also be direct after aforesaid operations object has been placed
The operation object placed is shown in display box, is checked for user.Judging that aforesaid operations object do not meet this
During placement condition corresponding to the object type of operation object, the prompt message of output dragging failure, so as to prompt user cannot
The operation object is arranged at corresponding placement location.
The described a kind of control method of component drag and drop of above example of the present invention, component institute is dragged by responding user
The operational order of triggering, performs the corresponding drag operation of the operational order, while identifies the corresponding operation of the operational order
The object type of object;When the operation object is dragged to the placement location that the operational order is directed toward, according to identifying
The operation object object type, judge the operation object being arranged at the placement location whether meet default put
Put condition;When judging to meet default placement condition, the operation object is arranged at the placement location;Judging
When not meeting default placement condition, the prompt message of output dragging failure, to prompt user to set the operation object
At the placement location;With the single component and/or the particular type of assembly unit dragged according to user come using difference
Control mode beneficial effect, improve intelligence and facilitation operation that the drag and drop to component are controlled;User is come
Say, due to that can notify the operating result of this drag and drop of user in time, improve user experience.
A kind of corresponding control method of component drag and drop provided in an embodiment of the present invention, present invention also offers a kind of component to drag
The control device put;As shown in fig. 6, a kind of control device of component drag and drop, including:Modules dragged 60, judgment module 70
With setup module 80;Wherein:
Described modules dragged 60, the operational order for dragging component for responding user and being triggered, performs the operational order
Corresponding drag operation, while identify the object type of the corresponding operation object of the operational order;
In one embodiment, as shown in fig. 7, described modules dragged 60 include:
Response unit 601, when dragging the operational order that component is triggered for receiving user, responds the operation and refers to
Order, performs the corresponding drag operation of the operational order, starts to drag the operation object that the operational order is directed toward;
Recognition unit 602, for while the operation object is dragged, extracting the attribute information of the operation object,
According to the attribute information extracted, the object type for identifying the operation object is single component or is to include multiple groups
The assembly unit of part.
The judgment module 70, for when the placement location that the operation object is dragged to the operational order direction
When, according to the object type of the operation object identified, judge the operation object being arranged at the placement location
Whether default placement condition is met;
In one embodiment, as shown in figure 8, the judgment module 70 includes:Detection unit 701, type acquiring unit
702nd, the first judging unit 703 and the second judging unit 704;Wherein:
The detection unit 701, for during the dragging operation object operation is performed, detecting the operation pair
As if the no placement location reached performed by the operational order;
The type acquiring unit 702, for when detecting that the operation object reaches the placement location, obtaining and knowing
The object type for the operation object not gone out still includes the assembly unit of multiple components for single component;
First judging unit 703, if the object type of the operation object obtained for the acquiring unit is
During single component, regular and described placement location is placed according to default single component, it is determined whether can be by the operation object
It is arranged at the placement location;
In one embodiment, as shown in figure 9, first judging unit 703 includes:
Position acquisition subelement 731, for the object type of the operation object obtained when the type acquiring unit
For single component when, obtain the positional information of the placement location;
Position judgment subelement 732, is used for:
The positional information of the placement location obtained according to the position acquisition subelement, judges that the placement location is
No is the corresponding placement location of the assembly unit comprising multiple single components;
If the placement location is the corresponding placement location of assembly unit, the corresponding component list of the placement location is judged
Whether member is fixation kit unit;If fixation kit unit, it is determined that the operation object cannot be arranged on the placement
At position;If not fixation kit unit, it is determined that the operation object can be arranged at the placement location;
If the placement location is the corresponding placement location of single component, it is determined that can be arranged on the operation object
At the placement location.
Second judging unit 704, if the object type of the operation object obtained for the acquiring unit is
During assembly unit comprising multiple components, rule is placed according to description components unit, it is determined whether can be by the operation object
It is arranged at the placement location.
In one embodiment, as shown in Figure 10, second judging unit 704 includes:
Component obtains subelement 741, for the object type of the operation object obtained when the type acquiring unit
For assembly unit comprising multiple components when, whether existing with the operation obtain in the corresponding display box of the placement location
The identical assembly unit of object;
Component judgment sub-unit 742, is used for:
If the assembly unit identical with the operation object is not present in the display box, it is determined that can be by the operation
Object is arranged at the placement location;
If there is the assembly unit identical with the operation object in the display box, judge exist in above-mentioned display box
The number of the assembly unit identical with the operation object whether reached predetermined threshold value;If not up to predetermined threshold value, really
Surely the operation object can be arranged at the placement location;If reach predetermined threshold value, it is determined that cannot be by the operation
Object is arranged at the placement location.
The setup module 80, for when judging to meet default placement condition, the operation object to be arranged on institute
State at placement location;When judging not meeting default placement condition, the prompt message of output dragging failure, to prompt user not
The operation object can be arranged at the placement location.
The described a kind of control device of component drag and drop of above example of the present invention, component institute is dragged by responding user
The operational order of triggering, performs the corresponding drag operation of the operational order, while identifies the corresponding operation of the operational order
The object type of object;When the operation object is dragged to the placement location that the operational order is directed toward, according to identifying
The operation object object type, judge the operation object being arranged at the placement location whether meet default put
Put condition;When judging to meet default placement condition, the operation object is arranged at the placement location;Judging
When not meeting default placement condition, the prompt message of output dragging failure, to prompt user to set the operation object
At the placement location;With the single component and/or the particular type of assembly unit dragged according to user come using difference
Control mode beneficial effect, improve intelligence and facilitation operation that the drag and drop to component are controlled;User is come
Say, due to that can notify the operating result of this drag and drop of user in time, improve user experience.
It should be understood by those skilled in the art that, the embodiment of the present invention can be provided as method, system or computer program
Product.Therefore, the present invention can use the reality in terms of complete hardware embodiment, complete software embodiment or combination software and hardware
Apply the form of example.Moreover, the present invention can use the computer for wherein including computer usable program code in one or more
The shape for the computer program product that usable storage medium is implemented on (including but not limited to magnetic disk storage and optical memory etc.)
Formula.
The present invention be with reference to according to the method for the embodiment of the present invention, the flow of equipment (system) and computer program product
Figure and/or block diagram describe.It should be understood that it can be realized by computer program instructions every first-class in flowchart and/or the block diagram
The combination of flow and/or square frame in journey and/or square frame and flowchart and/or the block diagram.These computer programs can be provided
The processors of all-purpose computer, special purpose computer, Embedded Processor or other programmable data processing devices is instructed to produce
A raw machine so that the instruction performed by computer or the processor of other programmable data processing devices, which produces, to be used in fact
The device for the function of being specified in present one flow of flow chart or one square frame of multiple flows and/or block diagram or multiple square frames.
These computer program instructions, which may also be stored in, can guide computer or other programmable data processing devices with spy
Determine in the computer-readable memory that mode works so that the instruction being stored in the computer-readable memory, which produces, to be included referring to
Make the manufacture of device, the command device realize in one flow of flow chart or multiple flows and/or one square frame of block diagram or
The function of being specified in multiple square frames.
These computer program instructions can be also loaded into computer or other programmable data processing devices so that counted
Series of operation steps is performed on calculation machine or other programmable devices to produce computer implemented processing, thus in computer or
The instruction performed on other programmable devices is provided and is used for realization in one flow of flow chart or multiple flows and/or block diagram one
The step of function of being specified in a square frame or multiple square frames.
Obviously, various changes and modifications can be made to the invention without departing from essence of the invention by those skilled in the art
God and scope.In this way, if these modifications and changes of the present invention belongs to the scope of the claims in the present invention and its equivalent technologies
Within, then the present invention is also intended to comprising including these modification and variations.
Claims (4)
- A kind of 1. control method of component drag and drop, it is characterised in that including:Response user drags the operational order that component is triggered, and performs the corresponding drag operation of the operational order, identifies at the same time The object type of the corresponding operation object of the operational order;When the operation object is dragged to the placement location that the operational order is directed toward, according to the operation pair identified The object type of elephant, judges the operation object is arranged at the placement location to whether meet default placement condition;When judging to meet default placement condition, the operation object is arranged at the placement location;Judging not When meeting default placement condition, the prompt message of output dragging failure, to prompt user to be arranged on the operation object At the placement location;It is described when the operation object is dragged to the placement location that the operational order is directed toward, according to the behaviour identified Make the object type of object, judge the operation object is arranged at the placement location to whether meet default placement condition, Including:During the dragging operation object operation is performed, detect whether the operation object reaches the operational order institute The placement location of execution;When detecting that the operation object reaches the placement location, the object type of the operation object identified is obtained Still include the assembly unit of multiple components for single component;If the object type of the operation object obtained is single component, placed according to default single component regular and described Placement location, it is determined whether the operation object can be arranged at the placement location;If the object type of the operation object obtained is the assembly unit comprising multiple components, according to description components unit Place rule, it is determined whether the operation object can be arranged at the placement location;If the object type of the operation object of the acquisition is the assembly unit comprising multiple components, according to description components Unit places rule, it is determined whether the operation object can be arranged at the placement location, including:When the object type of the operation object of acquisition is the assembly unit comprising multiple components, the placement location is obtained In corresponding display box whether the existing assembly unit identical with the operation object;If the assembly unit identical with the operation object is not present in the display box, it is determined that can be by the operation object It is arranged at the placement location;If there is the assembly unit identical with the operation object in the display box, judge present in above-mentioned display box with Whether the number of the identical assembly unit of the operation object has reached predetermined threshold value;If not up to predetermined threshold value, it is determined that energy It is enough that the operation object is arranged at the placement location;If reach predetermined threshold value, it is determined that cannot be by the operation object It is arranged at the placement location;If the object type of the operation object of the acquisition is single component, according to default single component place rule and The placement location, it is determined whether the operation object can be arranged at the placement location, including:When the object type of the operation object of acquisition is single component, the positional information of the placement location is obtained;According to the positional information of the placement location of acquisition, judge whether the placement location is comprising multiple single components The corresponding placement location of assembly unit;If the placement location is the corresponding placement location of assembly unit, judge that the corresponding assembly unit of the placement location is No is fixation kit unit;If fixation kit unit, it is determined that the operation object cannot be arranged on the placement location Place;If not fixation kit unit, it is determined that the operation object can be arranged at the placement location;If the placement location is the corresponding placement location of single component, it is determined that can be arranged on the operation object described At placement location.
- 2. the method as described in claim 1, it is characterised in that the response user drags the operational order that component is triggered, The corresponding drag operation of the operational order is performed, while identifies the object type of the corresponding operation object of the operational order, Including:When receiving the operational order that user's dragging component is triggered, the operational order is responded, performs the operational order pair The drag operation answered, starts to drag the operation object that the operational order is directed toward;While the operation object is dragged, the attribute information of the operation object is extracted, according to the attribute extracted Information, the object type for identifying the operation object are single component or are the assembly unit for including multiple components.
- A kind of 3. control device of component drag and drop, it is characterised in that including:Operational order that is modules dragged, dragging component for responding user and triggered, performs the corresponding dragging of the operational order Operation, while identify the object type of the corresponding operation object of the operational order;Judgment module, for when the operation object is dragged to the placement location that the operational order is directed toward, according to identification The object type of the operation object gone out, judge the operation object being arranged at the placement location whether meet it is default Placement condition;Setup module, for when judging to meet default placement condition, the operation object to be arranged on the placement location Place;When judging not meeting default placement condition, the prompt message of output dragging failure, to prompt user cannot be by the behaviour It is arranged on as object at the placement location;The judgment module includes:Detection unit, for during the dragging operation object operation is performed, detecting whether the operation object reaches Placement location performed by the operational order;Type acquiring unit, for when detecting that the operation object reaches the placement location, obtain identify it is described The object type of operation object still includes the assembly unit of multiple components for single component;First judging unit, if the object type of the operation object obtained for the acquiring unit is single component, Regular and described placement location is placed according to default single component, it is determined whether the operation object can be arranged on to described put At seated position;Second judging unit, if the object type of the operation object obtained for the acquiring unit is to include multiple components Assembly unit when, rule is placed according to description components unit, it is determined whether the operation object can be arranged on to described put At seated position;Second judging unit includes:Component obtains subelement, and the object type of the operation object for being obtained when the type acquiring unit is comprising more During the assembly unit of a component, obtain whether existing identical with the operation object in the corresponding display box of the placement location Assembly unit;Component judgment sub-unit, is used for:If the assembly unit identical with the operation object is not present in the display box, it is determined that can be by the operation object It is arranged at the placement location;If there is the assembly unit identical with the operation object in the display box, judge present in above-mentioned display box with Whether the number of the identical assembly unit of the operation object has reached predetermined threshold value;If not up to predetermined threshold value, it is determined that energy It is enough that the operation object is arranged at the placement location;If reach predetermined threshold value, it is determined that cannot be by the operation object It is arranged at the placement location;First judging unit includes:Position acquisition subelement, the object type of the operation object for being obtained when the type acquiring unit is single group During part, the positional information of the placement location is obtained;Position judgment subelement, is used for:According to the position acquisition subelement obtain the placement location positional information, judge the placement location whether be The corresponding placement location of assembly unit comprising multiple single components;If the placement location is the corresponding placement location of assembly unit, judge that the corresponding assembly unit of the placement location is No is fixation kit unit;If fixation kit unit, it is determined that the operation object cannot be arranged on the placement location Place;If not fixation kit unit, it is determined that the operation object can be arranged at the placement location;If the placement location is the corresponding placement location of single component, it is determined that can be arranged on the operation object described At placement location.
- 4. device as claimed in claim 3, it is characterised in that it is described it is modules dragged including:Response unit, when dragging the operational order that component is triggered for receiving user, responds the operational order, performs institute The corresponding drag operation of operational order is stated, starts to drag the operation object that the operational order is directed toward;Recognition unit, for while the operation object is dragged, the attribute information of the operation object being extracted, according to extraction The attribute information gone out, the object type for identifying the operation object are single component or are the component for including multiple components Unit.
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 CN104932796A (en) | 2015-09-23 |
CN104932796B true 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) |
Families Citing this family (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109782983B (en) * | 2017-11-13 | 2021-05-25 | 腾讯科技(深圳)有限公司 | View layout adjustment method and device for application program interface |
CN114237778A (en) * | 2020-09-09 | 2022-03-25 | 华为技术有限公司 | Interface display method and electronic equipment |
Citations (5)
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 |
-
2015
- 2015-06-02 CN CN201510296097.XA patent/CN104932796B/en not_active Expired - Fee Related
Patent Citations (5)
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 |
Also Published As
Publication number | Publication date |
---|---|
CN104932796A (en) | 2015-09-23 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US10554805B2 (en) | Information processing method, terminal, and computer-readable storage medium | |
CN106598868B (en) | Method and system a little are buried to the application program of client dynamic | |
US10637674B2 (en) | System and method for real-time decoding and monitoring for encrypted instant messaging and other information exchange applications | |
CN104077014B (en) | A kind of method and apparatus of information processing | |
WO2018120721A1 (en) | Method and system for testing user interface, electronic device, and computer readable storage medium | |
CN107357787B (en) | Semantic interaction method and device and electronic equipment | |
CN103197911A (en) | Method, system and device for providing speech input | |
CN107256428B (en) | Data processing method, data processing device, storage equipment and network equipment | |
US11102305B2 (en) | Method and system for routine disruption handling and routine management in a smart environment | |
CN104965664A (en) | Application operation method and apparatus | |
US20160050536A1 (en) | Identifying personalized meaningful locations | |
CN108804299A (en) | Application exception processing method and processing device | |
WO2017044670A1 (en) | Determining the destination of a communication | |
CN111491552A (en) | Sensor channels grouped by context for healthcare monitoring | |
CN106528409A (en) | Application crash problem finding method and device | |
CN106020622A (en) | Method and device for collecting emoticons | |
CN103986845B (en) | Information processing method and message processing device | |
CN105955644A (en) | Screen capture method and mobile terminal | |
CN104932796B (en) | A kind of control method and device of component drag and drop | |
CN104598133B (en) | The specification generation method and device of object | |
JP2020507149A (en) | Methods and systems for automated detection of inclusion or exclusion criteria | |
CN103888423B (en) | Information processing method and information processing equipment | |
Hammer et al. | Exploiting usage statistics for energy-efficient logical status inference on mobile phones | |
CN106990887A (en) | Data inputting method, device and terminal device | |
CN111539390A (en) | Small target image identification method, equipment and system based on Yolov3 |
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 |