CN102053838A - Form building method and device in rich client platform - Google Patents

Form building method and device in rich client platform Download PDF

Info

Publication number
CN102053838A
CN102053838A CN2010106174831A CN201010617483A CN102053838A CN 102053838 A CN102053838 A CN 102053838A CN 2010106174831 A CN2010106174831 A CN 2010106174831A CN 201010617483 A CN201010617483 A CN 201010617483A CN 102053838 A CN102053838 A CN 102053838A
Authority
CN
China
Prior art keywords
attribute information
created
row
markup language
extensible markup
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
CN2010106174831A
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.)
CVIC Software Engineering Co Ltd
Original Assignee
CVIC Software Engineering Co Ltd
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 CVIC Software Engineering Co Ltd filed Critical CVIC Software Engineering Co Ltd
Priority to CN2010106174831A priority Critical patent/CN102053838A/en
Publication of CN102053838A publication Critical patent/CN102053838A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Stored Programmes (AREA)

Abstract

The invention discloses a form building method and device in a rich client platform. The method comprises: when the device builds a form, packaging the attribute information of a form to be built into an extensible markup language file after obtaining the attribute information of a form to be built; analyzing the file by a programming interface for processing the extensible markup language file; storing the attribute information obtained by analysis, of a form to be built, into a corresponding JAVA listing object; and then, building the form according to the attribute information stored in the JAVA listing object, of a form to be built. The form building mode in the invention is characterized in that only the corresponding JAVA listing object is invoked for building the form by storing the attribute information of the form into the JAVA listing object in the process of building the form; and the attribute information of the form can be revised by revising the attribute information stored in the JAVA listing without revising a code program, thus avoiding the problems of difficult maintenance and high cost because the code quickly bloats.

Description

The creation method and the device of form in the rich customer platform
Technical field
The present invention relates to rich customer platform applied technical field, relate in particular to the creation method and the device of form in a kind of rich customer platform.
Background technology
The widespread use in enterprise along with rapid economy development and information system management, the user has higher requirement to network capabilities, interactivity ability and the data-handling capacity of using system.Rich customer platform is with its localization, specialized outward appearance, outstanding operational efficiency, less memory consumption, and Componentized designs a model, characteristics such as good reusability, scalability, maintainability, extensibility have obtained using widely in the information system management of enterprise.
In rich customer platform application and development, form is the comparatively frequent assembly of a kind of use.But the form that the method for existing establishment form is created out, form attributes upgrades or the form of being correlated with is created constantly carrying out, need carry out code changes, after for example a form carries out repeatedly the attribute renewal, because platform need write down the code before and after each the renewal, can cause the rapid expansion of code, thereby cause the maintenance in later stage and modification to become very difficult, increase the cost of safeguarding and revising greatly.
Summary of the invention
In view of this, the invention provides the creation method and the device of form in a kind of rich customer platform, with the form creation method of solution prior art, the high problem of being brought of code maintenance difficulty, cost, technical scheme is as follows:
The creation method of form in a kind of rich customer platform comprises:
Obtain the attribute information of form to be created, and be packaged into extensible markup language document;
Utilization is used for the DLL (dynamic link library) that extensible markup language document is handled, and described extensible markup language document is resolved, and the attribute information of the form to be created that will obtain after will resolving deposits in the corresponding JAVA list object;
Attribute information according to the form of storing in the described JAVA list object to be created is created form.
Preferably, in the said method, also comprise:, upgrade the attribute information of the form of described establishment according to the attribute information of storing in the described JAVA list object.
Preferably, in the said method, the attribute information of described form comprises: the attribute information of row name, col width and the every row of object of class, the every row of form under the object of form.
Preferably, in the said method, the attribute information of the form to be created that will obtain after described will the parsing deposits in the corresponding JAVA list object, comprising:
Class under the object of described form to be created is stored into the metadatas of JAVA list object; The row name of every row stores columnNames into; The col width of every row stores columnWidths into; The attribute information of the every row of object stores columnTypes into.
The creation apparatus of form in a kind of rich customer platform comprises:
Encapsulation unit is used to obtain the attribute information of form to be created, and is packaged into extensible markup language document;
Resolution unit is used to utilize be used for the DLL (dynamic link library) that extensible markup language document is handled, and described extensible markup language document is resolved, and the attribute information of the form to be created that will obtain after will resolving deposits in the corresponding JAVA list object;
Creating unit, the attribute information that is used for the form to be created stored according to described JAVA list object is created form.
Preferably, in the said apparatus, also comprise:
Updating block is used for the attribute information stored according to described JAVA list object, upgrades the attribute information of the form of described establishment.
Preferably, in the said apparatus, the attribute information of described form comprises: the attribute information of row name, col width and the every row of object of class, the every row of form under the object of form.
Preferably, in the said apparatus, described resolution unit comprises a classification and storage unit, and described classification and storage unit is used for class under the object of described form to be created is stored into the metadatas of JAVA list object; The row name of every row stores columnNames into; The col width of every row stores columnWidths into; The attribute information of the every row of object stores columnTypes into.
As seen through the above technical solutions, the present invention is when creating form, after obtaining the attribute information of form to be created, at first it is packaged into extensible markup language document, be used for the DLL (dynamic link library) that extensible markup language document is handled then, described extensible markup language document is resolved, and the attribute information of the form to be created that will obtain after will resolving deposits in the corresponding JAVA list object, and then creates form according to the attribute information of the form of storing in the described JAVA list object to be created; Form of the present invention is created mode, stores in the JAVA list object by the attribute information with form, thereby carries out form when creating, and only need call relevant JAVA list object and get final product; Carrying out form attributes when revising, the attribute information that also needs to revise storage in the JAVA tabulation get final product, does not need to revise program in machine code, thereby has avoided because of code difficult in maintenance, the problem that cost is high brought of expansion rapidly.
Description of drawings
In order to be illustrated more clearly in technical scheme of the present invention, the accompanying drawing of required use is done to introduce simply in will describing the present invention below, apparently, 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.
The creation method process flow diagram 1 of form in the rich customer platform that Fig. 1 provides for the embodiment of the invention;
The creation method process flow diagram 2 of form in the rich customer platform that Fig. 2 provides for the embodiment of the invention;
Structural representation Fig. 1 of the creation apparatus of form in the rich customer platform that Fig. 3 provides for the embodiment of the invention;
Structural representation Fig. 2 of the creation apparatus of form in the rich customer platform that Fig. 4 provides for the embodiment of the invention;
The structural representation of the resolution unit that Fig. 5 provides for the embodiment of the invention.
Embodiment
At first the creation method of form describes in the rich customer platform that the embodiment of the invention is provided:
The creation method of form comprises in the rich customer platform that the embodiment of the invention provides:
Obtain the attribute information of form to be created, and be packaged into extensible markup language document;
Utilization is used for the DLL (dynamic link library) that extensible markup language document is handled, and described extensible markup language document is resolved, and the attribute information of the form to be created that will obtain after will resolving deposits in the corresponding JAVA list object;
Attribute information according to the form of storing in the described JAVA list object to be created is created form.
As seen through the above technical solutions, form of the present invention is created mode, stores in the JAVA list object by the attribute information with form, thereby carries out form when creating, and only need call relevant JAVA list object and get final product; Carrying out form attributes when revising, the attribute information that also needs to revise storage in the JAVA tabulation get final product, does not need to revise program in machine code, thereby has avoided because of code difficult in maintenance, the problem that cost is high brought of expansion rapidly.
Below in conjunction with the accompanying drawing among the present invention, technical scheme of the present invention is clearly and completely described.
Referring to shown in Figure 1, the creation method of form can may further comprise the steps in the rich customer platform that the embodiment of the invention provides:
S101 obtains the attribute information of form to be created, and is packaged into extensible markup language document.
In the rich customer platform a lot of configurable parameters are arranged, generally speaking, can all focus on the configurable parameter of project in the preference and realize.Before creating form, obtain after the attribute information of form to be created, in the configuration interface of form attributes, it is that suffix is the file of .xml that described attribute information is packaged into extensible markup language document.
Wherein, the attribute information of described form comprises: the attribute information of row name, col width and the every row of object of class, the every row of form under the object of form.
S102 is used for the DLL (dynamic link library) that extensible markup language document is handled, and described extensible markup language document is resolved, and the attribute information of the form to be created that will obtain after will resolving deposits in the corresponding JAVA list object.
After attribute information is packaged into extensible markup language document, need this extensible markup language document is resolved in the JAVA object, use for program.During parsing, utilize in the rich customer platform, use JAVA language compilation, be used for the DLL (dynamic link library) that extensible markup language document is handled, described extensible markup language document is resolved, and the attribute information that will obtain after will resolving deposits in the corresponding JAVA list object.
Need to prove that during specific implementation, the attribute information of the form to be created that will obtain after described will the parsing deposits in the corresponding JAVA list object and can comprise:
Class under the object of described form to be created is stored into the metadatas of JAVA list object; The row name of every row stores columnNames into; The col width of every row stores columnWidths into; The attribute information of the every row of object stores columnTypes into.
S103 creates form according to the attribute information of the form of storing in the described JAVA list object to be created.
The variation of JAVA list object on state of storage form attribute information can be notified all those observer's objects that depend on this object, for example creates form etc., and these observer's objects are upgraded.
Therefore, after the attribute information with form stores the corresponding JAVA list object into, just can create the operation of form by the content of calling described JAVA list object.
From the foregoing description as can be seen, form that the embodiment of the invention provides is created mode, stores in the JAVA list object by the attribute information with form, thereby carries out form when creating, and only need call relevant JAVA list object and get final product; Carrying out form attributes when revising, the attribute information that also needs to revise storage in the JAVA tabulation get final product, does not need to revise program in machine code, thereby has avoided because of code difficult in maintenance, the problem that cost is high brought of expansion rapidly.
Referring to shown in Figure 2, the creation method of form in the rich customer platform that the embodiment of the invention provides can also may further comprise the steps:
S201 obtains the attribute information of form to be created, and is packaged into extensible markup language document.
S202 is used for the DLL (dynamic link library) that extensible markup language document is handled, and described extensible markup language document is resolved, and the attribute information of the form to be created that will obtain after will resolving deposits in the corresponding JAVA list object.
S203 creates form according to the attribute information of the form of storing in the described JAVA list object to be created.
S204 according to the attribute information of storing in the described JAVA list object, upgrades the attribute information of the form of described establishment.
In the present embodiment, the embodiment of S201~S203 is identical with S101~S103 of embodiment as shown in Figure 1, so repeat no more.
A kind of normality mechanism that the form attribute information is upgraded that provides is provided the S204 of present embodiment, promptly by with the form of form attributes information stores in the relevant JAVA list object, make the attribute information of form have adaptive ability, thereby carrying out the form attributes information updating is that table format is when revising, some constant values that only need to revise the JAVA list object get final product, the functional module of program and call method do not need to revise, thereby can improve the work efficiency of platform greatly.
Description by above method embodiment, the those skilled in the art can be well understood to the present invention and can realize by the mode that software adds essential general hardware platform, can certainly pass through hardware, but the former is better embodiment under a lot of situation.Based on such understanding, the part that technical scheme of the present invention contributes to prior art in essence in other words can embody with the form of software product, this computer software product is stored in the storage medium, comprise that some instructions are with so that a computer equipment (can be a personal computer, server, the perhaps network equipment etc.) carry out all or part of step of the described method of each embodiment of the present invention.And aforesaid storage medium comprises: various media that can be program code stored such as ROM (read-only memory) (ROM), random-access memory (ram), magnetic disc or CD.
Corresponding to top method embodiment, the invention also discloses the creation apparatus of form in a kind of rich customer platform, referring to shown in Figure 4, can comprise:
Encapsulation unit 100 is used to obtain the attribute information of form to be created, and is packaged into extensible markup language document.
Wherein, the attribute information of described form comprises: the attribute information of row name, col width and the every row of object of class, the every row of form under the object of form.
Resolution unit 200 is used to utilize be used for the DLL (dynamic link library) that extensible markup language document is handled, and described extensible markup language document is resolved, and the attribute information of the form to be created that will obtain after will resolving deposits in the corresponding JAVA list object.
After attribute information is packaged into extensible markup language document, need this extensible markup language document is resolved in the JAVA object, use for program.During parsing, utilize in the rich customer platform, use JAVA language compilation, be used for the DLL (dynamic link library) that extensible markup language document is handled, described extensible markup language document is resolved, and the attribute information that will obtain after will resolving deposits in the corresponding JAVA list object.
Creating unit 300, the attribute information that is used for the form to be created stored according to described JAVA list object is created form.
In other embodiments, the creation apparatus of form in the rich customer platform that the embodiment of the invention provides can further include:
Updating block 400 is used for the attribute information stored according to described JAVA list object, upgrades the attribute information of the form of described establishment.
In other embodiments, described resolution unit 200 comprises a classification and storage unit 201, is used for class under the object of described form to be created is stored into the metadatas of JAVA list object; The row name of every row stores columnNames into; The col width of every row stores columnWidths into; The attribute information of the every row of object stores columnTypes into.
For device embodiment, because it is substantially corresponding to method embodiment, so relevant part gets final product referring to the part explanation of method embodiment.Device embodiment described above only is schematic, wherein said unit as the separating component explanation can or can not be physically to separate also, the parts that show as the unit can be or can not be physical locations also, promptly can be positioned at a place, perhaps also can be distributed on a plurality of network element.Can select wherein some or all of module to realize the purpose of present embodiment scheme according to the actual needs.Those of ordinary skills promptly can understand and implement under the situation of not paying creative work.
Need to prove, in this article, term " comprises ", " comprising " or its any other variant are intended to contain comprising of nonexcludability, thereby make and comprise that process, method, article or the equipment of a series of key elements not only comprise those key elements, but also comprise other key elements of clearly not listing, or also be included as this process, method, article or equipment intrinsic key element.Do not having under the situation of more restrictions, the key element that limits by statement " comprising ... ", and be not precluded within process, method, article or the equipment that comprises described key element and also have other identical element.
In addition, the synoptic diagram of institute's tracing device and method and different embodiment, in the scope that does not exceed the application, can with other system, module, technology or method in conjunction with or integrated.Another point, the shown or coupling each other discussed or directly to be coupled or to communicate to connect can be by some interfaces, the indirect coupling of device or unit or communicate to connect can be electrically, machinery or other form.
The above only is the specific embodiment of the present invention; should be pointed out that for those skilled in the art, under the prerequisite that does not break away from the principle of the invention; can also make some improvements and modifications, these improvements and modifications also should be considered as protection scope of the present invention.

Claims (8)

1. the creation method of form in the rich customer platform is characterized in that, comprising:
Obtain the attribute information of form to be created, and be packaged into extensible markup language document;
Utilization is used for the DLL (dynamic link library) that extensible markup language document is handled, and described extensible markup language document is resolved, and the attribute information of the form to be created that will obtain after will resolving deposits in the corresponding JAVA list object;
Attribute information according to the form of storing in the described JAVA list object to be created is created form.
2. method according to claim 1 is characterized in that, also comprises:
According to the attribute information of storing in the described JAVA list object, upgrade the attribute information of the form of described establishment.
3. method according to claim 1 and 2 is characterized in that, the attribute information of described form comprises: the attribute information of row name, col width and the every row of object of class, the every row of form under the object of form.
4. method according to claim 3 is characterized in that, the attribute information of the form to be created that will obtain after described will the parsing deposits in the corresponding JAVA list object, comprising:
Class under the object of described form to be created is stored into the metadatas of JAVA list object; The row name of every row stores columnNames into; The col width of every row stores columnWidths into; The attribute information of the every row of object stores columnTypes into.
5. the creation apparatus of form in the rich customer platform is characterized in that, comprising:
Encapsulation unit is used to obtain the attribute information of form to be created, and is packaged into extensible markup language document;
Resolution unit is used to utilize be used for the DLL (dynamic link library) that extensible markup language document is handled, and described extensible markup language document is resolved, and the attribute information of the form to be created that will obtain after will resolving deposits in the corresponding JAVA list object;
Creating unit, the attribute information that is used for the form to be created stored according to described JAVA list object is created form.
6. device according to claim 5 is characterized in that, also comprises:
Updating block is used for the attribute information stored according to described JAVA list object, upgrades the attribute information of the form of described establishment.
7. according to claim 4 or 5 described devices, it is characterized in that the attribute information of described form comprises: the attribute information of row name, col width and the every row of object of class, the every row of form under the object of form.
8. device according to claim 7 is characterized in that, described resolution unit comprises a classification and storage unit, and described classification and storage unit is used for class under the object of described form to be created is stored into the metadatas of JAVA list object; The row name of every row stores columnNames into; The col width of every row stores columnWidths into; The attribute information of the every row of object stores columnTypes into.
CN2010106174831A 2010-12-31 2010-12-31 Form building method and device in rich client platform Pending CN102053838A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2010106174831A CN102053838A (en) 2010-12-31 2010-12-31 Form building method and device in rich client platform

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2010106174831A CN102053838A (en) 2010-12-31 2010-12-31 Form building method and device in rich client platform

Publications (1)

Publication Number Publication Date
CN102053838A true CN102053838A (en) 2011-05-11

Family

ID=43958195

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2010106174831A Pending CN102053838A (en) 2010-12-31 2010-12-31 Form building method and device in rich client platform

Country Status (1)

Country Link
CN (1) CN102053838A (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101446938A (en) * 2008-12-04 2009-06-03 金蝶软件(中国)有限公司 Method for generating table and processing device thereof
CN101788994A (en) * 2009-08-14 2010-07-28 成都迪捷信息技术有限公司 Method for constructing data display model and method and device for displaying data
CN101826112A (en) * 2010-05-05 2010-09-08 山东中创软件工程股份有限公司 Method, device and system for storing and reading list data

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101446938A (en) * 2008-12-04 2009-06-03 金蝶软件(中国)有限公司 Method for generating table and processing device thereof
CN101788994A (en) * 2009-08-14 2010-07-28 成都迪捷信息技术有限公司 Method for constructing data display model and method and device for displaying data
CN101826112A (en) * 2010-05-05 2010-09-08 山东中创软件工程股份有限公司 Method, device and system for storing and reading list data

Similar Documents

Publication Publication Date Title
US9804837B2 (en) System and method for creating, managing, and reusing schema type definitions in services oriented architecture services, grouped in the form of libraries
CN101452386B (en) Method for executing policy based on context model by using forward direction discursion chain and policy engine
US10296297B2 (en) Execution semantics for sub-processes in BPEL
CN102279750B (en) Iterative code generation method based on domain knowledge sharing
CN103955364A (en) Front end assembly method suitable for mobile phone
CN105354037A (en) Modularized software developing method and software developing device
CN101604241A (en) A kind of code generating method of embedded system
CN103176769A (en) Customizable software deployment, installation method and system
CN111427631B (en) Dynamic configuration method of diversified mobile application function module
CN111198863A (en) Rule engine and implementation method thereof
CN102023885A (en) Method and system for storing bytecode of JCRE (Java card run time environment)
CN110673853A (en) Compiling method, device and system
CN103744647A (en) Java workflow development system and method based on workflow GPD
CN103150154A (en) Implementation method and device of application plug-in
CN104657142A (en) CCFD (China Computational Fluid Dynamics) system based on OSGi (Open Service Gateway Initiative) technology
CN104133676A (en) Function execution method and function execution device based on scripts
US9552239B2 (en) Using sub-processes across business processes in different composites
CN104991810B (en) Method and processing system in automatic addition APK to Android system
Rademacher et al. Deriving microservice code from underspecified domain models using DevOps-enabled modeling languages and model transformations
CN111158743B (en) Big data operation and maintenance management platform
CN101894317B (en) System and method for driving business logic through data changes
CN103500099A (en) Method for achieving quick software secondary development through expansion points and expansion
CN106951240B (en) Batch packaging method for user customized products
CN100470472C (en) System and method for implementing geographical information service based on interpreter and resolver
CN115202663A (en) Data processing method, device and 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
C12 Rejection of a patent application after its publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20110511