CN106598556B - User interface generation method and device - Google Patents

User interface generation method and device Download PDF

Info

Publication number
CN106598556B
CN106598556B CN201510670900.1A CN201510670900A CN106598556B CN 106598556 B CN106598556 B CN 106598556B CN 201510670900 A CN201510670900 A CN 201510670900A CN 106598556 B CN106598556 B CN 106598556B
Authority
CN
China
Prior art keywords
control
user interface
data
function
service
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.)
Active
Application number
CN201510670900.1A
Other languages
Chinese (zh)
Other versions
CN106598556A (en
Inventor
梁伟
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Alibaba Group Holding Ltd
Original Assignee
Alibaba Group Holding 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 Alibaba Group Holding Ltd filed Critical Alibaba Group Holding Ltd
Priority to CN201510670900.1A priority Critical patent/CN106598556B/en
Publication of CN106598556A publication Critical patent/CN106598556A/en
Application granted granted Critical
Publication of CN106598556B publication Critical patent/CN106598556B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Stored Programmes (AREA)

Abstract

The invention provides a user interface generation method and device. The method comprises the following steps: acquiring a logic code for describing a user interface service function, and acquiring a grammar rule corresponding to a programming language of the logic code according to a prestored code analysis library; analyzing the logic code by applying the grammar rule, and determining a control identification, control data and service data of a control used for executing the service function; generating a control corresponding to the control identification and the control data by adopting a preset control set corresponding to the programming language; and associating the service data with the control to generate a user interface corresponding to the service function. By the user interface generation method and device, programming development links of the user interface are reduced, and development efficiency is improved.

Description

User interface generation method and device
Technical Field
The invention relates to the technical field of computers, in particular to a user interface generation method and device.
Background
At present, each piece of client software is developed by using a corresponding language to develop a corresponding User Interface (UI, User Interface), and the existing Interface generation process is described by taking a java language development User Interface as an example: firstly, writing UI codes of a user interface by using java language according to a configuration file, then writing logic relations among all UI controls, further writing logic codes for describing UI service functions according to the logic relations, and generating the user interface.
In the current development mode, for different programming environments, developers need to completely write codes of all the steps by using a programming language corresponding to the programming environment so as to generate a user interface. However, for various service contents which are increasing day by day, the user interface development requirements under different programming environments are getting bigger and bigger, so that the development period of the current development mode is long, and the development efficiency is reduced.
Disclosure of Invention
The present invention is directed to solving, at least to some extent, one of the technical problems in the related art.
Therefore, a first objective of the present invention is to provide a user interface generation method, which reduces the programming development link of the user interface and improves the development efficiency.
A second object of the present invention is to provide a user interface generating apparatus.
In order to achieve the above object, a user interface generating method according to an embodiment of the first aspect of the present invention includes: acquiring a logic code for describing a user interface service function, and acquiring a grammar rule corresponding to a programming language of the logic code according to a prestored code analysis library; analyzing the logic code by applying the grammar rule, and determining a control identification, control data and service data of a control used for executing the service function; generating a control corresponding to the control identification and the control data by adopting a preset control set corresponding to the programming language; and associating the service data with the control to generate a user interface corresponding to the service function.
The user interface generation method of the embodiment of the invention comprises the steps of firstly obtaining a logic code for describing the service function of the user interface, and obtaining a grammar rule corresponding to a programming language of the logic code according to a prestored code analysis library; then, the logic code is analyzed by applying the grammar rule, and a control identification, control data and service data of a control used for executing the service function are determined; then, a preset control set corresponding to the programming language is adopted to generate a control corresponding to the control identification and the control data; and finally, associating the service data with the control to generate a user interface corresponding to the service function. Therefore, programming development links of the user interface are reduced, and development efficiency is improved.
In order to achieve the above object, a user interface generating apparatus according to an embodiment of a second aspect of the present invention includes: the system comprises an acquisition module, a storage module and a processing module, wherein the acquisition module is used for acquiring a logic code for describing the service function of a user interface and acquiring a grammar rule corresponding to a programming language of the logic code according to a prestored code analysis library; the parsing module is used for parsing the logic code by applying the grammar rule and determining a control identification, control data and service data of a control used for executing the service function; the generating module is used for generating a control corresponding to the control identification and the control data by adopting a preset control set corresponding to the programming language; and the association module is used for associating the service data with the control to generate a user interface corresponding to the service function.
The user interface generation device of the embodiment of the invention obtains the logic code for describing the service function of the user interface through the obtaining module, and obtains the grammar rule corresponding to the programming language of the logic code according to the prestored code analysis library; analyzing the logic code by applying the grammar rule through an analysis module, and determining a control identification, control data and service data of a control used for executing the service function; generating a control corresponding to the control identification and the control data by adopting a preset control set corresponding to the programming language through a generation module; and associating the business data with the control through an association module to generate a user interface corresponding to the business function. Therefore, programming development links of the user interface are reduced, and development efficiency is improved.
Additional aspects and advantages of the invention will be set forth in part in the description which follows and, in part, will be obvious from the description, or may be learned by practice of the invention.
Drawings
The above and/or additional aspects and advantages of the present invention will become apparent and readily appreciated from the following description of the embodiments, taken in conjunction with the accompanying drawings of which,
FIG. 1 is a flow diagram of a user interface generation method of one embodiment of the present invention;
FIG. 2 is a flow chart of a user interface generation method of another embodiment of the present invention;
FIG. 3 is a flow chart of a user interface generation method of another embodiment of the present invention;
FIG. 4 is a block diagram of the structure of a user interface generating apparatus according to an embodiment of the present invention;
FIG. 5 is a block diagram showing the structure of a user interface generating apparatus according to another embodiment of the present invention;
fig. 6 is a block diagram showing the structure of a user interface generating apparatus according to another embodiment of the present invention.
Detailed Description
Reference will now be made in detail to embodiments of the present invention, examples of which are illustrated in the accompanying drawings, wherein like or similar reference numerals refer to the same or similar elements or elements having the same or similar function throughout. The embodiments described below with reference to the accompanying drawings are illustrative only for the purpose of explaining the present invention, and are not to be construed as limiting the present invention. On the contrary, the embodiments of the invention include all changes, modifications and equivalents coming within the spirit and terms of the claims appended hereto.
In the description of the present invention, it is to be understood that the terms "first," "second," and the like are used for descriptive purposes only and are not to be construed as indicating or implying relative importance. In the description of the present invention, it is to be noted that, unless otherwise explicitly specified or limited, the terms "connected" and "connected" are to be interpreted broadly, e.g., as being fixed or detachable or integrally connected; can be mechanically or electrically connected; may be directly connected or indirectly connected through an intermediate. The specific meanings of the above terms in the present invention can be understood in specific cases to those skilled in the art. In addition, in the description of the present invention, "a plurality" means two or more unless otherwise specified.
Any process or method descriptions in flow charts or otherwise described herein may be understood as representing modules, segments, or portions of code which include one or more executable instructions for implementing specific logical functions or steps of the process, and alternate implementations are included within the scope of the preferred embodiment of the present invention in which functions may be executed out of order from that shown or discussed, including substantially concurrently or in reverse order, depending on the functionality involved, as would be understood by those reasonably skilled in the art of the present invention.
A user interface generation method and apparatus according to an embodiment of the present invention are described below with reference to the accompanying drawings.
FIG. 1 is a flow chart of a user interface generation method of one embodiment of the present invention.
As shown in fig. 1, the user interface generating method includes:
step 101, obtaining a logic code for describing a user interface service function, and obtaining a grammar rule corresponding to a programming language of the logic code according to a pre-stored code analysis library.
The user interface generation method provided by the embodiment of the invention is configured in the user interface generation device, wherein the user interface generation device can be integrally deployed in the terminal equipment with the programming software development environment or can be deployed independently, or the user interface generation device can be deployed independently and establishes connection with the terminal equipment with the programming software development environment for data interaction. Wherein, the programming software development environment comprises: java language development environment, C # language development environment, C language development environment, and the like. And a developer pre-develops logic codes for describing the service functions of the user interface by applying a corresponding programming language through the software development environment.
The user interface generating device is stored with a code analysis library in advance, wherein the code analysis library comprises: and the grammar rules of one or more programming languages can be selected according to application requirements, and the grammar rules of the programming languages needing to be stored can be selected. Each programming language has its own programming statement and database, and program development, i.e. programming, is performed according to preset rules, and grammar rules corresponding to the programming languages are used for analyzing the programming languages and identifying codes developed by the programming languages.
Therefore, after the logic code for describing the service function of the user interface is obtained, the grammar rule corresponding to the programming language of the logic code is obtained according to the pre-stored code analysis library. It should be noted that the logic code may be acquired through an interface with the terminal device, or may be directly input by the user.
And 102, analyzing the logic code by applying the grammar rule, and determining a control identification, control data and service data of a control used for executing the service function.
In particular, since the writing rules and ways of different programming languages are different, for example: the Java programming language adopts a logic code written by a reflection mechanism, the xml language adopts a logic code written by a tree structure nested regression mechanism, and the like, so the process of analyzing the logic code by applying the grammar rule corresponding to the logic code is different because the grammar rule contents corresponding to different programming languages are different. And after the logic code is analyzed by applying a grammar rule, determining a control identification, control data and service data of a control used for executing the service function.
Wherein the control identification is used to represent the specific control used, such as: buttons (Button), textboxes (TextBox), lists (ListBox), drop-down boxes (combo), and the like; the control data is used to represent control content, such as: the control data of the drop-down box (combo) is: sex: male-0, female-1; such as: the control data for the TextBox (TextBox) is: real-time input information of a user; the business data is used to represent the functional implementation of the control, such as: after clicking a Button (Button), the user acquires options from a drop-down box (combo); after the user inputs information in the text box (TextBox), a result corresponding to the input information is displayed from the list (ListBox).
And 103, generating a control corresponding to the control identification and the control data by adopting a preset control set corresponding to the programming language.
The user interface generating device is pre-stored with control sets corresponding to one or more programming languages, and the control sets of the programming languages required to be stored can be selected according to application requirements. Because each programming language has its own programming rule, the corresponding control set is matched with the programming rule of the programming language, so that the corresponding control set can be adopted to generate the related control used for executing the service function of the user interface in the preset original user interface corresponding to the programming language according to the acquired control identification and control data. Therefore, compared with the prior art, the link of compiling the UI codes of the user interface according to the configuration file is developed without the development requirements of developers in different development environments and different user interfaces.
It should be noted that, because the development environments supported by different programming languages are different, for example: the C # language supports a dragging toolbox, and the java language supports script operation, so that the content of a control set corresponding to a programming language is different, and the process of generating related controls is also different, which is exemplified in a script manner as follows:
if the control set comprises: and the drawing script program and the filling script program corresponding to the control identification generate a control model by calling the drawing script program corresponding to the control identification, and then the filling script program corresponding to the control identification is called to write the control data into the control model.
And 104, associating the service data with the control to generate a user interface corresponding to the service function.
Specifically, the acquired service data corresponding to the control is associated with the generated control, so as to generate a user interface corresponding to the logic code describing the service function of the user interface. And associating the service data with the control to support the operation of the user on each control on the user interface and realize the service function of the user interface. Therefore, compared with the prior art, developers do not need to develop the logic relationship links among the UI controls in different development environments and according to different user interface development requirements, and the development efficiency is further improved.
The business data and the control are associated in many ways, and may be selected according to a specific programming language, for example, as follows:
and associating the service data with the control through a function, so that according to the operation instruction, the control calls the corresponding service data to execute a service function through the function related to the operation instruction.
Or,
and writing the service data into the event inside the control in a script mode, thereby reading the script in the event inside the control according to the operation instruction and executing the service data in a script running mode.
The user interface generating method of the embodiment includes the steps of firstly, obtaining a logic code for describing a user interface service function, and obtaining a grammar rule corresponding to a programming language of the logic code according to a prestored code analysis library; then, the logic code is analyzed by applying the grammar rule, and a control identification, control data and service data of a control used for executing the service function are determined; then, a preset control set corresponding to the programming language is adopted to generate a control corresponding to the control identification and the control data; and finally, associating the service data with the control to generate a user interface corresponding to the service function. Therefore, programming development links of the user interface are reduced, and development efficiency is improved.
Because the syntax rules corresponding to different programming languages have different contents, the process of parsing the logic code by applying the syntax rules corresponding to the logic code is also different, and in order to describe the parsing process more clearly, the syntax rules in this embodiment include: semantic keywords, control identification groups, and interface function groups, the grammar rules support function calls, scripting programming languages, such as: C. c #, java, aiming at different semantic keywords of different languages, the specific analysis process is as follows:
figure 2 is a flow chart of a user interface generation method of another embodiment of the present invention,
as shown in fig. 2, the grammar rule in the present embodiment includes: the specific implementation process of step 102 shown in fig. 1 includes the following steps:
step 201, matching the logic code by applying the semantic keyword to obtain a code segment corresponding to the semantic keyword.
Specifically, semantic keywords corresponding to a programming language are stored in advance, such as: judging semantic keywords, nesting cyclic semantic keywords, calling function semantic keywords, defining character semantic keywords and the like, and obtaining code segments corresponding to the semantic keywords by applying logic codes obtained by matching the semantic keywords.
Step 202, determining whether the code segment contains a control identifier according to the control identifier group, and if so, acquiring an interface function corresponding to the control identifier from the code segment.
And if the control identifications in the control identification group are found from the code segments matched with the semantic keywords, recording the control identifications and the interface functions corresponding to the control identifications.
Step 203, querying the interface function group to determine the data type and the interface function corresponding to the interface function.
And 204, acquiring control data corresponding to the data type, control data corresponding to the interface function and service data from the code segment.
The set of pre-stored interface functions includes: and inquiring the interface function group according to the interface function corresponding to the control identification to acquire the corresponding data type and interface function, and then acquiring control data corresponding to the data type, control data corresponding to the interface function and business data corresponding to the interface function from the code segment. The data types include: a function call type, a definition type, or an input type. The function calling type specification determines control data after processing input data through a calling function, the definition type specification control data is information which is input in real time by a user and passes through a definition function in advance.
According to the user interface generation method, firstly, the semantic keywords are matched with the logic codes, code segments corresponding to the semantic keywords are obtained, then whether control identifications are contained in the code segments or not is determined according to the control identification group, if yes, interface functions corresponding to the control identifications are obtained from the code segments, then the interface function groups are inquired to determine data types and interface functions corresponding to the interface functions, control data corresponding to the data types and control data and service data corresponding to the interface functions are obtained from the code segments. Therefore, programming development links of the user interface are reduced, and development efficiency is improved.
Fig. 3 is a flowchart of a user interface generation method of another embodiment of the present invention.
As shown in fig. 3, based on the above embodiment, after step 103, the following steps may be further included:
step 301, obtaining configuration parameters set by a user.
Step 302, setting the layout of the control on the user interface according to the configuration parameters.
Specifically, preset configuration parameters are provided for a user, and the configuration parameters comprise at least one of the following: the position information of the control, the style information of the control, and the page effect information, where the position information of the control is used to set a deployment position of a relevant control for executing a business function on a user interface, such as: the deployment positions of the A, B, C, D four controls on the user interface are laid out according to the position information of the controls; the style information of the control is used for setting the visual effect of the relevant control for executing the business function on the user interface, such as; the control A is in a gray style, and the control B is in a transparent style; the page effect information is used for setting the visual effect of the user interface, so that the related control is modified according to the page effect information, for example; the festival page effect, adding fancy to the background of the user interface, and uniformly arranging the deployment style of the related controls and the interface style.
Step 303, compiling an executable file corresponding to the user interface;
step 304, sending the executable file according to a request message sent by a preset target interface, so as to display the user interface by running the executable file.
Specifically, in order for a user to run on a terminal device used and use a user interface, an executable file corresponding to the user interface is compiled. And when receiving a request message sent by a user according to a preset target interface, sending the executable file, displaying the user interface by running the executable file, and realizing a service function corresponding to the logic code by operating a related control on the user interface by the user.
In the user interface generation method of this embodiment, the configuration parameters set by the user are acquired, the layout of the control on the user interface is set according to the configuration parameters, the executable file corresponding to the user interface is compiled, and the executable file is run to display the user interface according to the request message sent by the preset target interface. Therefore, based on the embodiment, the development flexibility and the development efficiency are further improved.
In order to implement the above embodiments, an embodiment of the present invention further provides a user interface generating apparatus.
Fig. 4 is a block diagram of a structure of a user interface generating apparatus according to an embodiment of the present invention.
As shown in fig. 4, the user interface generating means includes:
the acquisition module 11 is configured to acquire a logic code for describing a user interface service function, and acquire a grammar rule corresponding to a programming language of the logic code according to a pre-stored code analysis library;
the analysis module 12 is configured to apply the syntax rule to analyze the logic code, and determine a control identifier, control data, and service data of a control used for executing the service function;
the generating module 13 is configured to generate a control corresponding to the control identifier and the control data by using a preset control set corresponding to the programming language;
and the association module 14 is configured to associate the service data with the control, and generate a user interface corresponding to the service function.
Specifically, in one embodiment, the set of controls includes: drawing script programs and filling script programs corresponding to the control identifications; the generating module 13 is specifically configured to:
calling a drawing script program corresponding to the control identification to generate a control model;
and calling a filling script program corresponding to the control identification, and writing the control data into the control model.
Specifically, in an embodiment, the association module 14 is specifically configured to:
associating the business data with the control through a function so that the control executes the business data in a function calling mode;
specifically, in an embodiment, the association module 14 is specifically configured to:
and writing the service data into an event inside the control in a script mode so that the control executes the service data in a script running mode.
It should be noted that the foregoing explanation on the embodiment of the user interface generation method is also applicable to the user interface generation apparatus of this embodiment, and details are not described here.
The user interface generating device of the embodiment of the invention firstly obtains a logic code for describing the service function of the user interface, and obtains a grammar rule corresponding to a programming language of the logic code according to a prestored code analysis library; then, the logic code is analyzed by applying the grammar rule, and a control identification, control data and service data of a control used for executing the service function are determined; then, a preset control set corresponding to the programming language is adopted to generate a control corresponding to the control identification and the control data; and finally, associating the service data with the control to generate a user interface corresponding to the service function. Therefore, programming development links of the user interface are reduced, and development efficiency is improved.
Fig. 5 is a block diagram showing the structure of a user interface generating apparatus according to another embodiment of the present invention.
The grammar rule in this embodiment includes: semantic keywords, a control identification group and an interface function group; as shown in fig. 5, based on fig. 4, the parsing module 12 includes;
a first obtaining unit 121, configured to apply the semantic keyword to match the logic code, and obtain a code segment corresponding to the semantic keyword;
a second obtaining unit 122, configured to determine whether the code segment includes a control identifier according to the control identifier group, and if so, obtain an interface function corresponding to the control identifier from the code segment;
the query unit 123 is configured to query the interface function set to determine a data type and an interface function corresponding to the interface function;
a third obtaining unit 124, configured to obtain, from the code segment, control data corresponding to the data type, and control data and service data corresponding to the interface function.
Wherein the data types include:
a function call type, a definition type, or an input type.
It should be noted that the foregoing explanation on the embodiment of the user interface generation method is also applicable to the user interface generation apparatus of this embodiment, and details are not described here.
According to the user interface generation device, firstly, the semantic keywords are matched with the logic codes, code segments corresponding to the semantic keywords are obtained, whether control identifications are contained in the code segments or not is determined according to the control identification group, if yes, interface functions corresponding to the control identifications are obtained from the code segments, then the interface function group is inquired to determine data types and interface functions corresponding to the interface functions, control data corresponding to the data types and control data and service data corresponding to the interface functions are obtained from the code segments. Therefore, programming development links of the user interface are reduced, and development efficiency is improved.
Fig. 6 is a block diagram showing the structure of a user interface generating apparatus according to another embodiment of the present invention.
Based on the above embodiment, taking fig. 4 as an example, as shown in fig. 6, further includes;
the setting module 15 is used for acquiring configuration parameters set by a user; and setting the layout of the control on the user interface according to the configuration parameters.
Wherein the configuration parameters include at least one of:
position information of the control, style information of the control and page effect information.
Further, in another embodiment, the method further comprises:
a compiling module 16, configured to compile an executable file corresponding to the user interface;
and the processing module 17 is configured to run the executable file to display the user interface according to a request message sent by a preset target interface.
It should be noted that the foregoing explanation on the embodiment of the user interface generation method is also applicable to the user interface generation apparatus of this embodiment, and details are not described here.
The user interface generating device of the embodiment of the invention compiles the executable file corresponding to the user interface by acquiring the configuration parameters set by the user, then setting the layout of the control on the user interface according to the configuration parameters, and runs the executable file to display the user interface according to the request message sent by the preset target interface. Therefore, based on the embodiment, the development flexibility and the development efficiency are further improved.
It should be understood that portions of the present invention may be implemented in hardware, software, firmware, or a combination thereof. In the above embodiments, the various steps or methods may be implemented in software or firmware stored in memory and executed by a suitable instruction execution system. For example, if implemented in hardware, as in another embodiment, any one or combination of the following techniques, which are known in the art, may be used: a discrete logic circuit having a logic gate circuit for implementing a logic function on a data signal, an application specific integrated circuit having an appropriate combinational logic gate circuit, a Programmable Gate Array (PGA), a Field Programmable Gate Array (FPGA), or the like.
In the description herein, references to the description of the term "one embodiment," "some embodiments," "an example," "a specific example," or "some examples," etc., mean that a particular feature, structure, material, or characteristic described in connection with the embodiment or example is included in at least one embodiment or example of the invention. In this specification, the schematic representations of the terms used above do not necessarily refer to the same embodiment or example. Furthermore, the particular features, structures, materials, or characteristics described may be combined in any suitable manner in any one or more embodiments or examples.
While embodiments of the invention have been shown and described, it will be understood by those of ordinary skill in the art that: various changes, modifications, substitutions and alterations can be made to the embodiments without departing from the principles and spirit of the invention, the scope of which is defined by the claims and their equivalents.

Claims (16)

1. A method for generating a user interface, comprising:
acquiring a logic code for describing a user interface service function, and acquiring a grammar rule corresponding to a programming language of the logic code according to a prestored code analysis library;
analyzing the logic code by applying the grammar rule, and determining a control identification, control data and service data of a control used for executing the service function;
generating a control corresponding to the control identification and the control data by adopting a preset control set corresponding to the programming language;
and associating the service data with the control to generate a user interface corresponding to the service function.
2. The user interface generation method of claim 1, wherein the grammar rule includes: semantic keywords, a control identification group and an interface function group;
the logic code is analyzed by applying the grammar rule, and a control identification, control data and service data of a control used for executing the service function are determined;
matching the logic codes by applying the semantic keywords to acquire code segments corresponding to the semantic keywords;
determining whether the code segment contains a control identification or not according to the control identification group, and if so, acquiring an interface function corresponding to the control identification from the code segment;
inquiring the interface function group to determine the data type and the interface function corresponding to the interface function;
and acquiring control data corresponding to the data type, control data corresponding to the interface function and service data from the code segment.
3. The user interface generation method of claim 2, wherein the data types include:
a function call type, a definition type, or an input type.
4. The user interface generation method of claim 1, wherein the set of controls comprises: drawing script programs and filling script programs corresponding to the control identifications;
the generating the control corresponding to the control identification and the control data includes:
calling a drawing script program corresponding to the control identification to generate a control model;
and calling a filling script program corresponding to the control identification, and writing the control data into the control model.
5. The method of generating a user interface of claim 1, wherein said associating the business data with the control comprises:
associating the business data with the control through a function so that the control executes the business data in a function calling mode;
or,
and writing the service data into an event inside the control in a script mode so that the control executes the service data in a script running mode.
6. The user interface generation method of claim 1, further comprising:
acquiring configuration parameters set by a user;
and setting the layout of the control on the user interface according to the configuration parameters.
7. The user interface generation method of claim 6, wherein the configuration parameters include at least one of:
position information of the control, style information of the control and page effect information.
8. The method for generating a user interface according to any one of claims 1 to 7, wherein after generating the user interface corresponding to the service function, the method further comprises:
compiling an executable file corresponding to the user interface;
and running the executable file to display the user interface according to a request message sent by a preset target interface.
9. A user interface generating apparatus, comprising:
the system comprises an acquisition module, a storage module and a processing module, wherein the acquisition module is used for acquiring a logic code for describing the service function of a user interface and acquiring a grammar rule corresponding to a programming language of the logic code according to a prestored code analysis library;
the parsing module is used for parsing the logic code by applying the grammar rule and determining a control identification, control data and service data of a control used for executing the service function;
the generating module is used for generating a control corresponding to the control identification and the control data by adopting a preset control set corresponding to the programming language;
and the association module is used for associating the service data with the control to generate a user interface corresponding to the service function.
10. The user interface generating apparatus of claim 9, wherein the grammar rule includes: semantic keywords, a control identification group and an interface function group; the analysis module comprises;
the first acquisition unit is used for matching the logic codes by applying the semantic keywords and acquiring code segments corresponding to the semantic keywords;
a second obtaining unit, configured to determine whether the code segment includes a control identifier according to the control identifier group, and if so, obtain an interface function corresponding to the control identifier from the code segment;
the query unit is used for querying the interface function group to determine the data type and the interface function corresponding to the interface function;
and the third acquisition unit is used for acquiring control data corresponding to the data type, control data corresponding to the interface function and service data from the code segment.
11. The user interface generating apparatus of claim 10, wherein the data types include:
a function call type, a definition type, or an input type.
12. The user interface generating apparatus of claim 9, wherein the set of controls comprises: drawing script programs and filling script programs corresponding to the control identifications; the generation module is specifically configured to:
calling a drawing script program corresponding to the control identification to generate a control model;
and calling a filling script program corresponding to the control identification, and writing the control data into the control model.
13. The user interface generating apparatus of claim 9, wherein the association module is specifically configured to:
associating the business data with the control through a function so that the control executes the business data in a function calling mode;
or,
and writing the service data into an event inside the control in a script mode so that the control executes the service data in a script running mode.
14. The user interface generating apparatus of claim 9, further comprising:
and the setting module is used for acquiring configuration parameters set by a user and setting the layout of the control on the user interface according to the configuration parameters.
15. The user interface generating apparatus of claim 14, wherein the configuration parameters include at least one of:
position information of the control, style information of the control and page effect information.
16. The user interface generating apparatus according to any one of claims 9 to 15, further comprising:
the compiling module is used for compiling the executable file corresponding to the user interface;
and the processing module is used for operating the executable file to display the user interface according to a request message sent by a preset target interface.
CN201510670900.1A 2015-10-15 2015-10-15 User interface generation method and device Active CN106598556B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510670900.1A CN106598556B (en) 2015-10-15 2015-10-15 User interface generation method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510670900.1A CN106598556B (en) 2015-10-15 2015-10-15 User interface generation method and device

Publications (2)

Publication Number Publication Date
CN106598556A CN106598556A (en) 2017-04-26
CN106598556B true CN106598556B (en) 2020-08-25

Family

ID=58553575

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510670900.1A Active CN106598556B (en) 2015-10-15 2015-10-15 User interface generation method and device

Country Status (1)

Country Link
CN (1) CN106598556B (en)

Families Citing this family (30)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108874412A (en) * 2017-05-16 2018-11-23 北京海鲸科技有限公司 For updating the method, apparatus, equipment and system of interface layout
CN109002338A (en) * 2017-06-07 2018-12-14 阿里巴巴集团控股有限公司 Page rendering, page finishing information processing method and device
CN108287721A (en) * 2017-08-17 2018-07-17 北京微应软件科技有限公司 A kind of method for controlling mobile terminal and device
CN107562459B (en) * 2017-08-29 2020-11-10 上海雪鲤鱼计算机科技有限公司 Management system, interface generating/displaying/operating method, medium, and terminal
CN108241501A (en) * 2018-01-26 2018-07-03 长春玖佰软件技术有限公司 A kind of mobile client software is realized and update method
CN108459846B (en) * 2018-03-14 2022-03-04 广东洪睿信息科技有限公司 Software cloud customization method and platform
CN108614693B (en) * 2018-03-21 2022-06-24 创新先进技术有限公司 Processing method, device and equipment for page component
CN109062571B (en) * 2018-06-12 2022-08-16 广州视源电子科技股份有限公司 Method and apparatus for dynamic configuration of user interface
CN108920148A (en) * 2018-06-20 2018-11-30 武汉斗鱼网络科技有限公司 Dynamic adjusting method, readable storage medium storing program for executing and the equipment of user interface
CN110688119A (en) * 2018-07-04 2020-01-14 阿里巴巴集团控股有限公司 Method for generating and realizing service function and unit, server, equipment and medium
CN109040822B (en) * 2018-07-16 2021-06-22 北京奇艺世纪科技有限公司 Player configuration method and device and storage medium
CN110837367B (en) * 2018-08-16 2022-05-27 阿里巴巴集团控股有限公司 User interface processing method and device and electronic equipment
CN109117182B (en) * 2018-08-29 2022-03-08 赛尔网络有限公司 Detection method, equipment, system and medium for supporting IPv6 degree based on source code
CN111414215A (en) * 2019-01-07 2020-07-14 比亚迪股份有限公司 Human-computer interface generation method and device and storage medium
CN109814860A (en) * 2019-01-18 2019-05-28 宜创(北京)科技有限公司 Generate method and device, the storage medium at interface
CN109933323A (en) * 2019-03-15 2019-06-25 山东云缦智能科技有限公司 A kind of method and device that user interface is set
CN110162457A (en) * 2019-04-12 2019-08-23 深圳壹账通智能科技有限公司 Test method, device, equipment and the storage medium of user interface
CN111857679B (en) * 2019-04-29 2024-03-15 西门子(中国)有限公司 Method and device for generating script program and script program processing system
CN112241504A (en) * 2019-07-16 2021-01-19 腾讯科技(深圳)有限公司 Timing method and timing device
CN110673494A (en) * 2019-09-19 2020-01-10 北京金茂绿建科技有限公司 Control page generation method, device, terminal and storage medium
CN111459483B (en) * 2020-03-27 2024-03-22 网易(杭州)网络有限公司 Interface processing method and device
CN113296767B (en) * 2020-04-07 2024-07-02 阿里巴巴集团控股有限公司 UI component generation method and device and user interface processing method and device
CN111427577A (en) * 2020-04-27 2020-07-17 北京每日优鲜电子商务有限公司 Code processing method and device and server
CN111752562A (en) * 2020-05-18 2020-10-09 深圳市东微智能科技股份有限公司 Cross-platform client interface development method, device, terminal equipment and medium
CN112083924A (en) * 2020-08-28 2020-12-15 杭州数云信息技术有限公司 Software design interface consistency improving method and tool
CN112181410A (en) * 2020-09-11 2021-01-05 北京三快在线科技有限公司 View layer code generation method and device, electronic equipment and storage medium
CN112494940B (en) * 2020-12-15 2024-05-14 网易(杭州)网络有限公司 User interface manufacturing method and device, storage medium and computer equipment
CN112860247B (en) * 2021-02-09 2023-11-28 恒安嘉新(北京)科技股份公司 Custom generation method, device, equipment and medium of model component
CN114911535B (en) * 2022-04-22 2023-12-19 青岛海尔科技有限公司 Application program component configuration method, storage medium and electronic device
CN114845173B (en) * 2022-05-30 2023-08-22 杭州国芯科技股份有限公司 Main menu generation method of set top box

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101202665A (en) * 2007-12-06 2008-06-18 中兴通讯股份有限公司 Method for generating graphical user interface
CN101699393A (en) * 2009-10-09 2010-04-28 中国电子科技集团公司第二十八研究所 Intelligent software interface dynamic generation method facing network
US20110225567A1 (en) * 2010-03-12 2011-09-15 Yonathan Livny Identification of user interface controls
CN102375738A (en) * 2010-08-25 2012-03-14 中兴通讯股份有限公司 Device and method for managing data of mobile terminal
CN102567066A (en) * 2010-12-22 2012-07-11 北大方正集团有限公司 Business system development method, business system development platform and business system development system
CN104461513A (en) * 2014-11-21 2015-03-25 山东航天信息有限公司 Method and device for generating form interface

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101202665A (en) * 2007-12-06 2008-06-18 中兴通讯股份有限公司 Method for generating graphical user interface
CN101699393A (en) * 2009-10-09 2010-04-28 中国电子科技集团公司第二十八研究所 Intelligent software interface dynamic generation method facing network
US20110225567A1 (en) * 2010-03-12 2011-09-15 Yonathan Livny Identification of user interface controls
CN102375738A (en) * 2010-08-25 2012-03-14 中兴通讯股份有限公司 Device and method for managing data of mobile terminal
CN102567066A (en) * 2010-12-22 2012-07-11 北大方正集团有限公司 Business system development method, business system development platform and business system development system
CN104461513A (en) * 2014-11-21 2015-03-25 山东航天信息有限公司 Method and device for generating form interface

Also Published As

Publication number Publication date
CN106598556A (en) 2017-04-26

Similar Documents

Publication Publication Date Title
CN106598556B (en) User interface generation method and device
US11200143B2 (en) Software development framework for a cloud computing platform
US11151018B2 (en) Method and apparatus for testing a code file
Canfora et al. Achievements and challenges in software reverse engineering
CN111949170B (en) Method and device for configuring task flow and electronic equipment
US10684839B2 (en) Plugin for software deployment
WO2016196701A1 (en) Natural language engine for coding and debugging
JP7218793B2 (en) Control flow system, non-transitory readable medium, and method for enhancing program functionality
US20160321055A1 (en) Mapping between local and remote for seamless build and design time experience
CN108984171B (en) Continuous scene construction method based on Unity3D and storage medium
US8051408B1 (en) Method of providing interactive usage descriptions based on source code analysis
CN110673837B (en) Code repairing method and device, electronic equipment and computer readable storage medium
CN115639980A (en) Draggable front-end logic arrangement method and device for low-code platform
CN109408354B (en) Data processing method and device for application component
CN113377431A (en) Code processing method, device, equipment and medium
CN110362317B (en) Code conversion method, device and storage medium
CN109213502B (en) Application updating method and device
US12014158B2 (en) System and method for developing user interface applications
CN117215661A (en) Event processing method, device and storage medium
CN110674024A (en) Electronic equipment integration test system and method thereof
Kolomvatsos et al. Debugging applications created by a domain specific language: The IPAC case
CN108369499B (en) Code virtualization system and method
CN115098158A (en) SDK packaging method and device, computer equipment and storage medium
Troost et al. Visualizing Dynamic Data-Flow Analysis of Object-Oriented Programs Based on the Language Server Protocol.
US20210263715A1 (en) Support device and non-transient computer-readable recording medium recording support program

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant