CN100507842C - Method, device for controlling relation between control piece on interface and control piece display system - Google Patents

Method, device for controlling relation between control piece on interface and control piece display system Download PDF

Info

Publication number
CN100507842C
CN100507842C CNB2007100647454A CN200710064745A CN100507842C CN 100507842 C CN100507842 C CN 100507842C CN B2007100647454 A CNB2007100647454 A CN B2007100647454A CN 200710064745 A CN200710064745 A CN 200710064745A CN 100507842 C CN100507842 C CN 100507842C
Authority
CN
China
Prior art keywords
control
source
relationships
result
controls
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
Application number
CNB2007100647454A
Other languages
Chinese (zh)
Other versions
CN101046745A (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.)
Vimicro Corp
Original Assignee
Vimicro Corp
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 Vimicro Corp filed Critical Vimicro Corp
Priority to CNB2007100647454A priority Critical patent/CN100507842C/en
Publication of CN101046745A publication Critical patent/CN101046745A/en
Application granted granted Critical
Publication of CN100507842C publication Critical patent/CN100507842C/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Stored Programmes (AREA)

Abstract

The present invention provides a method for controlling relationship between control components on the interface. Said method includes the following several steps: setting N control component relationships, in every control component relationship source control component can be used for directly controlling target control component, and N is signless integer greater than or equal to 2; sequencing said N control component relationships; and successively processing said N control component relationships according to the sequenced result. Besides, said invention also provides a device for controlling relationship between control components on the interface based on above-mentioned method and a control component display system.

Description

Method and device for controlling relationship between controls on interface and control display system
Technical Field
The invention relates to the technical field of computer software, in particular to a method and a device for controlling the relationship between controls on an interface and a control display system.
Background
Generally, the number of the controls involved in the interface program is large, the control relationship among the controls is complex, and besides the direct control relationship, indirect multilayer control relationship also exists among different controls, for example, the control a directly controls the control B, the control B directly controls the control C, the control C may also control other controls, and the like. The huge number of the controls and the complicated control relationship among the controls lead software developers to spend a great deal of time and energy before writing control relationship sentences among the controls to manually comb the logical relationship among the controls, thus leading the software development efficiency to be lower.
Disclosure of Invention
The invention provides a method for controlling the relation between controls on an interface, which is applied to a computer program for controlling a computer by using the controls on the computer interface, and comprises the following steps:
setting N control relationships according to the control relationships among the controls, wherein in each control relationship, the source control directly controls the target control; and N is a positive integer greater than or equal to 2;
sequencing the N control relationships according to the relationship between the target control in each control relationship and the source control in other control relationships;
sequentially processing the N control relationships according to the sequencing result to obtain a control result of the source control on the target control in each control relationship;
determining whether each control in the N control relationships is available or unavailable according to the control result;
and displaying the control through a computer interface according to a display mode corresponding to the availability or the unavailability.
Preferably, the step of setting N control relationships includes:
in each control relation, setting the identification id of the source control and the logic value of the source control, and setting the id of the target control and the state information of the target control corresponding to the logic value of the source control.
Preferably, the step of sorting the N control relationships includes:
and traversing the N control relationships, and if the target control of one control relationship is the same as the source control in the other control relationships, taking the same control as the logic sequence of the control relationship of the target control and arranging the logic sequence before the control as the source control.
Preferably, the result obtained by sorting the N control relationships includes:
the N control relationships are arranged in a logical order.
Preferably, the step of sequentially processing the control relationships includes:
judging the type of the source control according to the id of the source control;
and judging whether the logic value of the source control is met or not according to the type of the source control to obtain a control result.
Preferably, the control result includes:
if the logical value of the source control is satisfied, the control result of the source control on the target control in the same control relation with the source control is the same as the set state information of the target control; or,
and if the logical value of the source control is not met, the control result of the source control on the target control in the same control relation with the source control is opposite to the set state information of the target control.
Preferably, the step of sequentially processing the control relationships includes:
if a plurality of source controls exist in one control relationship, setting a logical operation relationship among the logical values of the source controls, obtaining a logical operation result according to the logical value of each source control and the logical operation relationship, and taking the logical operation result as a logical value corresponding to the plurality of source controls.
Preferably, after deriving the control result, the method further comprises:
and displaying the controls in a state corresponding to the available state or the unavailable state.
Preferably, the source control is a radio box, a check box or a drop-down list.
The invention also provides a device for controlling the relationship between the controls on the interface, which is applied to a computer program for controlling a computer by using the controls on the computer interface, and comprises the following steps: the control relation setting module, the sequencing module and the processing module; wherein,
the control relation setting module is used for setting N control relations according to the control relation among the controls and transmitting the information of the N control relations to the sequencing module;
the sequencing module is used for receiving the information from the control relation setting unit, sequencing the N control relations according to the relation between the target control in each control relation and the source control in other control relations, and transmitting the sequencing result to the processing unit;
the processing module is used for receiving the sequencing result and sequentially processing the N control relationships according to the sequencing result; obtaining a control result of the source control on the target control in each control relation; determining whether each control in the N control relationships is available or unavailable according to the control result;
in each control relationship, the source control directly controls the target control; and N is a positive integer greater than or equal to 2.
Preferably, the sorting module comprises: the control searching unit and the sequencing unit; wherein,
the control searching unit is used for searching a control from the N control relations, wherein the control is a target control in one control relation and a source control in other control relations; and transmitting the searched control information to a sorting unit;
and the sequencing unit is used for taking the control as the logic sequence of the control relation of the target control and arranging the control before the control relation of the source control.
Preferably, the processing module comprises: a judging unit and a processing unit; wherein,
the judging unit is used for judging the type of the source control and transmitting the judgment result to the processing unit;
and the processing unit is used for judging whether the logic value of the source control is met or not according to the type of the source control to obtain a control result.
The invention also provides a control display system, comprising: the device for controlling the relationship between the controls on the interface, the information reading module and the display module;
the device for controlling the relation between the controls on the interface is applied to a computer program for controlling a computer by using the controls on the computer interface, and comprises the following steps: the control relation setting module, the sequencing module and the processing module;
the control relation setting module is used for setting N control relations according to the control relation among the controls and transmitting the information of the N control relations to the sequencing module;
the sequencing module is used for receiving the information from the control relation setting unit, sequencing the N control relations according to the relation between the target control in each control relation and the source control in other control relations, and transmitting the sequencing result to the processing unit;
the processing module is used for receiving the sequencing result and sequentially processing the N control relationships according to the sequencing result; obtaining a control result of the source control on the target control in each control relation; determining whether each control in the N control relationships is available or unavailable according to the control result;
in each control relationship, the source control directly controls the target control; and N is a positive integer greater than or equal to 2;
the information reading module is used for reading the processing result of the processing module on the N control relationships from the device and transmitting the read information to the display module;
and the display module is used for receiving the information from the information reading module and displaying each target control according to the state corresponding to the processing result.
The method, the device and the control display system for controlling the relationship between the controls on the interface, provided by the invention, sequence the control relationships by setting the control relationships between the source controls and the target controls, process the control relationships according to the sequencing result, and realize the control of the source controls on the target controls.
Drawings
FIG. 1 is a general flow diagram of a method for controlling relationships between controls on an interface according to the present invention;
FIG. 2 is a schematic diagram of an apparatus for controlling relationships between controls on an interface according to the present invention;
FIG. 3 is a schematic structural diagram of a control display system provided by the present invention;
FIG. 4 is a flow chart of the control display in the preferred embodiment of the present invention;
FIG. 5 is a flow diagram of the ordering of control relationships in the present invention;
FIG. 6 is a flow chart of processing control relationships to display controls in the present invention.
Detailed Description
In order to make the technical solution and advantages of the present invention clearer, the present invention will be described in further detail with reference to the accompanying drawings.
Referring to fig. 1, fig. 1 is a general flowchart of a method for controlling relationships between controls on an interface, the method including the following steps:
step 101, setting N control relationships, wherein N is a positive integer greater than or equal to 2.
And 102, sequencing the N control relationships.
And 103, sequentially processing the N control relationships according to the sorting result.
In the invention, the control controlling other controls in the control relationship is called a source control, and the controlled control is called a destination control. The control relationship may be a control relationship between the source control and the destination control, and the control relationship is that the source control directly controls the destination control. In practical applications, because of the existence of multiple layers of control relationships between controls, it may happen that one control is a destination control in a certain control relationship and a source control in other control relationships. In specific application, the invention utilizes the existing control identification (id) technology to uniquely identify each control, so that one control can be uniquely confirmed according to the identification, regardless of whether the control is a source control or a target control.
The general flow of the above method will be described below.
In step 101, setting N control relationships may be: and in each control relationship, setting the id of the source control and the logic value of the source control, and setting the id of the destination control and the state information of the destination control corresponding to the logic value of the source control.
In the step 102, it should be noted that, in the multiple control relationships, if the target control in one control relationship is the source control in the other control relationships, the two control relationships are in order in the execution logic. As for the three controls A, B and C mentioned in the background, in the present invention, one control relationship may be set to be formed by a and B and another control relationship formed by B and C. It can be seen from the simple control relationship between the three controls that there is an inherent logical relationship between the two control relationships, i.e., the control result of control a on control B will affect the result of control B as the source control controlling control C. Therefore, the invention considers that the source control and the target control which have direct control relation form control relation, and then sorts the control relations based on the logic relation which may exist among the control relations, thereby being capable of collating the control relations among a plurality of controls. Then, in the present invention, sorting the N control relationships may be: and traversing the N control relationships, and if the target control of one control relationship is the same as the source control in the other control relationships, taking the same control as the logic sequence of the control relationship of the target control and arranging the logic sequence before the control as the source control. After the sorting step, the obtained sorting result may be: the N control relationships are arranged in a logical order.
Based on the method, the invention also provides a device for controlling the relationship between the controls on the interface. Referring to fig. 2, fig. 2 is a schematic structural diagram of the apparatus, including: the control relation setting module, the sequencing module and the processing module; wherein,
the control relation setting module is used for setting N control relations and transmitting the information of the N control relations to the sequencing module;
the sequencing module is used for receiving the information from the control relation setting unit, sequencing the N control relations and transmitting a sequencing result to the processing unit;
and the processing module is used for receiving the sequencing result and sequentially processing the N control relationships according to the sequencing result.
The sorting module comprises: the control searching unit and the sequencing unit; wherein,
the control searching unit is used for searching a control from the N control relations, wherein the control is a target control in one control relation and a source control in other control relations; and transmitting the searched control information to a sorting unit;
and the sequencing unit is used for taking the control as the logic sequence of the control relation of the target control and arranging the control before the control relation of the source control.
When the technical scheme provided by the invention is specifically applied, because the number of the control relations to be set can be numerous, and the workload of the program statements to be written for sequencing the numerous control relations is large, in practical application, a general control relation function and a sequencing function can be defined, and when the logic control relations among the numerous controls need to be obtained, the two functions can be called.
In practical application, the method for forming the control relation function may be: the function name that may define the function is: add _ Relation; according to the above description of step 101, the function may include at least four parameters, which are: the source control id, the logical value of the source control, the destination control id and the state information of the destination control; if the situation is that a plurality of source controls control a target control, then the Add _ relationship function can further Add other source control id and its logic value; the last group of parameters can be defined as the parameters of the target control; according to the type of the common control, the control id can be an identifier of a radio box, a check box or a drop-down list; for different control types, the meaning of the logical value of the source control can be predefined, and if the source control is a check box and the logical value of the source control is 0, the check box is checked; otherwise, if the logical value of the source control is 1, it indicates that the check box is not selected; the state information of the destination control usually reflects that the destination control is in an available (Enable) state or an unavailable (Disable) state; similarly, the format and meaning of the logical values can be defined when the source control is a drop down list. For automatic error correction, an error correction mechanism can be further provided, for example, when the function is called, the number of the filled parameters can be set to be more than or equal to 4 even numbers; if not, an error prompt can be given. In addition, in practical applications, the result of calling the Add _ relationship function, that is, the set multiple control relationships, may be stored in various forms, such as a linked list pointer form, a table form, a text form, and the like, so as to facilitate the calling of the subsequent sorting function.
The ranking function may be formed by: the function name that may define the function is: sort; the parameter of the function may be an index for storing the result of the Add _ relationship function, such as an address, when the sorting function is called, a linked list or a table for storing the control relationship may be found through the address index, and based on the logical order of the control relationship where the same control is located as the target control, the sorting mechanism arranged before the control relationship where the control is located as the source control sorts the plurality of control relationships; as for writing the sorting function statement, the algorithm for realizing sorting can be realized by adopting the existing sequential sorting, quick sorting or bubble sorting and the like. In practical application, after the control relationships are set, the ranking order of the control relationships can be automatically obtained by calling the ranking function, a software developer does not need to spend a large amount of time to manually comb the control relationships, and errors are not easy to occur.
In practical application, the method and the device provided by the invention can be applied to the writing of interface programs, so the invention also provides a control display system, referring to fig. 3, wherein fig. 3 is a schematic structural diagram of the system, and the system can comprise a device for controlling the relationship among controls on an interface, an information reading module and a display module;
the apparatus for controlling the relationship between the controls on the interface may include, as shown in fig. 2: the control relation setting module, the sequencing module and the processing module;
the information reading module is used for reading the processing result of the processing module on the N control relationships from the device and transmitting the read information to the display module;
and the display module is used for receiving the information from the information reading module and displaying each target control according to the state corresponding to the processing result.
By setting the control relation function and the sequencing function, the two functions can be directly called when the related statements are written, and the writing amount of program statements can be effectively reduced.
The sorting module in the device for controlling the relationship between the controls on the interface can also comprise the control searching unit and the sorting unit.
The following specific examples further illustrate the above-described embodiments of the present invention. Referring to fig. 4, fig. 4 is a flowchart of the control display in the preferred embodiment of the present invention, which includes the following steps:
step 401, calling a control relation function, and setting a plurality of control relations.
In the step, the control relationship between the controls A and G needs to be set, wherein A controls B and E, C controls D, B controls C and F, and G controls E. For convenience, the identifications of the A-G controls are represented by a-G lower case letters. If the A-G controls are check boxes, the logical value of the source control can be set to be 0, the fact that the state information of the target control is true when the check boxes are checked is shown, and the state information of the target control is false if the check boxes are not checked; and setting the logic value of the source control as 1, wherein the logic value indicates that the state information of the target control is true when the check box is not checked, and the state information of the target control is false if the check box is not checked.
The Add _ Rtranslation function is called as follows:
Add_Rlation(A,0,G,0,E,Enable)
Add_Rlation(C,0,D,Enable)
Add_Rlation(B,0,C,Enable)
Add_Rlation(A,0,B,Enable)
Add_Rlation(B,0,F,Enable)
the control relationship function indicates that if control A, B, C or G is selected as the source control, then the state information of the destination control controlled by A, B, C or G is true.
If the controls a to G are drop-down lists, for convenience, the number of controllable destination controls of each source control may be set to be at least 4, and the destination controls may be available when the source control selects items 1, 3, and 4; when the source control selects other items, the destination control is unavailable. E.g., when A selects items 1, 3, 4, B is available; when C selects item 1, 3, 4, D is available, etc., and the available status information for the destination control is represented by a "1". Then the Add _ Rversion function may be invoked as follows:
Add_Rlation(A,1101,G,1101,E,1)
Add_Rlation(C,1101,D,1)
Add_Rlation(B,1101,C,1)
Add_Rlation(A,1101,B,1)
Add_Rlation(B,1101,F,1)
in the drop-down list, the logical value of the source control is represented by a binary number, or may be represented by other binary numbers, as long as the meaning of the logical value can be embodied by convention.
And step 402, adding the set control relationship into a control relationship table.
Referring to table 1, table 1 shows a control relationship table, and the information filled in the table is the result of the call of the Add _ Rlation function. Let the address of table 1 be address.
A→E G→E C→D B→C A→B B→F
TABLE 1
And step 403, calling a sorting function, and sorting the plurality of set control relationships to obtain a sorting result.
In this step, the sorting function obtains the information of table 1 according to the address information of table 1, and sorts the control relationships in table 1, so as to obtain the result that the control relationships formed by controls a to G are arranged in the logical order. Referring to table 2, table 2 shows a sorting result obtained by sorting the plurality of control relationships, where the plurality of control relationships formed between the controls a to G are sequentially arranged in a logical order.
A→E G→E A→B B→C C→D B→F
TABLE 2
Referring to fig. 5, fig. 5 is a flowchart for sorting control relationships in the present invention, and the flowchart may include the following steps:
step 501, according to the id of a target control in the current control relationship, searching whether the target control is the same as a source control in other control relationships in table 1, if yes, executing step 502; otherwise, step 503 is executed.
Step 502, arranging the control relationship where the control is located as the destination control before the control relationship where the control is located as the source control, and executing step 503.
Step 503, judging whether a next control relationship exists, if so, returning to execute step 501; otherwise, the sorting flow ends.
The sorting flow actually embodies the implementation process of the sorting function. In particular implementations, the default starting value may be ordered with the first control relationship in table 1.
And 404, sequentially processing the control relationships according to the sequencing result, and displaying the target control according to the state corresponding to the processing result.
In the invention, the essence of sequencing the control relationships according to the sequencing mechanism is to sequence the logic sequence between the two control relationships, because only when one control is available in the control relationship in which the target control is located, the control can be controlled by other target controls when the control is used as a source control in other control relationships; on the other hand, if the control is not available as the destination control, the control cannot control other controls. It can be seen that the priority of the control relationship of one control as the destination control should be higher than the priority of the control relationship of the control as the source control, and when the control relationship is processed, the previous control relationship should be processed first, and then the next control relationship should be processed based on the processing result of the previous control relationship. Correspondingly, the sequencing is also to arrange the control relationships according to a logic sequence, so that the control relationships are sequentially processed according to a sequencing result, and the control of each source control on the target control is realized.
In step 404, sequentially processing the control relationships according to the sorting result may be: and sequentially processing the control relationships according to the logic sequence of the control relationships formed among the controls A to G to obtain the control result of the source control on the target control in each control relationship. Referring to FIG. 6, FIG. 6 is a flow diagram of processing a control relationship to display a control, which may include:
step 601, judging the type of the source control according to the id of the source control.
In this step, the meaning of the logical value can be determined according to the control type.
Step 602, judging whether the logical value of the source control is satisfied according to the type of the source control, if so, executing step 603; otherwise, step 604 is performed.
The judgment in the step is based on that whether the check box is checked or not can be judged for the check box; for a drop down list, it may be determined which items in the drop down list are selected.
Step 603, obtaining that the control result of the source control on the destination control is the same as the set state information of the destination control, and executing step 605.
If A is a check box, when A is checked, the logical value of A is satisfied, and the control result of A on the target control B or E is that the control B or E is in an available state.
Step 604, obtaining the control result of the source control on the destination control, which is opposite to the set state information of the destination control, and then step 605 is executed.
If A is still a check box, when A is not selected, the logical value of A is not satisfied, and the control result of A on the target control B or E is that the control B or E is in an unavailable state.
And step 605, displaying the target control according to the state corresponding to the control result.
As for the display form of the existing interface control, for the unavailable control, inoperable gray can be displayed; for available controls, corresponding display forms can be given.
Step 606, judging whether any control relation needs to be processed, if so, returning to execute step 601; otherwise, the process flow is ended.
Accordingly, the processing module in the apparatus shown in fig. 2 may include: a judging unit and a processing unit; wherein,
the judging unit is used for judging the type of the source control and transmitting the judgment result to the processing unit;
and the processing unit is used for judging whether the logic value of the source control is met or not according to the type of the source control to obtain a control result.
In addition, as can be seen from the foregoing step 502 to step 504, in the present invention, when writing the statement of the source control controlling the destination control, only one statement of the control result needs to be written, that is, if the logical value of the source control is satisfied, the obtained state information of the destination control can be automatically derived by the program when the logical value of the source control is not satisfied; the condition that the condition of writing the source control is not satisfied and the condition that the condition of writing the source control is not satisfied are not needed like the prior art. Therefore, the technical scheme provided by the invention can also effectively reduce the writing amount of program statements, particularly under the condition that a plurality of source controls control one target control, such as in table 1 or table 2, E is controlled by A and G, so that in the invention, the logical operation relationship among the logical values of all the source controls can be set, the logical operation result is obtained according to the logical value of each source control and the logical operation relationship, and the logical operation result is used as the logical value corresponding to the plurality of source controls. For example, if a logical operation relationship in which a and G are and is given, then when one of the logical values of a and G is "0", the logical operation result is "0", that is, if as a check box, E is available as long as one of a or G is checked. In the invention, when the statement that a plurality of source controls control one target control is written, the writing workload of the program statement is less because only one control statement needs to be written under one condition. In the prior art, if the source control controls the target control under the condition, the combination of various conditions needs to be considered comprehensively, for example, if both a and G are selected, the control result is how; a or G is selected to control the result; and so on. Therefore, compared with the prior art, the technical scheme provided by the invention is adopted to control the control, so that the writing amount of program statements can be effectively reduced, and the software development efficiency can be improved.
In addition, in a specific implementation, the processing module and the display module in the control display system provided by the present invention may also be integrated into one integrated module, and the module function may correspond to the operations implemented in steps 501 to 506. During specific implementation, a display function can be abstracted from the integrated module, the parameter of the display function is appointed to be the calling result of the sequencing function and the calling result of the control relation function, and the specific implementation mode is more and is not repeated.
In summary, the method, the device and the control display system for controlling the relationship between the controls on the interface provided by the invention sequence the plurality of control relationships by setting the control relationships between the plurality of source controls and the target control, process the plurality of control relationships according to the sequencing result, and control the target control by the source control.
In addition, because the invention realizes the control of the target control by utilizing the set control relation, when writing the program statement related to the control, only the condition that the condition of the source control is met or not met can be written, and the condition that the condition is met or not met does not need to be written, thereby effectively writing the program statement and effectively improving the software development efficiency.

Claims (13)

1. A method for controlling the relationship between controls on an interface, which is applied to a computer program for controlling a computer by using the controls on the computer interface, comprises the following steps:
setting N control relationships according to the control relationships among the controls, wherein in each control relationship, the source control directly controls the target control; and N is a positive integer greater than or equal to 2;
sequencing the N control relationships according to the relationship between the target control in each control relationship and the source control in other control relationships;
sequentially processing the N control relationships according to the sequencing result to obtain a control result of the source control on the target control in each control relationship;
determining whether each control in the N control relationships is available or unavailable according to the control result;
and displaying the control through a computer interface according to a display mode corresponding to the availability or the unavailability.
2. The method of claim 1, wherein the step of setting the N control relationships comprises:
in each control relation, setting the identification id of the source control and the logic value of the source control, and setting the id of the target control and the state information of the target control corresponding to the logic value of the source control.
3. The method of claim 2, wherein the step of ordering the N control relationships comprises:
and traversing the N control relationships, and if the target control of one control relationship is the same as the source control in the other control relationships, taking the same control as the logic sequence of the control relationship of the target control and arranging the logic sequence before the control as the source control.
4. The method of claim 3, wherein the sorting the N control relationships results in:
the N control relationships are arranged in a logical order.
5. The method according to claim 2 or 3, wherein the step of sequentially processing the control relationships comprises:
judging the type of the source control according to the id of the source control;
and judging whether the logic value of the source control is met or not according to the type of the source control to obtain a control result.
6. The method of claim 5, wherein the control result comprises:
if the logical value of the source control is satisfied, the control result of the source control on the target control in the same control relation with the source control is the same as the set state information of the target control; or,
and if the logical value of the source control is not met, the control result of the source control on the target control in the same control relation with the source control is opposite to the set state information of the target control.
7. The method according to claim 2 or 3, wherein the step of sequentially processing the control relationships comprises:
if a plurality of source controls exist in one control relationship, setting a logical operation relationship among the logical values of the source controls, obtaining a logical operation result according to the logical value of each source control and the logical operation relationship, and taking the logical operation result as a logical value corresponding to the plurality of source controls.
8. A method according to claim 2 or 3, characterized in that after deriving the control result, the method further comprises:
and displaying the controls in a state corresponding to the available state or the unavailable state.
9. The method of claim 1, wherein the source control is a radio box, a check box, or a drop down list.
10. An apparatus for controlling relationships between controls on an interface, for use in a computer program for controlling a computer using controls on a computer interface, comprising: the control relation setting module, the sequencing module and the processing module; wherein,
the control relation setting module is used for setting N control relations according to the control relation among the controls and transmitting the information of the N control relations to the sequencing module;
the sequencing module is used for receiving the information from the control relation setting unit, sequencing the N control relations according to the relation between the target control in each control relation and the source control in other control relations, and transmitting the sequencing result to the processing unit;
the processing module is used for receiving the sequencing result and sequentially processing the N control relationships according to the sequencing result; obtaining a control result of the source control on the target control in each control relation; determining whether each control in the N control relationships is available or unavailable according to the control result;
in each control relationship, the source control directly controls the target control; and N is a positive integer greater than or equal to 2.
11. The apparatus of claim 10, wherein the ordering module comprises: the control searching unit and the sequencing unit; wherein,
the control searching unit is used for searching a control from the N control relations, wherein the control is a target control in one control relation and a source control in other control relations; and transmitting the searched control information to a sorting unit;
and the sequencing unit is used for taking the control as the logic sequence of the control relation of the target control and arranging the control before the control relation of the source control.
12. The apparatus of claim 10 or 11, wherein the processing module comprises: a judging unit and a processing unit; wherein,
the judging unit is used for judging the type of the source control and transmitting the judgment result to the processing unit;
and the processing unit is used for judging whether the logic value of the source control is met or not according to the type of the source control to obtain a control result.
13. A control display system, comprising: the device for controlling the relationship between the controls on the interface, the information reading module and the display module;
the device for controlling the relation between the controls on the interface is applied to a computer program for controlling a computer by using the controls on the computer interface, and comprises the following steps: the control relation setting module, the sequencing module and the processing module;
the control relation setting module is used for setting N control relations according to the control relation among the controls and transmitting the information of the N control relations to the sequencing module;
the sequencing module is used for receiving the information from the control relation setting unit, sequencing the N control relations according to the relation between the target control in each control relation and the source control in other control relations, and transmitting the sequencing result to the processing unit;
the processing module is used for receiving the sequencing result and sequentially processing the N control relationships according to the sequencing result; obtaining a control result of the source control on the target control in each control relation; determining whether each control in the N control relationships is available or unavailable according to the control result;
in each control relationship, the source control directly controls the target control; and N is a positive integer greater than or equal to 2;
the information reading module is used for reading the processing result of the processing module on the N control relationships from the device and transmitting the read information to the display module;
and the display module is used for receiving the information from the information reading module and displaying each target control according to the state corresponding to the processing result.
CNB2007100647454A 2007-03-23 2007-03-23 Method, device for controlling relation between control piece on interface and control piece display system Expired - Fee Related CN100507842C (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CNB2007100647454A CN100507842C (en) 2007-03-23 2007-03-23 Method, device for controlling relation between control piece on interface and control piece display system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CNB2007100647454A CN100507842C (en) 2007-03-23 2007-03-23 Method, device for controlling relation between control piece on interface and control piece display system

Publications (2)

Publication Number Publication Date
CN101046745A CN101046745A (en) 2007-10-03
CN100507842C true CN100507842C (en) 2009-07-01

Family

ID=38771383

Family Applications (1)

Application Number Title Priority Date Filing Date
CNB2007100647454A Expired - Fee Related CN100507842C (en) 2007-03-23 2007-03-23 Method, device for controlling relation between control piece on interface and control piece display system

Country Status (1)

Country Link
CN (1) CN100507842C (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110780946A (en) * 2019-10-30 2020-02-11 京东数字科技控股有限公司 Method and apparatus for processing information

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102135884A (en) * 2011-03-18 2011-07-27 北京星网锐捷网络技术有限公司 Linkage method, device and system for control piece
CN103914288B (en) * 2012-12-31 2017-06-06 鼎捷软件股份有限公司 The method for judging control state
CN104423775A (en) * 2013-08-21 2015-03-18 腾讯科技(深圳)有限公司 Method and device for displaying application software homepage
CN104133684A (en) * 2014-08-04 2014-11-05 浪潮通用软件有限公司 Graphical user interface state control method based on state machine

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110780946A (en) * 2019-10-30 2020-02-11 京东数字科技控股有限公司 Method and apparatus for processing information
CN110780946B (en) * 2019-10-30 2021-05-25 京东数字科技控股有限公司 Method and apparatus for processing information

Also Published As

Publication number Publication date
CN101046745A (en) 2007-10-03

Similar Documents

Publication Publication Date Title
CN107908540B (en) Test case creating method and device, computer equipment and medium
US20100293538A1 (en) Dynamic program updating in a continuation based runtime
CN100507842C (en) Method, device for controlling relation between control piece on interface and control piece display system
US7243354B1 (en) System and method for efficiently processing information in a multithread environment
CN104834759A (en) Realization method and device for electronic design
CN112527449A (en) Cluster node label creating method and system, electronic device and storage medium
CN113268331B (en) Robot calling method, robot calling device, management system, and storage medium
CN102004660A (en) Realizing method and device of business flows
CN107391361B (en) Automatic POS terminal testing method and device
CN111953503A (en) NFV resource deployment arrangement method and network function virtualization orchestrator
CN107391257B (en) Method, device and server for estimating memory capacity required by service
CN110837412B (en) Method, device, equipment and storage medium for judging operation ready state
CN113254106A (en) Task execution method and device based on Flink, computer equipment and storage medium
CN108089895B (en) Activity registration method and device in plug-in, electronic equipment and storage medium
CN105893614A (en) Information recommendation method and device and electronic equipment
CN107766228A (en) It is a kind of based on multilingual automated testing method and device
CN103970790B (en) Report combined method and equipment
CN113468169B (en) Hardware database query method, database system query method and device
CN110955813A (en) Data crawling method and device
CN116263717A (en) Order service processing method and device based on event
CN112363819A (en) Big data task dynamic scheduling method and device and computing equipment
CN106934555B (en) Workflow organization method and device, computer equipment and storage medium
JP5209438B2 (en) Document processing device
CN110232043A (en) Show method, system, electronic equipment and the computer storage medium of file
CN113806205A (en) Software performance testing method and device, electronic equipment and readable storage medium

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
C17 Cessation of patent right
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20090701

Termination date: 20120323