Movatterモバイル変換


[0]ホーム

URL:


CN102650952A - Modeling tool order calling method and system based on MVC framework - Google Patents

Modeling tool order calling method and system based on MVC framework
Download PDF

Info

Publication number
CN102650952A
CN102650952ACN2011100476103ACN201110047610ACN102650952ACN 102650952 ACN102650952 ACN 102650952ACN 2011100476103 ACN2011100476103 ACN 2011100476103ACN 201110047610 ACN201110047610 ACN 201110047610ACN 102650952 ACN102650952 ACN 102650952A
Authority
CN
China
Prior art keywords
event
view
command
layer
user interface
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.)
Pending
Application number
CN2011100476103A
Other languages
Chinese (zh)
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.)
Beihang University
Original Assignee
Beihang University
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 Beihang UniversityfiledCriticalBeihang University
Priority to CN2011100476103ApriorityCriticalpatent/CN102650952A/en
Publication of CN102650952ApublicationCriticalpatent/CN102650952A/en
Pendinglegal-statusCriticalCurrent

Links

Images

Landscapes

Abstract

Translated fromChinese

本发明涉及一种基于MVC框架的建模工具命令调用方法及系统,其中方法包括:在MVC框架的视图层中的用户界面组件将获取到的系统事件转换为内部事件并发送给位于MVC框架控制层的命令控制器;所述命令控制器根据所述内部事件所对应的应用事件类型查找与所述内部事件相对应的命令并执行所述命令。本发明实施例提供的基于MVC框架的建模工具命令调用方法及系统,由于将事件分为内部事件和作为外部事件的系统事件,使得内部事件与系统事件权责分明,从而提高了程序运行效率;避免了现有技术中先调用相应的具体事件,再由具体时间去调用相应的命令,从而提高了调用命令的有效性。

Figure 201110047610

The present invention relates to a method and system for invoking a modeling tool command based on an MVC framework, wherein the method includes: the user interface component in the view layer of the MVC framework converts the acquired system event into an internal event and sends it to a control located in the MVC framework A command controller of the layer; the command controller searches for a command corresponding to the internal event according to the application event type corresponding to the internal event and executes the command. The MVC framework-based modeling tool command calling method and system provided by the embodiments of the present invention divide events into internal events and system events as external events, so that internal events and system events have clear rights and responsibilities, thereby improving program operation efficiency ; In the prior art, the corresponding specific event is firstly called, and then the corresponding command is called at a specific time, thereby improving the effectiveness of calling the command.

Figure 201110047610

Description

Modeling tool command calls method and system based on the MVC framework
Technical field
The present invention relates to field of computer technology, particularly a kind of modeling tool command calls method and system based on the MVC framework.
Background technology
Model, view and control (Model, View, Controller, be called for short: MVC) pattern is a kind of software architecture pattern, is widely used in having in the application software architecture Design of user interface; The MVC pattern specifically comprises model layer, view layer, key-course, and wherein, model layer is used to preserve the state of data and application program, and the view layer is used for definition of user's interface, and key-course is used for the input of process user to revise data and state.
Be directed against the MVC framework of modeling tool in the prior art; Though can realize the loose coupling between the assembly through making up application program; Interaction logic administrative client state through package server and user interface (User Interface, be called for short: UI) state, thus make program module property stronger; But owing to exist event model complicated, the operational efficiency of extensive program is still lower.
Summary of the invention
The object of the present invention is to provide a kind of modeling tool command calls method and system, improve the operational efficiency of extensive program based on the MVC framework.
The embodiment of the invention provides a kind of modeling tool command calls method based on the MVC framework, comprising:
User interface components in the view layer of MVC framework converts the system event that gets access to into internal event and sends to the instruction control unit of the key-course that is arranged in said MVC framework;
Said instruction control unit is searched with the corresponding order of said internal event according to the pairing application affairs type of said internal event and is carried out said order.
The embodiment of the invention provides a kind of modeling tool command calls system based on the MVC framework; Should can realize the modeling tool command calls method based on the MVC framework of technique scheme based on the modeling tool command calls system of MVC framework; Wherein, this system comprises:
User interface components is arranged in the view layer of MVC framework, is used for converting the system event that gets access to into internal event and sending to the instruction control unit of the key-course that is positioned at said MVC framework at said view layer;
Said instruction control unit is used for searching with the corresponding order of said internal event and carrying out said order according to the pairing application affairs type of said internal event.
Modeling tool command calls method and system based on the MVC framework provided by the invention; User interface components through at the view layer converts the system event that acquires internal event into and sends to the instruction control unit that is positioned at key-course; Because incident is divided into internal event and as the system event of external event; Make internal event and system event clear definiton of powers, thereby improved program run efficient; Further; When the number of number of commands and system event is huger; Search and the corresponding order of internal event and this order of execution according to the pairing application affairs type of internal event through instruction control unit; Avoided calling earlier in the prior art corresponding concrete incident, gone to call corresponding order by concrete incident again, thereby improved the validity of call instruction.
Description of drawings
In order to be illustrated more clearly in the embodiment of the invention or technical scheme of the prior art; To do to introduce simply to the accompanying drawing of required use in embodiment or the description of the Prior Art below; Obviously, the accompanying drawing in describing below only is some embodiments of the present invention, for those of ordinary skills; Under the prerequisite of not paying creative work, can also obtain other accompanying drawing according to these accompanying drawings.
Fig. 1 is the schematic flow sheet that the present invention is based on an embodiment of modeling tool command calls method of MVC framework;
Fig. 2 is the schematic flow sheet that the present invention is based on another embodiment of modeling tool command calls method of MVC framework;
Fig. 3 is the structural representation that the present invention is based on an embodiment of modeling tool command calls system of MVC framework;
Fig. 4 is the structural representation that the present invention is based on modeling tool command calls another embodiment of system of MVC framework;
Fig. 5 is the structural representation of the MVC frame system that the embodiment of the invention was suitable for.
Embodiment
To combine the accompanying drawing in the embodiment of the invention below, the technical scheme in the embodiment of the invention is carried out clear, intactly description, obviously, described embodiment only is the present invention's part embodiment, rather than whole embodiment.Based on the embodiment among the present invention, those of ordinary skills are not making the every other embodiment that is obtained under the creative work prerequisite, all belong to the scope of the present invention's protection.
Fig. 1 is the schematic flow sheet that the present invention is based on an embodiment of modeling tool command calls method of MVC framework, and as shown in Figure 1, present embodiment comprises the steps:
Step 101, the user interface components in the view layer of MVC framework convert the system event that gets access to into internal event and send to the instruction control unit of the key-course that is arranged in the MVC framework;
Step 102, this instruction control unit are searched with the corresponding order of this internal event according to the pairing application affairs type of this internal event and are carried out this order.
The modeling tool command calls method that the embodiment of the invention provides based on the MVC framework; Through the user interface components in the view layer of MVC framework the system event that acquires is converted into internal event and sends to the instruction control unit that is arranged in key-course; Because incident is divided into internal event and as the system event of external event; Make internal event and system event clear definiton of powers, thereby improved program run efficient; Further; When the number of number of commands and system event is huger; Search and the corresponding order of internal event and this order of execution according to the pairing application affairs type of internal event through instruction control unit; Avoided calling earlier in the prior art corresponding concrete incident, gone to call corresponding order by concrete incident again, thereby improved the validity of call instruction.
Fig. 2 is the schematic flow sheet that the present invention is based on another embodiment of modeling tool command calls method of MVC framework; As shown in Figure 2, the embodiment of the invention comprises:
Whenstep 201, the user interface components initialization in the view layer of MVC framework, the view assistant class in the corresponding view helper module of this user interface components is carried out instantiation, and this view assistant class is registered in the view steady arm.
The system event thatstep 202, the event sniffer monitoring users interface assembly through the view layer acquire.
Step 203, convert this system event into internal event and send to the instruction control unit of key-course through event sniffer;
Step 204, this instruction control unit are searched with the corresponding order of this internal event according to the pairing application affairs type of this internal event and are carried out this order;
Step 205, if the packaged processing logic of this order need communicate with the data source of server end, then in key-course establishment proxy class;
Step 206, from the positioning service device, obtain and the corresponding service of this proxy class type of connection, connect through this service and type communicate to obtain the processing logic relevant data packaged with this order with the data source of server end;
Step 207, after logical process is carried out in this order, in model layer, revise and order corresponding data with this;
Afterstep 208, the data in this model layer are upgraded, notify the user interface components of view layer to carry out display update through data binding mechanism or event notification mechanism.
In above-mentionedsteps 201; When the user interface components to the view layer of MVC framework carries out initialization; Need carry out the instantiation correspondence to the view assistant class in view assistant (ViewHelper) module, and view assistant class is registered in the view steady arm (ViewLocator); Wherein, view steady arm (ViewLocator) makes other order in the calling program can obtain the view Assistant object of any needs as single example class, to realize the operation to the UI assembly.In addition; At view (View) layer; Because the corresponding view helper module of each UI assembly (Component), event sniffer can be arranged in the view helper module, thereby makes the corresponding UI class of UI assembly can be absorbed in the layout of user interface; Avoided in the UI assembly, comprising any logic, made that the UI class is more suitable for realizing through the SGML (MXML) of describing the interface performance; And other order described in the embodiment of the invention specifically can be any order that may change view; For example: the order of the change viewstate of model layer, key-course; For example if the order that other order is the deletion view; Order that then should the deletion view is earlier through the view helper module, remakes to be used for the corresponding view layer, thereby makes the operation to the UI assembly all realize through the view helper module.
In above-mentionedsteps 202~step 204; UI assembly in the view layer receives the system event that the user triggers through mouse or keyboard etc.; Through event sniffer with this system event convert into internal event (this internal event for example can for: create file, newly-built pel etc.) send in the instruction control unit (DesignerControlle); Instruction control unit is searched with the corresponding order of this internal event (Command) according to the type of internal event and is carried out this order, wherein, has encapsulated concrete processing logic in this order; Understand the processing logic described in the embodiment of the invention for clearer; The processing logic of facing in the embodiment of the invention down is illustrated, if order is figure of deletion, then processing logic is meant according to the order of a figure of this deletion the related data of this figure in the model layer is deleted; And with on the painting canvas with by all relevant associated deletions of figure of being deleted, and through the binding relationship renewal view of view layer with model layer; Through internal event and external event are divided, make that the order in calling incident is more efficient.
In above-mentionedsteps 205 andstep 206,, can create agency (Delegate) class at key-course if the packaged processing logic of this order need communicate with the data source of server end; From positioning service device (ServiceLocator), obtain corresponding service and connect type (this service connects type specifically can be HTTPService, RMIService etc.); Communicate through the data source of service connection class, obtain the processing logic relevant data packaged with this order with server end.
In above-mentionedsteps 207 andstep 208; After logical process is carried out in order (Command); If need to revise with this and order the data in corresponding model (Model) layer; Then the data in the model layer are upgraded, informed that through data binding mechanism or event notification mechanism the assembly of view layer carries out display update.
The modeling tool command calls method that the embodiment of the invention provides based on the MVC framework; User interface components through at the view layer converts the system event that acquires internal event into and sends to the instruction control unit that is positioned at key-course; Because incident is divided into internal event and as the system event of external event; Make internal event and system event clear definiton of powers, thereby improved program run efficient; Further; When the number of number of commands and system event is huger; Search and the corresponding order of internal event and this order of execution according to the pairing application affairs type of internal event through instruction control unit; Avoided calling earlier in the prior art corresponding concrete incident, gone to call corresponding order by concrete incident again, thereby improved the validity of call instruction.
Fig. 3 is the structural representation that the present invention is based on an embodiment of modeling tool command calls system of MVC framework, and the embodiment of the invention can realize the method flow of above-mentioned embodiment illustrated in figures 1 and 2; As shown in Figure 3, the embodiment of the invention comprises:user interface components 31,instruction control unit 32;
Wherein,user interface components 31 is arranged in the view layer of MVC framework, converts the system event that gets access to into internal event and sends to theinstruction control unit 32 of the key-course that is arranged in this MVC framework at this view layer;Instruction control unit 32 is searched with the corresponding order of said internal event according to the pairing application affairs type of said internal event and is carried out said order.
The modeling tool command calls system that the embodiment of the invention provides based on the MVC framework; Convert the system event that acquires into internal event and send to theinstruction control unit 32 that is positioned at key-course throughuser interface components 31 at the view layer; Because incident is divided into internal event and as the system event of external event; Make internal event and system event clear definiton of powers, thereby improved program run efficient; Further; When the number of number of commands and system event is huger; Search and the corresponding order of internal event and this order of execution according to the pairing application affairs type of internal event throughinstruction control unit 32; Avoided calling earlier in the prior art corresponding concrete incident, gone to call corresponding order by concrete incident again, thereby improved the validity of call instruction.
Fig. 4 is the structural representation that the present invention is based on modeling tool command calls another embodiment of system of MVC framework, and the embodiment of the invention can realize the method flow of above-mentioned embodiment illustrated in figures 1 and 2; As shown in Figure 4, the embodiment of the invention comprises based on the modeling toolcommand calls system 40 of MVC framework:user interface components 41,instruction control unit 42,event sniffer 43, view steady arm 44,positioning service device 45;
Wherein,user interface components 41 is arranged in the view layer of MVC framework, converts the system event that gets access to into internal event and sends to theinstruction control unit 42 of the key-course that is positioned at the MVC framework at the view layer;Instruction control unit 42 said instruction control units are searched with the corresponding order of said internal event according to the pairing application affairs type of said internal event and are carried out said order.
Further, the event sniffer 43 in the embodiment of the invention is connected withuser interface components 41, is arranged in the view layer;Event sniffer 43 is used for the system event that monitoringusers interface assembly 41 gets access to, and said system event is converted into internal event and sends to theinstruction control unit 42 of key-course.
Further, the view steady arm 44 in the embodiment of the invention is connected withuser interface components 41, is arranged in the view layer; View steady arm 44 is used for whenuser interface components 41 initialization of view layer, and the view assistant class in the view helper module of theseuser interface components 41 correspondences is carried out instantiation, registers said view assistant class class.
Further;Positioning service device 45 in the embodiment of the invention provides and at the corresponding service of proxy class type of connection that said key-course is created, makes said service connect class and communicate to obtain the processing logic relevant data packaged with said order with the data source of server end;
Further, can also comprise modifiedmodule 46 andnotification module 47 in the model layer in the embodiment of the invention; Wherein, after logical process was carried out in this order, modifiedmodule 46 was revised in said model layer and the corresponding data of said order; After data in said model layer were upgraded,notification module 47 notified the user interface components of said view layer to carry out display update through data binding mechanism or event notification mechanism.
The modeling tool command calls system that the embodiment of the invention provides based on the MVC framework; User interface components through at the view layer converts the system event that acquires internal event into and sends to the instruction control unit that is positioned at key-course; Because incident is divided into internal event and as the system event of external event; Make internal event and system event clear definiton of powers, thereby improved program run efficient; Further; When the number of number of commands and system event is huger; Search and the corresponding order of internal event and this order of execution according to the pairing application affairs type of internal event through instruction control unit; Avoided calling earlier in the prior art corresponding concrete incident, gone to call corresponding order by the concrete time again, thereby improved the validity of call instruction.
For the clearer technical scheme of understanding the embodiment of the invention, through Fig. 5 the embodiment of the invention is specifically described below; Fig. 5 is the structural representation of the MVC frame system that the embodiment of the invention was suitable for.
As shown in Figure 5, the MVC frame system that the embodiment of the invention was suitable for can be atview layer 51,model layer 52, key-course 53, service layer's 54 execution graphs 1 and method flow embodiment illustrated in fig. 2.
As shown in Figure 5; At view (View)layer 51; Each user interface components 511 a corresponding view assistant (ViewHelper)module 512;Event sniffer 513 is arranged in theview helper module 512, thereby makes the user interface class in theview layer 51 can be absorbed in the layout at interface and not comprise any logic; And other operation to user interface components 511 all realizes throughview helper module 512; The corresponding view assistant class of the automatic instantiation of meeting when user interface components 511 initialization; And view assistant class is registered in the view steady arm (ViewLocator) 514; Viewsteady arm 514 makes other role in the calling program can obtain the view Assistant object of any needs as a single example class, to realize the operation to user interface components 511; Because the single example class described in the embodiment of the invention is well known to those skilled in the art, and repeats no more at this.
In model (Model)layer 52, exist a plurality of model objects to be registered in the model orientation device (ModelLocator) 521; Because model orientation device 521 also is a single example class, can search required model object through this list example class; Model object can correspond to of Local or Remote, or in a plurality of data object (DataObject); In addition, model object can through data binding mechanism be associated with the corresponding UI assembly of this model in, thereby make that the UI assembly can obtain upgrading after model is modified.
In control (Controller)layer 53; Front controller (FrontController) class is a core classes; Adopt single routine quasi-mode; When realizing, only need to inherit a front controller class establishment concrete instruction control unit (DesignerController) 531 corresponding command controller classes and get final product.In store application affairs (ODEvent) is to the mapping of order (Command) in the front controller class.Command set has encapsulated the service logic of application program; Command set can obtain needed view assistant (ViewHelper) module and model (Model) object through view steady arm (ViewLocator) 532 and model orientation device (ModelLoactor) 521, thereby realizes the modification to view and data.
In service (Server)layer 54; Command set can (for example: services such as HTTPService, WebService) obtain needed Connection Service from the positioning service device (ServiceLocator) 541 theservice layer 54 when the data object of the server end in needs of the service logic in the command set and theservice layer 54 communicates; Make command set need not be concerned about the information of establishment of connection process and server end; Also can be reused with the Connection Service of server end simultaneously by a plurality of command set, thus the overall performance of raising program.
Treatment scheme in embodiment illustrated in fig. 5 is following: at first the user interface components in theview layer 51 511 receives users' system events such as mouse or keyboard, is converted into internal application incident (as creating file, newly-built pel etc.) to send in the instruction control unit (DesignerController); Instruction control unit finds corresponding command and carries out this order according to the application affairs type, has encapsulated concrete processing logic in the command set.If the packaged processing logic of command set need communicate with the data source of server end; Can create an agency (Delegate) class in inside; From positioning service device (ServiceLocator), obtain corresponding service (Service) and connect type (for example: HTTPService, RMIService etc.); Communicate through the data source of service (Service) connection class, obtain relevant data with server end.Order (Command) is carried out needing to revise the data in the corresponding model layer after the logical process, after the data in the model layer are updated, informs that through data binding mechanism or event notification mechanism the assembly of view layer carries out display update again.Simultaneously, after opening collaborative pattern, the order that can work in coordination with (Command) can be sent out and trigger external event, and message is sent to cooperative module, and cooperative module can be collected correlation parameter and send to other client, accomplishes co-operating.
The embodiment of the invention is through being divided into incident internal event and external event, makes that the order (Command) of calling in the incident (Event) at front controller (FrontController) is more efficient.Because calling the order of the order in the incident in the prior art is that front controller (FrontController) calls corresponding concrete incident (Event) earlier; Concrete incident goes to call corresponding order (Command) again; And the embodiment of the invention is through removing to call internal event or external event earlier; Go to call corresponding concrete incident by respective inner incident or external event again; Further call the corresponding order of internal event again, when the number of number of ordering and incident is huge, can improve the efficient of call instruction greatly.
Through above interactive mode; User interface components 511 assemblies and the assembly in themodel layer 52 in theview layer 51 are separate; Realized that data and demonstration are separated; Make the user interface components 511 in theview layer 51 to make amendment and can not have influence on the assembly ofmodel layer 52, simultaneously the processing logic in the program is encapsulated into each and independently orders in (Command) type, be encapsulated in service (Service) class with the logic that is connected of server in theservice layer 54 according to user's preference; The logic that helps in the program is reused, function expansion and maintenance.
The those skilled in the art can be well understood to, for the convenience described with succinct, the concrete course of work of the system of foregoing description, equipment, module and unit can repeat no more at this with reference to the corresponding process among the preceding method embodiment.
One of ordinary skill in the art will appreciate that: all or part of step that realizes the foregoing description can be accomplished through the relevant hardware of programmed instruction; Aforesaid program can be stored in the computer read/write memory medium; This program the step that comprises said method embodiment when carrying out; And aforesaid storage medium comprises: various media that can be program code stored such as ROM, RAM, magnetic disc or CD.
What should explain at last is: above embodiment is only in order to explaining technical scheme of the present invention, but not to its restriction; Although with reference to previous embodiment the present invention has been carried out detailed explanation, those of ordinary skill in the art is to be understood that: it still can be made amendment to the technical scheme that aforementioned each embodiment put down in writing, and perhaps part technical characterictic wherein is equal to replacement; And these are revised or replacement, do not make the spirit and the scope of the essence disengaging various embodiments of the present invention technical scheme of relevant art scheme.

Claims (10)

Translated fromChinese
1.一种基于MVC框架的建模工具命令调用方法,其特征在于,包括:1. A modeling tool command invocation method based on MVC framework, is characterized in that, comprises:在模型、视图和控制MVC框架的视图层中的用户界面组件将获取到的系统事件转换为内部事件并发送给位于所述MVC框架的控制层中的命令控制器;The user interface components in the view layer of the model, view and control MVC framework convert the obtained system events into internal events and send them to the command controller located in the control layer of the MVC framework;所述命令控制器根据所述内部事件所对应的应用事件类型查找与所述内部事件相对应的命令并执行所述命令。The command controller searches for a command corresponding to the internal event according to the application event type corresponding to the internal event and executes the command.2.根据权利要求1所述的方法,其特征在于,所述在MVC框架的视图层中的用户界面组件将获取得到的系统事件转换为内部事件并发送给位于所述MVC框架的控制层中的命令控制器包括:2. The method according to claim 1, wherein the user interface component in the view layer of the MVC framework converts the obtained system event into an internal event and sends it to the control layer located in the MVC framework The command controller includes:通过MVC框架的视图层中的事件监听器监听所述用户界面组件获取得到的系统事件;Monitoring the system event obtained by the user interface component through an event listener in the view layer of the MVC framework;通过所述事件监听器将所述系统事件转换为内部事件并发送给所述MVC框架的控制层中的命令控制器。The system event is converted into an internal event by the event listener and sent to the command controller in the control layer of the MVC framework.3.根据权利要求1所述的方法,其特征在于,所述方法还包括:3. The method according to claim 1, characterized in that the method further comprises:在所述视图层的用户界面组件初始化时,对该用户界面组件对应的视图助手模块中的视图助手类进行实例化,并将所述视图助手类注册到视图定位器中。When the user interface component of the view layer is initialized, the view helper class in the view helper module corresponding to the user interface component is instantiated, and the view helper class is registered in the view locator.4.根据权利要求1~3任一所述的方法,其特征在于,所述方法还包括:4. The method according to any one of claims 1 to 3, characterized in that the method further comprises:若所述命令所封装的处理逻辑需要与服务器端的数据源进行通信,则在所述控制层创建代理类;If the processing logic encapsulated by the command needs to communicate with the data source on the server side, then create a proxy class in the control layer;从服务定位器中获取与该代理类相对应的服务连接类,通过所述服务连接类与服务器端的数据源进行通信以获取与所述命令所封装的处理逻辑相关的数据。Obtain the service connection class corresponding to the proxy class from the service locator, and communicate with the data source on the server side through the service connection class to obtain data related to the processing logic encapsulated by the command.5.根据权利要求4所述的方法,其特征在于,所述方法还包括:5. method according to claim 4, is characterized in that, described method also comprises:当对该命令进行逻辑处理后,在所述MVC框架的模型层中修改与所述命令相对应的数据;After the order is logically processed, modify the data corresponding to the order in the model layer of the MVC framework;在所述模型层中的数据进行更新后,通过数据绑定机制或者事件通知机制通知所述视图层的用户界面组件进行显示更新。After the data in the model layer is updated, the user interface component of the view layer is notified to update the display through a data binding mechanism or an event notification mechanism.6.一种能够实现权利要求1~5任一所述方法的基于MVC框架的建模工具命令调用系统,其特征在于,包括:6. A modeling tool command call system based on the MVC framework capable of realizing the arbitrary method of claims 1 to 5, characterized in that it comprises:用户界面组件,位于MVC框架的视图层中,用于在所述视图层将获取到的系统事件转换为内部事件并发送给位于所述MVC框架的控制层中的命令控制器;The user interface component is located in the view layer of the MVC framework, and is used to convert the obtained system event into an internal event in the view layer and send it to a command controller located in the control layer of the MVC framework;所述命令控制器,用于根据所述内部事件所对应的应用事件类型查找与所述内部事件相对应的命令并执行所述命令。The command controller is configured to search for a command corresponding to the internal event according to an application event type corresponding to the internal event and execute the command.7.根据权利要求6所述的系统,其特征在于,所述系统还包括:事件监听器监,与所述用户界面组件相连接,位于所述视图层中;7. The system according to claim 6, further comprising: an event listener, connected to the user interface component, located in the view layer;所述事件监听器用于监听所述用户界面组件获取到的系统事件,将所述系统事件转换为内部事件并发送给控制层的命令控制器。The event listener is used to monitor the system event obtained by the user interface component, convert the system event into an internal event and send it to the command controller of the control layer.8.根据权利要求7所述的系统,其特征在于,所述系统还包括:视图定位器,与所述用户界面组件相连接,位于视图层中;8. The system according to claim 7, further comprising: a view locator, connected to the user interface component, located in the view layer;所述视图定位器用于在所述视图层的用户界面组件初始化时,对该用户界面组件对应的视图助手模块中的视图助手类进行实例化,注册所述视图助手类。The view locator is used for instantiating the view helper class in the view helper module corresponding to the user interface component when the user interface component of the view layer is initialized, and registering the view helper class.9.根据权利要求6~8任一所述的系统,其特征在于,所述系统还包括:服务定位器;9. The system according to any one of claims 6-8, characterized in that the system further comprises: a service locator;所述服务定位器用于提供与在所述控制层创建的代理类相对应的服务连接类,使得所述服务连接类与服务器端的数据源进行通信以获取与所述命令所封装的处理逻辑相关的数据。The service locator is used to provide a service connection class corresponding to the proxy class created in the control layer, so that the service connection class communicates with the data source on the server side to obtain information related to the processing logic encapsulated by the command. data.10.根据权利要求9所述的系统,其特征在于,所述MVC框架的模型层中包括修改模块和通知模块;10. The system according to claim 9, wherein the model layer of the MVC framework includes a modification module and a notification module;所述修改模块,用于当对该命令进行逻辑处理后,在所述模型层中修改与所述命令相对应的数据;The modifying module is configured to modify the data corresponding to the command in the model layer after the command is logically processed;所述通知模块,用于在所述模型层中的数据进行更新后,通过数据绑定机制或者事件通知机制通知所述视图层的用户界面组件进行显示更新。The notification module is configured to notify the user interface components of the view layer to update the display through a data binding mechanism or an event notification mechanism after the data in the model layer is updated.
CN2011100476103A2011-02-282011-02-28Modeling tool order calling method and system based on MVC frameworkPendingCN102650952A (en)

Priority Applications (1)

Application NumberPriority DateFiling DateTitle
CN2011100476103ACN102650952A (en)2011-02-282011-02-28Modeling tool order calling method and system based on MVC framework

Applications Claiming Priority (1)

Application NumberPriority DateFiling DateTitle
CN2011100476103ACN102650952A (en)2011-02-282011-02-28Modeling tool order calling method and system based on MVC framework

Publications (1)

Publication NumberPublication Date
CN102650952Atrue CN102650952A (en)2012-08-29

Family

ID=46692960

Family Applications (1)

Application NumberTitlePriority DateFiling Date
CN2011100476103APendingCN102650952A (en)2011-02-282011-02-28Modeling tool order calling method and system based on MVC framework

Country Status (1)

CountryLink
CN (1)CN102650952A (en)

Cited By (13)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN103257855A (en)*2012-12-112013-08-21深圳市梦圆皇宫管理顾问有限公司MVC (model view controller) based processing system, MVC based processing method and application in facial beautifying software
CN103810737A (en)*2012-11-142014-05-21腾讯科技(深圳)有限公司Method and device for realizing animations in MVC mode
CN104424338A (en)*2013-09-112015-03-18北大方正集团有限公司Automatic generation device and automatic generation method for web system
CN105975265A (en)*2016-04-292016-09-28掌赢信息科技(上海)有限公司Device based on improved MVP mode
CN106293688A (en)*2015-06-262017-01-04阿里巴巴集团控股有限公司The processing method of a kind of web-page requests, device and system
CN106598655A (en)*2016-12-052017-04-26腾讯科技(深圳)有限公司Application page processing method and apparatus
CN107133041A (en)*2017-05-022017-09-05武汉斗鱼网络科技有限公司Data notification method and device
CN107172130A (en)*2017-04-252017-09-15武汉票据交易中心有限公司A kind of MVC registration implementation methods and server
CN108038009A (en)*2017-12-222018-05-15金蝶软件(中国)有限公司Front and back end exchange method, device and computer equipment based on Web applications
CN108874381A (en)*2017-05-092018-11-23武汉斗鱼网络科技有限公司A kind of method, apparatus and electronic equipment exporting page view controller
CN109739491A (en)*2018-12-252019-05-10北京金山安全软件有限公司Control data display method and device, electronic equipment and storage medium
CN111078208A (en)*2019-12-122020-04-28智器云南京信息科技有限公司Data processing method and system under MVC (model view controller) architecture, storage medium and electronic equipment
CN115113868A (en)*2021-03-182022-09-27上海金曲信息技术有限公司 MVC interface design system for CAD

Citations (2)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN201039204Y (en)*2007-03-302008-03-19上海未来宽带技术及应用工程研究中心有限公司IPMC system development based on event-driven principle
US7437715B2 (en)*2002-04-092008-10-14Hewlett-Packard Development Company, L.P.System and method for generating a set of robot commands based on user entry events in a user interface

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
US7437715B2 (en)*2002-04-092008-10-14Hewlett-Packard Development Company, L.P.System and method for generating a set of robot commands based on user entry events in a user interface
CN201039204Y (en)*2007-03-302008-03-19上海未来宽带技术及应用工程研究中心有限公司IPMC system development based on event-driven principle

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
王风: "基于Cairngorm框架企业级RIA系统结构研究", 《硕士学位论文》*

Cited By (21)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN103810737A (en)*2012-11-142014-05-21腾讯科技(深圳)有限公司Method and device for realizing animations in MVC mode
CN103810737B (en)*2012-11-142018-04-27腾讯科技(深圳)有限公司The cartoon implementing method and device of MVC pattern
CN103257855B (en)*2012-12-112016-04-06深圳市梦圆皇宫管理顾问有限公司A kind of disposal system based on MVC, disposal route and the application in beauty treatment software
CN103257855A (en)*2012-12-112013-08-21深圳市梦圆皇宫管理顾问有限公司MVC (model view controller) based processing system, MVC based processing method and application in facial beautifying software
CN104424338B (en)*2013-09-112018-02-02北大方正集团有限公司The automatically generating device and automatic generation method of web system
CN104424338A (en)*2013-09-112015-03-18北大方正集团有限公司Automatic generation device and automatic generation method for web system
CN106293688A (en)*2015-06-262017-01-04阿里巴巴集团控股有限公司The processing method of a kind of web-page requests, device and system
CN105975265A (en)*2016-04-292016-09-28掌赢信息科技(上海)有限公司Device based on improved MVP mode
CN105975265B (en)*2016-04-292019-04-12掌赢信息科技(上海)有限公司A kind of device based on modified MVP mode
CN106598655A (en)*2016-12-052017-04-26腾讯科技(深圳)有限公司Application page processing method and apparatus
US11868785B2 (en)2016-12-052024-01-09Tencent Technology (Shenzhen) Company LimitedApplication program page processing method and device
CN107172130B (en)*2017-04-252020-07-03武汉聚风天下科技有限公司MVC (model view controller) registration implementation method and server
CN107172130A (en)*2017-04-252017-09-15武汉票据交易中心有限公司A kind of MVC registration implementation methods and server
WO2018201871A1 (en)*2017-05-022018-11-08武汉斗鱼网络科技有限公司Data notification method, device and readable storage medium
CN107133041A (en)*2017-05-022017-09-05武汉斗鱼网络科技有限公司Data notification method and device
CN108874381A (en)*2017-05-092018-11-23武汉斗鱼网络科技有限公司A kind of method, apparatus and electronic equipment exporting page view controller
CN108874381B (en)*2017-05-092021-09-07武汉斗鱼网络科技有限公司 A method, device and electronic device for outputting page view controller
CN108038009A (en)*2017-12-222018-05-15金蝶软件(中国)有限公司Front and back end exchange method, device and computer equipment based on Web applications
CN109739491A (en)*2018-12-252019-05-10北京金山安全软件有限公司Control data display method and device, electronic equipment and storage medium
CN111078208A (en)*2019-12-122020-04-28智器云南京信息科技有限公司Data processing method and system under MVC (model view controller) architecture, storage medium and electronic equipment
CN115113868A (en)*2021-03-182022-09-27上海金曲信息技术有限公司 MVC interface design system for CAD

Similar Documents

PublicationPublication DateTitle
CN102650952A (en)Modeling tool order calling method and system based on MVC framework
US9830135B2 (en)Declarative and pluggable business logic for systems management
US8417798B2 (en)Deploying artifacts for packaged software application in cloud computing environment
US10656971B2 (en)Agile framework for vertical application development and delivery
US7590680B2 (en)Extensible robotic framework and robot modeling
EP2249249B1 (en)Systems and methods for modifying code generation templates
Tavares et al.A gentle introduction to OSGi
CN101430644B (en)System and method of executing a dynamic program in a structured environment
US10114861B2 (en)Expandable ad hoc domain specific query for system management
US20020144256A1 (en)Method of deployment for concurrent execution of multiple versions of an integration model on an integration server
US9459859B2 (en)Template derivation for configuration object management
US11762636B2 (en)Method and system for implementing application lineage metadata and registration
US20090106011A1 (en)System and method for developing and deploying sensor and actuator applications over distributed computing infrastructure
CN108958708A (en)A kind of software system architecture component-based and software implementation method
US12008488B2 (en)Systems and methods to manage sub-chart dependencies with directed acyclic graphs
US20150220404A1 (en)Undo configuration transactional compensation
US20220413843A1 (en)Combining model-driven applications and canvas-type applications with application lifecycle management
CN107967166A (en)Method for realizing remote sensing image processing service flow in cloud environment
CN1866283B (en) System and method for implementing rule system triggering
Blumendorf et al.Executable models for human-computer interaction
CN112631563A (en)System development method and device based on framework, computer equipment and storage medium
EP4102357A1 (en)Development environment organizer with enhanced state switching and sharing
CN112700004B (en)Deep learning model training method, device and storage medium based on container technology
WO2023009158A1 (en)Optimized software delivery to airgapped robotic process automation (rpa) hosts
CN115390802B (en) Application component development method, system, device and storage medium

Legal Events

DateCodeTitleDescription
C06Publication
PB01Publication
C10Entry into substantive examination
SE01Entry into force of request for substantive examination
C12Rejection of a patent application after its publication
RJ01Rejection of invention patent application after publication

Application publication date:20120829


[8]ページ先頭

©2009-2025 Movatter.jp