CN102495734A - Inheritable toolbar system and achieving method thereof - Google Patents
Inheritable toolbar system and achieving method thereof Download PDFInfo
- Publication number
- CN102495734A CN102495734A CN2011104110632A CN201110411063A CN102495734A CN 102495734 A CN102495734 A CN 102495734A CN 2011104110632 A CN2011104110632 A CN 2011104110632A CN 201110411063 A CN201110411063 A CN 201110411063A CN 102495734 A CN102495734 A CN 102495734A
- Authority
- CN
- China
- Prior art keywords
- toolbar
- definition
- rendering engine
- button
- json
- 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
Links
Images
Abstract
The invention discloses an inheritable toolbar system, which is characterized in that the system comprises a toolbar definition device arranged at a client terminal and a toolbar explanation engine arranged at a server terminal. The toolbar explanation engine calls and processes data at the server terminal and transmits the data to the toolbar definition device at the client terminal after the definition of the toolbar definition device is explained by a java virtual machine, the toolbar definition device comprises a toolbar body definition module and a toolbar element definition module, and the toolbar definition device ensures a toolbar element object to be inherited from a toolbar body object. The toolbar in the inheritable toolbar system can be rapidly expanded, and can be accumulated.
Description
Technical field
The present invention relates to a kind of toolbar development technique field, relate in particular to a kind of toolbar system and its implementation inherited.
Background technology
On the graphic user interface of graphoscope, toolbar has been placed interface button, icon, menu or other I/O element.Toolbar is the control strip of display bitmap formula button rows, and the bit map type button is used for fill order.Be equivalent to the choice menus item by toolbar button; If certain menu item has the ID identical with toolbar button, tool using hurdle button will call the same handling procedure that is mapped to this menu item so.Can configuration button, make it in outward appearance and behavior, show as conventional push button, radio button or check box.Toolbar aligns with the top of frame window usually, but the MFC toolbar can " be stopped " in any one side of its parent window or the pocket frame window at it and floats.Toolbar also can " float ", the user can change its size and with mouse drag it.When the user moves to mouse on the toolbar button, but toolbar show tooltips also.ToolTips is a wicket that ejects, and briefly describes the effect of button.
The toolbar (toolbar) of B/S framework management software realizes, is divided into complete manual code development technically and realizes and realize based on chassis configuration, is divided into the realization of outward appearance and the realization of behavior from content,
If manual code development, the pattern of toolbar and code need the point of control may be summarized to be fully by programmer oneself control: the outward appearance of the last element of toolbar and putting, generally control through html; The change of toolbar button state behind the interface operation, as choose data activation delete button of tabulation; Obtain the parameter of other elements of the page behind the button click, might need the enforceability of further decision operation; Client data is transferred to server end, carries out business logic processing by server end, and return results; Customer terminal webpage is received the result of server end and is given the operator necessary response, as ejecting information, opens or jump to other pages etc.
If chassis configuration realizes that general information and the service logic that only need fill out in the place of necessity need do not considered the redirect between the data transfer and the page; Take time and effort though the dirigibility of manual programming code is high; And need all developers that relate to this piece all very familiar to the mutual programming model of client and server end; Simultaneously too strong for the personalization of project management angle code, bad administering and maintaining.And based on the exploitation of framework, flexibility ratio can be weak eventually, and generally is difficult to accomplish multiplexing between the assembly.After all, framework has its pattern that pre-sets, and is very simple according to existing mode development, just uses very inconvenience in case exceed.The present invention therefore.
Summary of the invention
The software toolbar design that the present invention is primarily aimed at the B/S architecture system proposes a kind of new scheme, is intended to solve the fast and flexible of toolbar exploitation and can inherit multiplexing problem.
In order to solve these problems in the prior art, technical scheme provided by the invention is following:
A kind of toolbar system of inheriting is characterized in that said system comprises toolbar definition device that is arranged on client and the toolbar rendering engine that is arranged on server end; After making an explanation through the java virtual machine according to the definition of toolbar definition device, calls said toolbar rendering engine and the processing server data back is given the toolbar definition device of client; Said toolbar definition device comprises toolbar ontology definition module and toolbar element definition module; Said toolbar definition device confirms that the toolbar element object inherits in toolbar body object.
Preferably, said toolbar body defines through the xml form, and the parameter of said toolbar body passes to the toolbar rendering engine through JSON and makes an explanation.
Preferably, said toolbar element defines through the xml form, and the parameter of said toolbar element passes to the toolbar rendering engine through JSON and makes an explanation.
Preferably, the width of said toolbar ontology definition toolbar, height and button distribute and initial method.
Preferably, button, text, option, text box in the said toolbar element definition toolbar, and the parameter of these controls, trigger event and behavior and initial method.
Preferably, said toolbar rendering engine loads the xml definition through the Java code, toolbar body and toolbar element is converted to the object of java; Flow processing outputs to the output parameter content in the toolbar through the json object after accomplishing.
Another object of the present invention is to provide a kind of implementation method of inheriting the toolbar system, it is characterized in that said method comprising the steps of:
(1) obtains toolbar definition (buffer memory), output to the page with the form of json;
(2) the js script loads initialization according to inheritance, makes subobject have the attribute and the method for parent object;
(3) carry out the init () method and the load () of each button, actual html control has been used attribute and the method in the definition on this moment page;
(4) wait for user's input, carry out correlation method.
Compared with prior art, beneficial effect of the present invention is:
Toolbar is extendible fast: can 80% operation be reduced fixing several types; Before the system development these all are packaged into toolbar element one by one; The programmer only need configure these several elements in the toolbar the inside and just can develop fast when exploitation, and some has the page of specific demand still can in this xml definition, expand at once.Both can there be the behavior of client to represent, the logical process of server end also can have been arranged.
Toolbar can accumulate: all patterns of Toolbar and behavior all are encapsulated in an xml the inside, and under same rendering engine, xml can be used in each system.To a team and company, long-term accumulation is got off, and available toolbar and toolbar element can get more and more.
Description of drawings
Below in conjunction with accompanying drawing and embodiment the present invention is further described:
Fig. 1 is the definition synoptic diagram of the toolbar the inherited system of the embodiment of the invention;
Fig. 2 is the toolbar the inherited system implementation method flow diagram of the embodiment of the invention.
Embodiment
Below in conjunction with specific embodiment such scheme is further specified.Should be understood that these embodiment are used to the present invention is described and are not limited to limit scope of the present invention.The implementation condition that adopts among the embodiment can be done further adjustment according to the condition of concrete producer, and not marked implementation condition is generally the conventional condition of using.
Embodiment
The present invention can accomplish that representing with business processing and forms pages code of toolbar breaks away from.Client j s operation and server end service logical calling code are all accomplished by assembly self, do not rely on other codes, accomplish decoupling zero.Like this, it is multiplexing between multisystem that toolbar just can be used as assembly.
Simultaneously toolbar object and the tbElement that wherein comprises to as if can inherit multiplexing.
The present invention is a cover rounded system, comprises toolbar definition information (xml) and rendering engine (java), specifically defines like Fig. 1.
Definition is divided into Toolbar and TbElement, i.e. toolbar body and toolbar element, and they are--can there be inheritance in the relation of one-to-many between the while TbElement
Be the example of definition below
As shown in Figure 2, the toolbar the inherited system implementation method of the embodiment of the invention comprises:
(1) user's request has the page of toolbar.
(2) the Java code loads the xml definition, converts the object of java to, and this object comprises has that Toolbar's represent code (Config); The toolbar element (button, text, the select that possess; And the corresponding infrastructure elements object of toolbar element mscombobox etc.).The JAVA code of writing in the element need carry out on-the-flier compiler with class, under the specified packet structure, generates the class of java according to the id of current toolbar.Need part that client explains to output to client, form the json object through the http stream of the page.
(3) client represents; Js partial code by engine is carried out; Accomplish the initialization of each attribute of json object, preferential initialization parent object utilizes the js code to realize the characteristic of " succession "; Make subobject have the attribute and the method for parent object (ownerid), also can use the attribute and the method for the characteristic covering parent object of oneself simultaneously.
(4) server end incident is such as the load events at toolbar body and toolbar element, click event of toolbar element or the like.Find the class and the method for server end through the ajax technology by the rule of arranging, and call execution, also can the result who carry out be turned back to client and do more processing through j s again.
The core concept of this design is: represent and business processing and the forms pages code of toolbar break away from.Client code and server end code are all accomplished by self.Do not rely on other codes.Accomplish decoupling zero.Like this, it is multiplexing between multisystem that toolbar just can be used as assembly.
Hereditable tool bar Design Mode.Specifically comprise: the xml definition structure of toolbar and element (config, js, java, owner); Engine separates with definition, and represent and business processing and the forms pages code of toolbar break away from.
Can comprise business logic codes in the toolbar definition, the operation of client and server end can all be accomplished an xml the inside definition.The hereditable characteristic of toolbar element can be enjoyed the parent object all functions, also can cover and revise; Under the same rendering engine, multiplexing of toolbar needs the xml file of reproducting definition to get final product, does not rely on other codes.
Obviously, it is apparent to those skilled in the art 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; Can they be stored in the memory storage and carry out, 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 by calculation element.Like this, the present invention is not restricted to any specific hardware and software combination.
Above-mentioned instance only is explanation technical conceive of the present invention and characteristics, and its purpose is to let the people who is familiar with this technology can understand content of the present invention and enforcement according to this, can not limit protection scope of the present invention with this.All equivalent transformations that spirit is done according to the present invention or modification all should be encompassed within protection scope of the present invention.
Claims (7)
1. can inherit the toolbar system for one kind, it is characterized in that said system comprises toolbar definition device that is arranged on client and the toolbar rendering engine that is arranged on server end; After making an explanation through the java virtual machine according to the definition of toolbar definition device, calls said toolbar rendering engine and the processing server data back is given the toolbar definition device of client; Said toolbar definition device comprises toolbar ontology definition module and toolbar element definition module; Said toolbar definition device confirms that the toolbar element object inherits in toolbar body object.
2. the toolbar system of inheriting according to claim 1 is characterized in that said toolbar body defines through the xml form, and the parameter of said toolbar body passes to the toolbar rendering engine through JSON and makes an explanation.
3. the toolbar system of inheriting according to claim 1 is characterized in that said toolbar element defines through the xml form, and the parameter of said toolbar element passes to the toolbar rendering engine through JSON and makes an explanation.
4. the toolbar system of inheriting according to claim 3 is characterized in that width, height and the button of said toolbar ontology definition toolbar distributes and initial method.
5. the toolbar system of inheriting according to claim 4 is characterized in that button, text, option, text box in the said toolbar element definition toolbar, and the parameter of these controls, trigger event and behavior and initial method.
6. the toolbar system of inheriting according to claim 1 is characterized in that said toolbar rendering engine loads the xml definition through the Java code, toolbar body and toolbar element is converted to the object of java; Flow processing outputs to the output parameter content in the toolbar through the json object after accomplishing.
7. the implementation method that can inherit the toolbar system is characterized in that said method comprising the steps of:
(1) obtains toolbar definition (buffer memory), output to the page with the form of json;
(2) the js script loads initialization according to inheritance, makes subobject have the attribute and the method for parent object;
(3) carry out the init () method and the load () of each button, actual html control has been used attribute and the method in the definition on this moment page;
(4) wait for user's input, carry out correlation method.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN2011104110632A CN102495734A (en) | 2011-12-12 | 2011-12-12 | Inheritable toolbar system and achieving method thereof |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN2011104110632A CN102495734A (en) | 2011-12-12 | 2011-12-12 | Inheritable toolbar system and achieving method thereof |
Publications (1)
Publication Number | Publication Date |
---|---|
CN102495734A true CN102495734A (en) | 2012-06-13 |
Family
ID=46187562
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN2011104110632A Pending CN102495734A (en) | 2011-12-12 | 2011-12-12 | Inheritable toolbar system and achieving method thereof |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN102495734A (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106325846A (en) * | 2015-07-01 | 2017-01-11 | 北京京东尚科信息技术有限公司 | Method and apparatus for adding functional module of application program |
CN107179990A (en) * | 2017-05-17 | 2017-09-19 | 郑州云海信息技术有限公司 | A kind of method and device for realizing test verification |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101231648A (en) * | 2007-01-26 | 2008-07-30 | 鸿富锦精密工业(深圳)有限公司 | Webpage toolbar management system and method |
CN101490674A (en) * | 2006-07-07 | 2009-07-22 | 国际商业机器公司 | Method for defining a Wiki page layout using a Wiki page |
CN101512513A (en) * | 2006-09-14 | 2009-08-19 | Nhn公司 | Method and apparatus for editing service of tool bar |
CN101578581A (en) * | 2006-10-16 | 2009-11-11 | 因文西斯系统公司 | Extensible automation development environment |
CN102023847A (en) * | 2009-09-10 | 2011-04-20 | 北京盖特佳信息安全技术股份有限公司 | Method for realizing push-mode multisystem synchronous data entry based on IE browser based |
CN102129364A (en) * | 2010-01-14 | 2011-07-20 | 中国电信股份有限公司 | Method for embedding widget toolbar in application program and rapid widget accessing method |
-
2011
- 2011-12-12 CN CN2011104110632A patent/CN102495734A/en active Pending
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101490674A (en) * | 2006-07-07 | 2009-07-22 | 国际商业机器公司 | Method for defining a Wiki page layout using a Wiki page |
CN101512513A (en) * | 2006-09-14 | 2009-08-19 | Nhn公司 | Method and apparatus for editing service of tool bar |
CN101578581A (en) * | 2006-10-16 | 2009-11-11 | 因文西斯系统公司 | Extensible automation development environment |
CN101231648A (en) * | 2007-01-26 | 2008-07-30 | 鸿富锦精密工业(深圳)有限公司 | Webpage toolbar management system and method |
CN102023847A (en) * | 2009-09-10 | 2011-04-20 | 北京盖特佳信息安全技术股份有限公司 | Method for realizing push-mode multisystem synchronous data entry based on IE browser based |
CN102129364A (en) * | 2010-01-14 | 2011-07-20 | 中国电信股份有限公司 | Method for embedding widget toolbar in application program and rapid widget accessing method |
Non-Patent Citations (1)
Title |
---|
周虹: "基于Google工具栏定制图书馆个性化", 《现代图书情报技术》 * |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106325846A (en) * | 2015-07-01 | 2017-01-11 | 北京京东尚科信息技术有限公司 | Method and apparatus for adding functional module of application program |
CN107179990A (en) * | 2017-05-17 | 2017-09-19 | 郑州云海信息技术有限公司 | A kind of method and device for realizing test verification |
CN107179990B (en) * | 2017-05-17 | 2020-09-08 | 浪潮云信息技术股份公司 | Method and device for realizing test verification |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN102194003A (en) | Web page popup window method and device | |
CN106250156B (en) | Constructing method of component and device, component call method and apparatus | |
CN106339226B (en) | A kind of methods of exhibiting and page presentation device of Webpage | |
US20150293764A1 (en) | Method and system to compose and execute business rules | |
US20150261428A1 (en) | Method and apparatus for updating a web-based user interface | |
CN106021211A (en) | Intelligent form system and generation method thereof | |
CN102810057A (en) | Log recording method | |
CN100437478C (en) | System and method for interactive wireless applications | |
CN101887370A (en) | Method and device for creating system user interface | |
CN104391693A (en) | Method for achieving multiple-choice of drop-down list box | |
CN109471626A (en) | Page logic structure, page generation method, page data processing method and device | |
CN103530097A (en) | Implement method and device of module crossing middleware platform | |
CN112068911A (en) | Method, device, system, equipment and medium for generating electronic form | |
CN108924030A (en) | Electronic device, the method for dynamically configuration message exhibition method and storage medium | |
CN105074652A (en) | Remotely executing operations of an application using a schema that provides for executable scripts in a nodal hierarchy | |
CN104834715A (en) | Website generating method and system based on components and container | |
CN102495734A (en) | Inheritable toolbar system and achieving method thereof | |
CN107391274A (en) | The processing method and processing device of deferred information | |
CN105518618A (en) | Input object configured to route input for a visual element to a graphic framework | |
White et al. | The generic eclipse modeling system | |
CN109343831A (en) | A kind of management method and device of HTML component | |
CN104063219A (en) | Form development method and system for WEB system | |
CN104102485A (en) | Html-based module encapsulation loading method | |
CN109522507B (en) | Method for uniformly managing webpage components | |
CN102866895B (en) | Method for quickly positioning function customizing entrance |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C12 | Rejection of a patent application after its publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20120613 |