CN101963900A - Behavior propagation control method of UI (User Interface) layer - Google Patents
Behavior propagation control method of UI (User Interface) layer Download PDFInfo
- Publication number
- CN101963900A CN101963900A CN2009100897590A CN200910089759A CN101963900A CN 101963900 A CN101963900 A CN 101963900A CN 2009100897590 A CN2009100897590 A CN 2009100897590A CN 200910089759 A CN200910089759 A CN 200910089759A CN 101963900 A CN101963900 A CN 101963900A
- Authority
- CN
- China
- Prior art keywords
- behavior
- control
- propagation
- meta
- control method
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
Images
Abstract
The invention provides a behavior propagation control method of a UI (User Interface) layer. The method comprises the following steps of: associating the base attribute of a UI control with a UI behavior propagation mechanism in a UI metamodel, wherein the UI control comprises the base attribute, events, a UI behavior and UI behavior propagation; analyzing the UI metamodel and generating an actual UI control according to the base attribute of the UI control; mapping the event corresponding to the actual UI control to a UI metamodel event through the UI metamodel when the actual UI control is operated; and triggering the UI behavior through the UI metamodel event, and searching the UI behavior propagation when the UI behavior is executed. The invention overcomes the defect in the prior art that once a code is compiled, linked and put into service, the function of the code is cured and cannot be changed, and if the function needs to be customized, the code needs to be modified, renewedly compiled and linked, which causes that the flexibility of applications is poor.
Description
Technical field
The present invention relates to field of human-computer interaction, in particular to a kind of behavior transmission control method of UI layer.
Background technology
In relating to the applied software development of UI, a function is normally finished by a plurality of UI widget interactions in the application, and often similar mechanism such as message realize by sending for mutual between the UI control, and transmission of news path hard coded advances the UI layer.
In realizing process of the present invention, in case the inventor finds in the prior art code compiling link and when being delivered for use, this function just is cured, can not changes, if desired customization function, just need to revise code and recompilate link, cause the dirigibility of application program relatively poor.
Summary of the invention
The present invention aims to provide a kind of behavior transmission control method of UI layer, in case overcome in the prior art code compiling link and when being delivered for use, this function just is cured, can not changes, customization function if desired, just need to revise code and recompilate link, cause the relatively poor problem of dirigibility of application program.
In embodiments of the present invention, provide a kind of behavior transmission control method of UI layer, may further comprise the steps:
Base attribute with the UI control in the UI meta-model is associated with UI behavior mechanism of transmission, and wherein, the UI control comprises: base attribute, incident, UI behavior and UI behavior are propagated;
The UI meta-model is resolved, generate actual UI control according to the base attribute of UI control;
During to the operation of actual UI control, the incident of actual UI control correspondence is mapped to UI meta-model incident by the UI meta-model;
By UI meta-model Event triggered UI behavior, when the UI behavior is carried out, search the UI behavior and propagate.
Preferably, in the behavior transmission control method of above-mentioned UI layer, the UI behavior is carried out and is specifically comprised: obtain the UI control from the UI meta-model; The execution body of the method for the UI behavior of execution UI control, wherein, the UI behavior comprises a plurality of methods.
Preferably, in the behavior transmission control method of above-mentioned UI layer, search UI behavior propagation and specifically comprise: the propagation of from the UI behavior is propagated, searching the method for UI behavior; If the propagation of the method for UI behavior exists, carry out the method for the UI behavior of propagating corresponding UI control.
Preferably, in the behavior transmission control method of above-mentioned UI layer, further comprising the steps of: as, to propagate and finish if the propagation of the method for UI behavior does not exist.
Preferably, in the behavior transmission control method of above-mentioned UI layer, carrying out body is the output function of DLL.
Preferably, in the behavior transmission control method of above-mentioned UI layer, carrying out body is the function of script.
Preferably, in the behavior transmission control method of above-mentioned UI layer, carrying out body is the interface method of com component.
In an embodiment of the present invention, a kind of behavior transmission control method of UI layer is provided, the mode that this method adopts the UI behavior to propagate is set the implementation of UI operation arbitrarily, the UI behavioral approach is realized that propagating definition with the UI behavior separates, and use pretreated mode to be ready to the next needed data of propagating in advance, in case overcome in the prior art code compiling link and when being delivered for use, this function just is cured, can not change, customization function if desired, just need to revise code and recompilate link, the relatively poor problem of dirigibility that causes application program, and then reached the dirigibility that improves application program, satisfy the demand of the user individual of application program; The efficient that the raising behavior is propagated; Reduce the coupling between the code, be beneficial to the effect of the expansion and the maintenance of system.
Description of drawings
Accompanying drawing described herein is used to provide further understanding of the present invention, constitutes the application's a part, and illustrative examples of the present invention and explanation thereof are used to explain the present invention, do not constitute improper qualification of the present invention.In the accompanying drawings:
Fig. 1 shows the behavior transmission control method process flow diagram of UI layer according to an embodiment of the invention;
Fig. 2 shows according to an embodiment of the invention the interface operation function and propagates realization flow figure by behavior between the UI control;
Fig. 3 shows UI behavior according to an embodiment of the invention and propagates realization flow figure.
Embodiment
Below with reference to the accompanying drawings and in conjunction with the embodiments, describe the present invention in detail.
Fig. 1 shows the behavior transmission control method process flow diagram of UI layer according to an embodiment of the invention, may further comprise the steps:
S102, the base attribute with the UI control in the UI meta-model is associated with UI behavior mechanism of transmission, and wherein, the UI control comprises: base attribute, incident, UI behavior and UI behavior are propagated;
S104 resolves the UI meta-model, generates actual UI control according to the base attribute of UI control;
S106 during to the operation of actual UI control, is mapped to UI meta-model incident by the UI meta-model with the incident of actual UI control correspondence;
S108 by UI meta-model Event triggered UI behavior, when the UI behavior is carried out, searches the UI behavior and propagates.
In the present embodiment, employing is associated the base attribute of UI control in the UI meta-model with UI behavior mechanism of transmission, the UI meta-model is resolved, base attribute according to the UI control generates actual UI control, by the UI meta-model incident of actual UI control correspondence is mapped to UI meta-model incident, by UI meta-model Event triggered UI behavior, when the UI behavior is carried out, search the UI behavior and propagate, can realize the combination in any of an interface operation function executing process; By increasing, reduce the definition that the UI behavior is propagated, can control the quantity of a required participation control of interface operation function, realize the reorganization of interface operation function course, in case thereby solved in the prior art code compiling link and when being delivered for use, this function just is cured, can not changes, customization function just needs to revise code and recompilates link if desired, causes the relatively poor problem of dirigibility of application program.
Table 1 shows UI meta-model control according to an embodiment of the invention.
Table 1
Fig. 2 shows according to an embodiment of the invention, and the interface operation function may further comprise the steps by behavior propagation realization flow figure between the UI control:
Table 2 shows UI behavior transmission method according to an embodiment of the invention.
Table 2
In UI control A, meta-model incident A triggers UI behavior A/ method A, when the UI behavior is carried out, searches definition UI behavior and propagates A, does not have propagation rule this moment; It is related with actual UI control B that A is propagated in behavior, and behavior B/ method B searches the behavior of definition and propagates B, and be propagation rule B this moment; It is related with actual UI control C and actual UI control D respectively that B is propagated in behavior, and propagation rule is propagation rule B.
Preferably, in the behavior transmission control method of above-mentioned UI layer, the UI behavior is carried out and is specifically comprised: obtain the UI control from the UI meta-model; The execution body of the method for the UI behavior of execution UI control, wherein, the UI behavior comprises a plurality of methods.
In the above-described embodiments, by changing the execution body of UI behavioral approach, participating in realizing the change of interface operation function course under the constant situation of UI control.
Preferably, in the behavior transmission control method of above-mentioned UI layer, search UI behavior propagation and specifically comprise: the propagation of from the UI behavior is propagated, searching the method for UI behavior; If the propagation of the method for UI behavior exists, carry out the method for the UI behavior of propagating corresponding UI control.
Preferably, in the behavior transmission control method of above-mentioned UI layer, further comprising the steps of: as, to propagate and finish if the propagation of the method for UI behavior does not exist.
In the above-described embodiments, propagate the mechanism of searching, improve the efficient that the UI behavior is propagated by concurrent UI behavior.
Fig. 3 shows UI behavior according to an embodiment of the invention and propagates realization flow figure, may further comprise the steps:
S301, when program run, user and UI control A are mutual, trigger event A, the method A of incident A triggering self UI behavior A enters step S302;
S302, the definition of from the UI meta-model, searching control A, in the behavioral approach A that carries out control A, the behavior that program goes to search behavioral approach A is simultaneously propagated, and enters step S303 and S304 simultaneously;
S303, the execution body of execution control A behavior A method A, afterwards, process ends;
S304, the propagation of lookup method A from the A behavior is propagated if exist, directly enters S305, if there is no, directly finishes;
S305, the propagation of method A triggers control B, becomes control B, behavior B method B this moment.
Preferably, in the behavior transmission control method of above-mentioned UI layer, carrying out body is the output function of DLL.
Preferably, in the behavior transmission control method of above-mentioned UI layer, carrying out body is the function of script.
Preferably, in the behavior transmission control method of above-mentioned UI layer, carrying out body is the interface method of com component.
In above inventive embodiment, a kind of behavior transmission control method of UI layer is provided, the mode that this method adopts the UI behavior to propagate is set the implementation of UI operation arbitrarily, the UI behavioral approach is realized that propagating definition with the UI behavior separates, and use pretreated mode to be ready to the next needed data of propagating in advance, realized the concurrent processing pattern,, realized UI and the decoupling zero of interface operation function code by definition UI behavior travel path.From above description, as can be seen, the above embodiments of the present invention have realized following technique effect: the dirigibility that improves application program, satisfy the demand of the user individual of application program, the efficient that the raising behavior is propagated has reduced the coupling between the code, is beneficial to the expansion and the maintenance of system, improved the customizability that the interface operation function course realizes greatly, the dirigibility fruit.
Obviously, those skilled in the art should be understood that, above-mentioned each module of the present invention or each step can realize with the general calculation device, they can concentrate on the single calculation element, perhaps be distributed on the network that a plurality of calculation element forms, alternatively, they can be realized with the executable program code of calculation element, thereby, they can be stored in the memory storage and carry out by calculation element, perhaps they are made into each integrated circuit modules respectively, perhaps a plurality of modules in them or step are made into the single integrated circuit module and realize.Like this, the present invention is not restricted to any specific hardware and software combination.
The above is the preferred embodiments of the present invention only, is not limited to the present invention, and for a person skilled in the art, the present invention can have various changes and variation.Within the spirit and principles in the present invention all, any modification of being done, be equal to replacement, improvement etc., all should be included within protection scope of the present invention.
Claims (7)
1. the behavior transmission control method of a UI layer is characterized in that, may further comprise the steps:
In the UI meta-model with the base attribute and the UI behavior mechanism of transmission of UI control
Be associated, wherein, described UI control comprises: base attribute, incident, UI behavior and UI behavior are propagated;
Described UI meta-model is resolved, generate actual UI control according to the base attribute of described UI control;
During to described actual UI control operation, the incident of described actual UI control correspondence is mapped to UI meta-model incident by described UI meta-model;
By the described UI behavior of described UI meta-model Event triggered, when described UI behavior is carried out, search described UI behavior and propagate.
2. behavior transmission control method according to claim 1 is characterized in that, described UI behavior is carried out and specifically comprised:
From described UI meta-model, obtain described UI control;
Carry out the execution body of method of the UI behavior of described UI control, wherein, described UI behavior comprises a plurality of methods.
3. behavior transmission control method according to claim 1 is characterized in that, searches described UI behavior propagation and specifically comprises:
From propagating, described UI behavior searches the propagation of the method for described UI behavior;
If the propagation of the method for described UI behavior exists, carry out the described method of propagating the UI behavior of corresponding UI control.
4. behavior transmission control method according to claim 3 is characterized in that, and is further comprising the steps of:
If the propagation of the method for described UI behavior does not exist, described propagation finishes.
5. behavior transmission control method according to claim 2 is characterized in that, described execution body is the output function of DLL.
6. behavior transmission control method according to claim 2 is characterized in that, described execution body is the function of script.
7. behavior transmission control method according to claim 2 is characterized in that, described execution body is the interface method of com component.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN 200910089759 CN101963900B (en) | 2009-07-23 | 2009-07-23 | Behavior propagation control method of UI (User Interface) layer |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN 200910089759 CN101963900B (en) | 2009-07-23 | 2009-07-23 | Behavior propagation control method of UI (User Interface) layer |
Publications (2)
Publication Number | Publication Date |
---|---|
CN101963900A true CN101963900A (en) | 2011-02-02 |
CN101963900B CN101963900B (en) | 2013-10-16 |
Family
ID=43516784
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN 200910089759 Active CN101963900B (en) | 2009-07-23 | 2009-07-23 | Behavior propagation control method of UI (User Interface) layer |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN101963900B (en) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104267954A (en) * | 2014-09-26 | 2015-01-07 | 青岛海信电器股份有限公司 | Generation method and device for units included in user interface |
CN106484394A (en) * | 2016-09-13 | 2017-03-08 | 厦门兆慧网络科技有限公司 | A kind of fast software development system with double engines |
CN112131136A (en) * | 2020-11-24 | 2020-12-25 | 智道网联科技(北京)有限公司 | Automatic interactive testing method and device |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20020163520A1 (en) * | 2001-03-07 | 2002-11-07 | Ajile Systems, Inc. | Software component model for time sensitive embedded applications |
CN1631008A (en) * | 2001-07-13 | 2005-06-22 | 艾利森公司 | Method and apparatus for scheduling message processing |
CN1641588A (en) * | 2004-01-08 | 2005-07-20 | 英业达股份有限公司 | Method for transmitting events between Java assemblies |
-
2009
- 2009-07-23 CN CN 200910089759 patent/CN101963900B/en active Active
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20020163520A1 (en) * | 2001-03-07 | 2002-11-07 | Ajile Systems, Inc. | Software component model for time sensitive embedded applications |
CN1631008A (en) * | 2001-07-13 | 2005-06-22 | 艾利森公司 | Method and apparatus for scheduling message processing |
CN1641588A (en) * | 2004-01-08 | 2005-07-20 | 英业达股份有限公司 | Method for transmitting events between Java assemblies |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104267954A (en) * | 2014-09-26 | 2015-01-07 | 青岛海信电器股份有限公司 | Generation method and device for units included in user interface |
CN104267954B (en) * | 2014-09-26 | 2018-02-16 | 青岛海信电器股份有限公司 | The generation method and device of a kind of part included in user interface |
CN106484394A (en) * | 2016-09-13 | 2017-03-08 | 厦门兆慧网络科技有限公司 | A kind of fast software development system with double engines |
CN106484394B (en) * | 2016-09-13 | 2019-07-12 | 厦门兆慧网络科技有限公司 | A kind of fast software development system with double engines |
CN112131136A (en) * | 2020-11-24 | 2020-12-25 | 智道网联科技(北京)有限公司 | Automatic interactive testing method and device |
Also Published As
Publication number | Publication date |
---|---|
CN101963900B (en) | 2013-10-16 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN110189121B (en) | Data processing method and device, block chain client and block chain link point | |
CN101872305A (en) | UI (User Interface) performance and service logic separation method and system | |
CN102054217B (en) | Entity morphing in metamodel-based tools | |
CN109683953A (en) | A kind of method and device carrying out configuration file processing based on visualization interface | |
CN111708520B (en) | Application construction method and device, electronic equipment and storage medium | |
US8789009B2 (en) | EMF model synchronization method and system | |
CN111782365B (en) | Timed task processing method, device, equipment and storage medium | |
CN101887464B (en) | Method and device for displaying data in database | |
CN100549957C (en) | One kind is loaded the method and a kind of isolating and is loaded the device of isolating | |
CN107203465B (en) | System interface testing method and device | |
CN103186455B (en) | Page automatic test script generates method and system | |
CN109684036A (en) | A kind of container cluster management method, storage medium, electronic equipment and system | |
CN106201480A (en) | A kind of cockpit display Control System Software architecture management platform | |
CN103914290A (en) | Operating command processing method and device | |
CN110321337A (en) | A kind of method and computer readable storage medium for realizing Database Dynamic switching | |
CN108241902A (en) | A kind of Web projects and performance optimization method | |
CN101963900B (en) | Behavior propagation control method of UI (User Interface) layer | |
CN110321120A (en) | Data processing method, data processing equipment and computer readable storage medium | |
CN103500099B (en) | A kind of method that the quick secondary development of software is realized by extension point and extension | |
CN111868733A (en) | System and method for generating a prediction-based GUI to improve GUI response time | |
CN102541544A (en) | Method, device and system for processing tree control | |
CN109088914A (en) | Generation method, the block chain ecosystem and the computer readable storage medium of block | |
CN101685395A (en) | Object property processing method of product data management system | |
CN102387264A (en) | Processing method and processing device of call control strategies and call center | |
CN105335160B (en) | A kind of WEB terminal component agile development method based on JSF |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C53 | Correction of patent of invention or patent application | ||
CB02 | Change of applicant information |
Address after: 100080, Room 802, satellite building, No. 63, Zhichun Road, Beijing, Haidian District Applicant after: Beijing CAXA Technology Co., Ltd. Address before: 100080, Room 802, satellite building, No. 63, Zhichun Road, Beijing, Haidian District Applicant before: Beijing Digital Dafang Technology Co., Ltd. |
|
COR | Change of bibliographic data |
Free format text: CORRECT: APPLICANT; FROM: BEIJING DIGITAL DAFANG TECHNOLOGY CO., LTD. TO: CAXA TECHNOLOGY CO., LTD. |
|
C14 | Grant of patent or utility model | ||
GR01 | Patent grant |