CN110442342A - Interface creating method, device, storage medium and computer equipment - Google Patents
Interface creating method, device, storage medium and computer equipment Download PDFInfo
- Publication number
- CN110442342A CN110442342A CN201910675054.0A CN201910675054A CN110442342A CN 110442342 A CN110442342 A CN 110442342A CN 201910675054 A CN201910675054 A CN 201910675054A CN 110442342 A CN110442342 A CN 110442342A
- Authority
- CN
- China
- Prior art keywords
- interface
- target
- boundary element
- configuration file
- interface control
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/30—Creation or generation of source code
- G06F8/38—Creation or generation of source code for implementing user interfaces
Landscapes
- Engineering & Computer Science (AREA)
- Software Systems (AREA)
- General Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Human Computer Interaction (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- User Interface Of Digital Computer (AREA)
Abstract
The present invention proposes that a kind of interface creating method, device, storage medium and computer equipment, this method include determining at least one boundary element required for generating target interface, and determine at least one interface control required for boundary element;The model data according to required for generating target interface carries out target configuration to boundary element and interface control, obtains with postponing boundary element and with postponing interface control;Load obtains target interface unit, target interface unit is for generating target interface with interface control is postponed in boundary element upon configuration.Program code reusability can be effectively promoted through the invention, reduces subsequent modification complexity, promote development efficiency.
Description
Technical field
The present invention relates to field of computer technology more particularly to a kind of interface creating method, device, storage medium and calculating
Machine equipment.
Background technique
During interface development, when the boundary element type for needing to generate is excessive, the program code of controller side can
The phenomenon that too fat to move and redundancy can be will appear.
In the related technology, in order to avoid too fat to move and redundancy, general solution is to write individual class, using between class after
The mode held carries out the exploitation at interface.
Under this mode, unit degree of refinement is not high, is directed to the corresponding data of unit, needs to be associated with corresponding processing and patrols
Volume, cause program code reusability low, modification complexity is higher, influences development efficiency.
Summary of the invention
The present invention is directed to solve at least some of the technical problems in related technologies.
For this purpose, it is an object of the invention to propose a kind of interface creating method, device, storage medium and computer equipment,
Program code reusability can be effectively promoted, subsequent modification complexity is reduced, promotes development efficiency.
In order to achieve the above objectives, the interface creating method that first aspect present invention embodiment proposes, comprising: determine and generate mesh
It demarcates at least one boundary element required for face, and determines at least one interface control required for the boundary element;Root
Target configuration is carried out to the boundary element and the interface control according to model data required for the target interface is generated, is obtained
To with postponing boundary element and with postponing interface control;It described controls with postponing interface described with postponing to load in boundary element
Part obtains target interface unit, and the target interface unit is for generating the target interface.
The interface creating method that first aspect present invention embodiment proposes, by determining required for generating target interface extremely
A few boundary element, and determine at least one interface control required for boundary element, and according to needed for generating target interface
The model data wanted carries out target configuration to boundary element and interface control, obtains with postponing boundary element and with postponing interface control
Part, and load to match in boundary element upon configuration and postpone interface control, target interface unit is obtained, target interface unit is used for
Target interface is generated, due to being that dimension at interface divides target interface, and uses required for target interface
Therefore model data, direct configuration interface control, effectively mention so that the display data of interface control are mutually separated with processing logic
Lift sequence rate of code reuse reduces subsequent modification complexity, promotes development efficiency.
In order to achieve the above objectives, the interface generating means that second aspect of the present invention embodiment proposes, comprising: determining module,
For determining at least one boundary element required for generating target interface, and determine at least one required for the boundary element
A interface control;Configuration module, for the model data according to required for generating the target interface to the boundary element and
The interface control carries out target configuration, obtains with postponing boundary element and with postponing interface control;Generation module, in institute
It states to match to postpone to match described in load in boundary element and postpones interface control, obtain target interface unit, the target interface unit is used
In the generation target interface.
The interface generating means that second aspect of the present invention embodiment proposes, by determining required for generating target interface extremely
A few boundary element, and determine at least one interface control required for boundary element, and according to needed for generating target interface
The model data wanted carries out target configuration to boundary element and interface control, obtains with postponing boundary element and with postponing interface control
Part, and load to match in boundary element upon configuration and postpone interface control, target interface unit is obtained, target interface unit is used for
Target interface is generated, due to being that dimension at interface divides target interface, and uses required for target interface
Therefore model data, direct configuration interface control, effectively mention so that the display data of interface control are mutually separated with processing logic
Lift sequence rate of code reuse reduces subsequent modification complexity, promotes development efficiency.
In order to achieve the above objectives, the non-transitorycomputer readable storage medium that third aspect present invention embodiment proposes,
When the instruction in the storage medium is performed by the processor of computer equipment, so that computer equipment is able to carry out one kind
Interface creating method, which comprises the interface creating method that first aspect present invention embodiment proposes.
The non-transitorycomputer readable storage medium that third aspect present invention embodiment proposes generates target by determining
At least one boundary element required for interface, and determine at least one interface control required for boundary element, and according to life
Target configuration is carried out to boundary element and interface control at model data required for target interface, is obtained with postponing boundary element
Interface control is postponed with matching, and loads to match in boundary element upon configuration and postpones interface control, obtains target interface unit, mesh
Mark boundary element is for generating target interface, due to being that dimension at interface divides target interface, and uses mesh
It demarcates model data required for face, direct configuration interface control, so that the display data of interface control and processing logic phase point
From, it is therefore, effective to promote program code reusability, subsequent modification complexity is reduced, development efficiency is promoted.
In order to achieve the above objectives, the computer program product that fourth aspect present invention embodiment proposes, when the computer
When instruction in program product is executed by processor, a kind of interface creating method is executed, which comprises determine and generate target
At least one boundary element required for interface, and determine at least one interface control required for the boundary element;According to
It generates model data required for the target interface and target configuration is carried out to the boundary element and the interface control, obtain
With postponing boundary element and with postponing interface control;It is described with postpone loaded in boundary element it is described with postponing interface control,
Target interface unit is obtained, the target interface unit is for generating the target interface.
The computer program product that fourth aspect present invention embodiment proposes, by determining required for generating target interface
At least one boundary element, and determine at least one interface control required for boundary element, and according to generation target interface institute
The model data needed carries out target configuration to boundary element and interface control, obtains with postponing boundary element and with postponing interface
Control, and load to match in boundary element upon configuration and postpone interface control, target interface unit is obtained, target interface unit is used
In generating target interface, due to being that dimension at interface divides target interface, and uses required for target interface
Model data, direct configuration interface control so that the display data of interface control with processing logic mutually separate, therefore, effectively
Program code reusability is promoted, subsequent modification complexity is reduced, promotes development efficiency.
In order to achieve the above objectives, fifth aspect present invention embodiment also proposes a kind of computer equipment, the computer equipment
Including shell, processor, memory, circuit board and power circuit, wherein the circuit board is placed in the sky that the shell surrounds
Between it is internal, the processor and the memory are arranged on the circuit board;The power circuit, for being the computer
The each circuit or device of equipment are powered;The memory is for storing executable program code;The processor passes through reading
The executable program code stored in the memory runs program corresponding with the executable program code, for holding
Row: it determines at least one boundary element required for generating target interface, and determines at least one required for the boundary element
A interface control;The model data according to required for generating the target interface to the boundary element and the interface control into
The configuration of row target is obtained with postponing boundary element and with postponing interface control;Described with postponing in boundary element described in load
With interface control is postponed, target interface unit is obtained, the target interface unit is for generating the target interface.
The computer equipment that fifth aspect present invention embodiment proposes, by determining required for generating target interface at least
One boundary element, and determine at least one interface control required for boundary element, and according to required for generating target interface
Model data target configuration is carried out to boundary element and interface control, obtain with postponing boundary element and with postponing interface control
Part, and load to match in boundary element upon configuration and postpone interface control, target interface unit is obtained, target interface unit is used for
Target interface is generated, due to being that dimension at interface divides target interface, and uses required for target interface
Therefore model data, direct configuration interface control, effectively mention so that the display data of interface control are mutually separated with processing logic
Lift sequence rate of code reuse reduces subsequent modification complexity, promotes development efficiency.
The additional aspect of the present invention and advantage will be set forth in part in the description, and will partially become from the following description
Obviously, or practice through the invention is recognized.
Detailed description of the invention
Above-mentioned and/or additional aspect and advantage of the invention will become from the following description of the accompanying drawings of embodiments
Obviously and it is readily appreciated that, in which:
Fig. 1 is the flow diagram for the interface creating method that one embodiment of the invention proposes;
Fig. 2 is median surface of embodiment of the present invention cell schematics;
Fig. 3 is the flow diagram for the interface creating method that another embodiment of the present invention proposes;
Fig. 4 is the structural schematic diagram for the interface generating means that one embodiment of the invention proposes;
Fig. 5 is the structural schematic diagram for the interface generating means that another embodiment of the present invention proposes;
Fig. 6 is the structural schematic diagram for the computer equipment that one embodiment of the invention proposes.
Specific embodiment
The embodiment of the present invention is described below in detail, examples of the embodiments are shown in the accompanying drawings, wherein from beginning to end
Same or similar label indicates same or similar element or element with the same or similar functions.Below with reference to attached
The embodiment of figure description is exemplary, and for explaining only the invention, and is not considered as limiting the invention.On the contrary, this
The embodiment of invention includes all changes fallen within the scope of the spiritual and intension of attached claims, modification and is equal
Object.
Fig. 1 is the flow diagram for the interface creating method that one embodiment of the invention proposes.
The present embodiment is configured as illustrating in the generating means of interface with the interface creating method.
The present embodiment median surface generation method can be configured in the generating means of interface, and interface generating means can be set
In the server, or also can be set in a mobile device, the embodiment of the present invention to this with no restriction.
The present embodiment is by taking interface creating method is configured in a mobile device as an example.
The application program of exploitation class in the mobile device can be to the interface for generating needs.
Interface in the embodiment of the present invention is user interface, and user interface is on the indicator screen presented in front of the user
Graphic State.
Wherein, mobile device such as smart phone, tablet computer, personal digital assistant, e-book etc. has various operations
The hardware device of system.
Referring to Fig. 1, this method comprises:
S101: it determines at least one boundary element required for generating target interface, and determines required for boundary element
At least one interface control.
During the embodiment of the present invention is applied to actual development.
Wherein, the user interface (User Interface, UI) for currently needing to generate, can be referred to as target interface.
The embodiment of the present invention can in advance analyze exploitation demand during specific execute, and determination needs to give birth to
At user interface as target interface, then, can the displaying function to target interface analyze, target interface is divided
For the boundary element of at least one.
Wherein, boundary element is a sub-interface in target interface, and boundary element belongs to target interface, and multiple interfaces are single
Member splicing composition target interface, that is, it can be divided according to the actual functional requirement of target interface, be divided into not
Same boundary element, different boundary elements accept different displaying functions, for example, being that interface is single to target interface dividing elements
First A, boundary element B and boundary element C, wherein boundary element A shows that theme and keyword, boundary element B show label,
Boundary element C shows brief introduction, with no restriction to this.
It is understood that since different boundary elements accepts different displaying functions, different boundary elements
It can be developed and be realized by different or identical control combination.
Referring to fig. 2, Fig. 2 is median surface of embodiment of the present invention cell schematics, comprising: target interface 21, and to target
Interface 21 divides three obtained boundary element 22, for convenience for example, multiple boundary elements 22 can be referred to as
Cell1, cell2, cell3, also, according to the displaying function of different target interfaces, target interface can be divided into arbitrarily
The boundary element of number, as shown in Fig. 2, different boundary elements 22 can be realized by multiple controls, for example, boundary element
It may include picture control 23 and text control 24 in cell1, cell2 includes label control 25, with no restriction to this.
The embodiment of the present invention is analyzed, by target during actual development in the displaying function to target interface
After boundary element of the boundary division for one or more, then, each interface is determined according to technical documentation required for developing
One or more interface control required for unit.
The embodiment of the present invention is determining at least one interface required for generating target interface during specific execute
Unit can pre-generate boundary element library, and multiple candidate boundary elements, different candidate boundaries are stored in the boundary element library
Face unit accepts different displaying functions, also, since different candidate boundary elements accepts different displaying functions, each time
It selects boundary element that can also be associated with one or more candidate control, target interface is being divided into one or more as a result,
After a boundary element, matched candidate boundary element can be determined as life directly from multiple candidate boundary elements
At boundary element required for target interface, and using the matched candidate associated candidate control of boundary element as the interface needed
Control, with no restriction to this.
Wherein, it is combined for the ease of choosing different candidate unit interfaces to form target interface, boundary element library
Included in the size of each candidate boundary element can not set in advance, but by development process according to actual exploitation
Demand carries out dynamic configuration, realizes efficient multiplexing with this.
S102: the model data according to required for generating target interface carries out target to boundary element and interface control and matches
It sets, obtains with postponing boundary element and with postponing interface control.
It is understood that under the development frame of Model-View-Controller (model-view-controller), mould
Type data are normally contained in the side model M odel, and model data corresponding with target interface is generally used for configuring entire target
Interface, and it is then that Model corresponding with the control is coupled that single control, which accepts relevant data when showing function,.
Therefore, be in the embodiment of the present invention directly according to generate target interface required for model data, configuration interface list
Control in member and each boundary element of configuration, so that the control configured realizes corresponding displaying function.
During specific execute, referring to Fig. 3, the model data according to required for generating target interface is to boundary element
Target configuration is carried out with interface control, comprising:
S301: obtaining the first configuration file corresponding with model data, determines the second configuration text corresponding with boundary element
Part.
S302: the first configuration file is associated with the second configuration file.
S303: executing the first configuration file, calls the function interface in the second configuration file to boundary according to model data
Face unit and interface control carry out target configuration.
Wherein, model data can have corresponding configuration file (can be referred to as the first configuration file), actually open
During hair, model data can be used to configure entire target interface by executing first configuration file, with interface list
The associated configuration file (can be referred to as in the second configuration file) of member, then can when executing the first above-mentioned configuration file,
Directly read and call the function interface in the second configuration file with configuration interface unit and interface control.
Wherein, some script files when configuration file can be, for example, using model data configuration target interface, in reality
During border is developed, by executing corresponding script file to use model data to configure target interface.
Wherein, if target interface includes a boundary element, the second configuration file can be one, if target interface packet
Containing multiple boundary elements, then the second configuration file can be multiple, i.e. a boundary element has corresponding second configuration
File may include function interface in the second configuration file, pass through, the In associated with the second configuration file by the first configuration file
When executing the first configuration file, one or more corresponding second configuration file is called, calls the second configuration file to realize
Included in function interface realize configuration to the interface control in boundary element and boundary element, wherein to interface list
The configuration of member and the interface control in boundary element can be referred to as target configuration.
Optionally, in some embodiments, function interface includes first function interface, can execute the first configuration file, root
The first function interface in the second configuration file is called to be adjusted with the size to boundary element according to model data, wherein the
One function interface is preconfigured to be the size for adjusting boundary element.
In the embodiment of the present invention, as an example, it is assumed that the first configuration file is JYNode, using JYNode as model
Corresponding first configuration file of data, first configuration file call the second configuration file, JYNode for triggering when being executed
The description file that can be considered as between model data and boundary element, using the second configuration file JYCellNode conduct
The corresponding description file of single boundary element, JYNode and JYCellNode have it is one-to-one, alternatively, one-to-many association is closed
System.
In the embodiment of the present invention, the function interface of size setting can be added in the second configuration file JYCellNode in advance
(can be referred to as first function interface) is opened up in target interface by calling first function interface that each boundary element can be set
Size when showing calls associated second configuration during actual development application when by executing the first configuration file
File can be realized the efficient multiplexing for boundary element to realize that final target interface generates, and reduces a large amount of processing and patrols
Program code in terms of volume reduces loophole (bug) rate of program code while improving development efficiency.
Optionally, in some embodiments, function interface includes second function interface, the first configuration file is executed, according to mould
Target will be written so that target data to be written in interface control in second function interface in the second configuration file of type data call
The interface control of data is used as with interface control is postponed, and is used to show target data with interface control is postponed.
Wherein, in interface control required displaying data, target data can be referred to as, target data can be needs
Picture or text of displaying etc..
By executing the first configuration file, call the second function interface in the second configuration file with straight according to model data
It connects and target data is written in interface control, effectively simplify the step of interface generates, do not need to compile for each interface control
Independent processing logic is write, interface formation efficiency is promoted.
Alternatively, in other embodiments, by calling function interface can also be to the other arbitrary of boundary element
Feature is configured, for example, the background display color of set interface unit, alternatively, the background colour of set interface control, inverted image color
Deng the processing logic that correlated characteristic can will be arranged is written in corresponding function interface, with no restriction to this.
In the embodiment of the present invention, as an example, at Model-View-Controller (model-view-controller)
Development frame under, it is assumed that in boundary element only include a kind of UITableViewCell control (that is, interface control),
UITableViewCell control, can be in boundary element in the embodiment of the present invention for being shown in UITableView
The second configuration file in be written height () function, set () function, when executing the first configuration file JYNode, calling
The size of height () function setup boundary element, and call the display data of set () function setup interface control.
S103: load obtains target interface unit, target interface list with interface control is postponed in boundary element upon configuration
Member is for generating target interface.
Wherein, during actual development, interface control is loaded, and have adjusted the boundary element of size, can be claimed
For target interface unit, target interface unit is for generating target interface.
During specific execute, the processing logic write-in second that interface control is loaded in boundary element can be matched
It sets in file, and the processing logic for generating target interface is written in the first configuration file, as a result, by executing the first configuration text
Part is to generate target interface, when executing the first configuration file, while have read with incidence relation one or more
Second configuration file, and it is single to have invoked each interface of the function interface corresponding configuration in one or more the second configuration file
Interface control in member and boundary element.
Then, the processing logic generated according to the target interface being previously written in the first configuration file, to each target interface
Unit carries out split processing, to generate target interface.
It, can be in the boundary element after adjusting size after the size of above-mentioned adjustment boundary element in some embodiments
Middle load obtains target interface unit, by way of configuring, largely improves reusability, mention with interface control is postponed
It rises interface and generates effect.
In the present embodiment, by determining at least one boundary element required for generating target interface, and determine that interface is single
At least one interface control required for first, and the model data according to required for generating target interface is to boundary element and interface
Control carries out target configuration, obtains with postponing boundary element and with postponing interface control, and upon configuration in boundary element plus
It carries with interface control is postponed, obtains target interface unit, target interface unit is for generating target interface, due to being at interface
Dimension divides target interface, and uses model data required for target interface, and direct configuration interface control makes
The display data for obtaining interface control are mutually separated with processing logic, therefore, are effectively promoted program code reusability, are reduced subsequent repairs
Change complexity, promotes development efficiency.
Fig. 4 is the structural schematic diagram for the interface generating means that one embodiment of the invention proposes.
Referring to fig. 4, which includes:
Determining module 401 for determining at least one boundary element required for generating target interface, and determines that interface is single
At least one interface control required for first;
Configuration module 402, for the model data according to required for generating target interface to boundary element and interface control
Target configuration is carried out, is obtained with postponing boundary element and with postponing interface control;
Generation module 403 obtains target interface list with interface control is postponed for load in boundary element upon configuration
Member, target interface unit is for generating target interface.
Optionally, in some embodiments, referring to Fig. 5, describing module 402, comprising:
Acquisition submodule 4021, for obtaining the first configuration file corresponding with model data, determining and boundary element pair
The second configuration file answered;
It is associated with submodule 4022, for the first configuration file is associated with the second configuration file;
Implementation sub-module 4023 calls in the second configuration file for executing the first configuration file according to model data
Function interface is to carry out target configuration to boundary element and interface control.
Optionally, in some embodiments, function interface includes first function interface, and implementation sub-module 4023 is specifically used for:
The first configuration file is executed, calls the first function interface in the second configuration file to interface according to model data
The size of unit is adjusted;
Generation module 403, is specifically used for:
Load obtains target interface unit with interface control is postponed in boundary element after adjusting size.
Optionally, in some embodiments, function interface includes second function interface, and implementation sub-module 4023 is specifically used for:
The first configuration file is executed, calls the second function interface in the second configuration file with by target according to model data
Data are written in interface control, and using the interface control that target data is written as with interface control is postponed, control with interface is postponed
Part is for showing target data.
Optionally, in some embodiments, determining module 401 is specifically used for:
Target interface is divided according to target interface actual functional requirement, target interface is divided into multiple and different
Boundary element, different boundary elements accepts different displaying functions.
It should be noted that being also suitable in earlier figures 1- Fig. 3 embodiment to the explanation of interface creating method embodiment
In the interface generating means 400 of the embodiment, realization principle is similar, and details are not described herein again.
In the present embodiment, by determining at least one boundary element required for generating target interface, and determine that interface is single
At least one interface control required for first, and the model data according to required for generating target interface is to boundary element and interface
Control carries out target configuration, obtains with postponing boundary element and with postponing interface control, and upon configuration in boundary element plus
It carries with interface control is postponed, obtains target interface unit, target interface unit is for generating target interface, due to being at interface
Dimension divides target interface, and uses model data required for target interface, and direct configuration interface control makes
The display data for obtaining interface control are mutually separated with processing logic, therefore, are effectively promoted program code reusability, are reduced subsequent repairs
Change complexity, promotes development efficiency.
Fig. 6 is the structural schematic diagram for the computer equipment that one embodiment of the invention proposes.
The computer equipment can be mobile phone, tablet computer etc..
Referring to Fig. 6, the computer equipment 60 of the present embodiment includes: shell 601, processor 602, memory 603, circuit board
604, power circuit 605, circuit board 604 are placed in the space interior that shell 601 surrounds, and processor 602, memory 603 are arranged
On circuit board 604;Power circuit 605, for powering for each circuit of computer equipment 60 or device;Memory 603 is used for
Store executable program code;Wherein, processor 602 is transported by reading the executable program code stored in memory 603
Row program corresponding with executable program code, for executing:
It determines at least one boundary element required for generating target interface, and determines at least one required for boundary element
A interface control;
The model data according to required for generating target interface carries out target configuration to boundary element and interface control, obtains
With postponing boundary element and with postponing interface control;
Load obtains target interface unit with interface control is postponed in boundary element upon configuration, and target interface unit is used
In generation target interface.
It should be noted that being also suitable in earlier figures 1- Fig. 3 embodiment to the explanation of interface creating method embodiment
In the computer equipment 60 of the embodiment, realization principle is similar, and details are not described herein again.
In the present embodiment, by determining at least one boundary element required for generating target interface, and determine that interface is single
At least one interface control required for first, and the model data according to required for generating target interface is to boundary element and interface
Control carries out target configuration, obtains with postponing boundary element and with postponing interface control, and upon configuration in boundary element plus
It carries with interface control is postponed, obtains target interface unit, target interface unit is for generating target interface, due to being at interface
Dimension divides target interface, and uses model data required for target interface, and direct configuration interface control makes
The display data for obtaining interface control are mutually separated with processing logic, therefore, are effectively promoted program code reusability, are reduced subsequent repairs
Change complexity, promotes development efficiency.
In order to realize above-described embodiment, the present invention also proposes a kind of non-transitorycomputer readable storage medium, works as storage
When instruction in medium is executed by the processor of computer equipment, so that computer equipment is able to carry out a kind of interface generation side
Method, method include:
It determines at least one boundary element required for generating target interface, and determines at least one required for boundary element
A interface control;
The model data according to required for generating target interface carries out target configuration to boundary element and interface control, obtains
With postponing boundary element and with postponing interface control;
Load obtains target interface unit with interface control is postponed in boundary element upon configuration, and target interface unit is used
In generation target interface.
Non-transitorycomputer readable storage medium in the present embodiment, by determining required for generating target interface extremely
A few boundary element, and determine at least one interface control required for boundary element, and according to needed for generating target interface
The model data wanted carries out target configuration to boundary element and interface control, obtains with postponing boundary element and with postponing interface control
Part, and load to match in boundary element upon configuration and postpone interface control, target interface unit is obtained, target interface unit is used for
Target interface is generated, due to being that dimension at interface divides target interface, and uses required for target interface
Therefore model data, direct configuration interface control, effectively mention so that the display data of interface control are mutually separated with processing logic
Lift sequence rate of code reuse reduces subsequent modification complexity, promotes development efficiency.
In order to realize above-described embodiment, the present invention also proposes a kind of computer program product, when in computer program product
Instruction when being executed by processor, execute a kind of interface creating method, method includes:
It determines at least one boundary element required for generating target interface, and determines at least one required for boundary element
A interface control;
The model data according to required for generating target interface carries out target configuration to boundary element and interface control, obtains
With postponing boundary element and with postponing interface control;
Load obtains target interface unit with interface control is postponed in boundary element upon configuration, and target interface unit is used
In generation target interface.
Computer program product in the present embodiment, by determining that at least one interface required for generating target interface is single
Member, and determine at least one interface control required for boundary element, and the model data according to required for generating target interface
Target configuration is carried out to boundary element and interface control, is obtained with postponing boundary element and with postponing interface control, and matching
It postpones load in boundary element and obtains target interface unit, target interface unit is for generating target circle with interface control is postponed
Face, due to being that dimension at interface divides target interface, and uses model data required for target interface, directly
Configuration interface control is connect, so that the display data of interface control are mutually separated with processing logic, therefore, it is multiple effectively to promote program code
With rate, subsequent modification complexity is reduced, promotes development efficiency.
It should be noted that in the description of the present invention, term " first ", " second " etc. are used for description purposes only, without
It can be interpreted as indication or suggestion relative importance.In addition, in the description of the present invention, unless otherwise indicated, the meaning of " multiple "
It is two or more.
Any process described otherwise above or method description are construed as in flow chart or herein, and expression includes
It is one or more for realizing specific logical function or process the step of executable instruction code module, segment or portion
Point, and the range of the preferred embodiment of the present invention includes other realization, wherein can not press shown or discussed suitable
Sequence, including according to related function by it is basic simultaneously in the way of or in the opposite order, Lai Zhihang function, this should be of the invention
Embodiment person of ordinary skill in the field understood.
It should be appreciated that each section of the invention can be realized with hardware, software, firmware or their combination.Above-mentioned
In embodiment, software that multiple steps or method can be executed in memory and by suitable instruction execution system with storage
Or firmware is realized.It, and in another embodiment, can be under well known in the art for example, if realized with hardware
Any one of column technology or their combination are realized: having a logic gates for realizing logic function to data-signal
Discrete logic, with suitable combinational logic gate circuit specific integrated circuit, programmable gate array (PGA), scene
Programmable gate array (FPGA) etc..
Those skilled in the art are understood that realize all or part of step that above-described embodiment method carries
It suddenly is that relevant hardware can be instructed to complete by program, the program can store in a kind of computer-readable storage medium
In matter, which when being executed, includes the steps that one or a combination set of embodiment of the method.
It, can also be in addition, each functional unit in each embodiment of the present invention can integrate in a processing module
It is that each unit physically exists alone, can also be integrated in two or more units in a module.Above-mentioned integrated mould
Block both can take the form of hardware realization, can also be realized in the form of software function module.The integrated module is such as
Fruit is realized and when sold or used as an independent product in the form of software function module, also can store in a computer
In read/write memory medium.
Storage medium mentioned above can be read-only memory, disk or CD etc..
In the description of this specification, reference term " one embodiment ", " some embodiments ", " example ", " specifically show
The description of example " or " some examples " etc. means specific features, structure, material or spy described in conjunction with this embodiment or example
Point is included at least one embodiment or example of the invention.In the present specification, schematic expression of the above terms are not
Centainly refer to identical embodiment or example.Moreover, particular features, structures, materials, or characteristics described can be any
One or more embodiment or examples in can be combined in any suitable manner.
Although the embodiments of the present invention has been shown and described above, it is to be understood that above-described embodiment is example
Property, it is not considered as limiting the invention, those skilled in the art within the scope of the invention can be to above-mentioned
Embodiment is changed, modifies, replacement and variant.
Claims (12)
1. a kind of interface creating method characterized by comprising
It determines at least one boundary element required for generating target interface, and determines at least one required for the boundary element
A interface control;
The model data according to required for generating the target interface carries out target to the boundary element and the interface control
Configuration is obtained with postponing boundary element and with postponing interface control;
It loads described with interface control is postponed in boundary element with postponing described, obtains target interface unit, target circle
Face unit is for generating the target interface.
2. interface creating method as described in claim 1, which is characterized in that described according to required for generating the target interface
Model data target configuration is carried out to the boundary element and the interface control, comprising:
The first configuration file corresponding with the model data is obtained, determines the second configuration text corresponding with the boundary element
Part;
First configuration file is associated with second configuration file;
First configuration file is executed, calls the function interface in second configuration file with right according to the model data
The boundary element and the interface control carry out target configuration.
3. interface creating method as claimed in claim 2, which is characterized in that the function interface includes first function interface,
It is described to execute first configuration file, call the function interface in second configuration file with right according to the model data
The boundary element and the interface control carry out target configuration, further includes:
First configuration file is executed, the first function interface in second configuration file is called according to the model data
It is adjusted with the size to the boundary element;
It is described described with interface control is postponed with load in boundary element is postponed described, obtain target interface unit, comprising:
With interface control is postponed described in loading in boundary element after adjusting size, target interface unit is obtained.
4. interface creating method as claimed in claim 3, which is characterized in that the function interface includes second function interface,
It is described to execute first configuration file, call the function interface in second configuration file with right according to the model data
The boundary element and the interface control carry out target configuration, comprising:
First configuration file is executed, the second function interface in second configuration file is called according to the model data
The target data to be written in the interface control, and the interface control of the target data will be written as the configuration
Interface control afterwards, it is described with postponing interface control for showing the target data.
5. interface creating method as described in claim 1, which is characterized in that required for the determining generation target interface extremely
A few boundary element, comprising:
The target interface is divided according to the target interface actual functional requirement, the target interface is divided into
Multiple and different boundary elements, the different boundary element accept different displaying functions.
6. a kind of interface generating means characterized by comprising
Determining module for determining at least one boundary element required for generating target interface, and determines the boundary element
At least one required interface control;
Configuration module, for the model data according to required for generating the target interface to the boundary element and the interface
Control carries out target configuration, obtains with postponing boundary element and with postponing interface control;
Generation module obtains target interface list for loading described with interface control is postponed in boundary element with postponing described
Member, the target interface unit is for generating the target interface.
7. interface generating means as claimed in claim 6, which is characterized in that the configuration module, comprising:
Acquisition submodule, for obtaining the first configuration file corresponding with the model data, the determining and boundary element pair
The second configuration file answered;
It is associated with submodule, for first configuration file is associated with second configuration file;
Implementation sub-module calls second configuration file according to the model data for executing first configuration file
In function interface to carry out target configuration to the boundary element and the interface control.
8. interface generating means as claimed in claim 7, which is characterized in that the function interface includes first function interface,
The implementation sub-module, is specifically used for:
First configuration file is executed, the first function interface in second configuration file is called according to the model data
It is adjusted with the size to the boundary element;
The generation module, is specifically used for:
With interface control is postponed described in loading in boundary element after adjusting size, target interface unit is obtained.
9. interface generating means as claimed in claim 8, which is characterized in that the function interface includes second function interface,
The implementation sub-module, is specifically used for:
First configuration file is executed, the second function interface in second configuration file is called according to the model data
The target data to be written in the interface control, and the interface control of the target data will be written as the configuration
Interface control afterwards, it is described with postponing interface control for showing the target data.
10. interface generating means as claimed in claim 6, which is characterized in that the determining module is specifically used for:
The target interface is divided according to the target interface actual functional requirement, the target interface is divided into
Multiple and different boundary elements, the different boundary element accept different displaying functions.
11. a kind of non-transitorycomputer readable storage medium, is stored thereon with computer program, which is characterized in that the program
Interface creating method according to any one of claims 1 to 5 is realized when being executed by processor.
12. a kind of computer equipment, including shell, processor, memory, circuit board and power circuit, wherein the circuit board
It is placed in the space interior that the shell surrounds, the processor and the memory are arranged on the circuit board;The electricity
Source circuit, for each circuit or the device power supply for the computer equipment;The memory is for storing executable program
Code;The processor is run and the executable program by reading the executable program code stored in the memory
The corresponding program of code, for executing:
It determines at least one boundary element required for generating target interface, and determines at least one required for the boundary element
A interface control;
The model data according to required for generating the target interface carries out target to the boundary element and the interface control
Configuration is obtained with postponing boundary element and with postponing interface control;
It loads described with interface control is postponed in boundary element with postponing described, obtains target interface unit, target circle
Face unit is for generating the target interface.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910675054.0A CN110442342B (en) | 2019-07-25 | 2019-07-25 | Interface generation method and device, storage medium and computer equipment |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910675054.0A CN110442342B (en) | 2019-07-25 | 2019-07-25 | Interface generation method and device, storage medium and computer equipment |
Publications (2)
Publication Number | Publication Date |
---|---|
CN110442342A true CN110442342A (en) | 2019-11-12 |
CN110442342B CN110442342B (en) | 2020-07-31 |
Family
ID=68429834
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910675054.0A Active CN110442342B (en) | 2019-07-25 | 2019-07-25 | Interface generation method and device, storage medium and computer equipment |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN110442342B (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN117667062A (en) * | 2024-01-31 | 2024-03-08 | 成都信息工程大学 | Development system and development method for man-machine interaction interface of flight cockpit |
Citations (14)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101082865A (en) * | 2007-06-29 | 2007-12-05 | 中兴通讯股份有限公司 | Automatically generating method based on data driving interface |
CN103019564A (en) * | 2012-12-14 | 2013-04-03 | 东莞宇龙通信科技有限公司 | Terminal and terminal operation method |
CN103365855A (en) * | 2012-03-28 | 2013-10-23 | 腾讯科技(深圳)有限公司 | Method and server for generating web pages |
CN104731589A (en) * | 2015-03-12 | 2015-06-24 | 用友网络科技股份有限公司 | Automatic generation method and device of user interface (UI) |
CN104978195A (en) * | 2015-06-26 | 2015-10-14 | 浪潮软件集团有限公司 | Interface configuration device and method |
CN105574755A (en) * | 2015-12-22 | 2016-05-11 | 北京奇虎科技有限公司 | Method and device of providing front-end service |
CN105988814A (en) * | 2015-03-02 | 2016-10-05 | 腾讯科技(深圳)有限公司 | Interface generation method and apparatus |
US20170374210A1 (en) * | 2016-06-24 | 2017-12-28 | Kabushiki Kaisha Toshiba | System and method for proximity based generation of custom user interfaces |
CN107562825A (en) * | 2017-08-21 | 2018-01-09 | 北京锐安科技有限公司 | A kind of system and method for generating data display interface |
CN108154569A (en) * | 2017-12-27 | 2018-06-12 | 广州奥格智能科技有限公司 | A kind of inspection acquisition method based on object modelization configuration |
US20180260101A1 (en) * | 2017-03-09 | 2018-09-13 | Johnson Controls Technology Company | Building automation system with an energy optimization builder and generic data model designer |
CN109144506A (en) * | 2018-07-05 | 2019-01-04 | 杭州涂鸦信息技术有限公司 | A kind of configurable UI interface creating method |
CN109558557A (en) * | 2018-11-23 | 2019-04-02 | 京华信息科技股份有限公司 | A kind of mobile modeling method, device and storage medium based on image recognition |
CN109614098A (en) * | 2017-09-30 | 2019-04-12 | 北京国双科技有限公司 | The generation method and device of configuration interface |
-
2019
- 2019-07-25 CN CN201910675054.0A patent/CN110442342B/en active Active
Patent Citations (14)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101082865A (en) * | 2007-06-29 | 2007-12-05 | 中兴通讯股份有限公司 | Automatically generating method based on data driving interface |
CN103365855A (en) * | 2012-03-28 | 2013-10-23 | 腾讯科技(深圳)有限公司 | Method and server for generating web pages |
CN103019564A (en) * | 2012-12-14 | 2013-04-03 | 东莞宇龙通信科技有限公司 | Terminal and terminal operation method |
CN105988814A (en) * | 2015-03-02 | 2016-10-05 | 腾讯科技(深圳)有限公司 | Interface generation method and apparatus |
CN104731589A (en) * | 2015-03-12 | 2015-06-24 | 用友网络科技股份有限公司 | Automatic generation method and device of user interface (UI) |
CN104978195A (en) * | 2015-06-26 | 2015-10-14 | 浪潮软件集团有限公司 | Interface configuration device and method |
CN105574755A (en) * | 2015-12-22 | 2016-05-11 | 北京奇虎科技有限公司 | Method and device of providing front-end service |
US20170374210A1 (en) * | 2016-06-24 | 2017-12-28 | Kabushiki Kaisha Toshiba | System and method for proximity based generation of custom user interfaces |
US20180260101A1 (en) * | 2017-03-09 | 2018-09-13 | Johnson Controls Technology Company | Building automation system with an energy optimization builder and generic data model designer |
CN107562825A (en) * | 2017-08-21 | 2018-01-09 | 北京锐安科技有限公司 | A kind of system and method for generating data display interface |
CN109614098A (en) * | 2017-09-30 | 2019-04-12 | 北京国双科技有限公司 | The generation method and device of configuration interface |
CN108154569A (en) * | 2017-12-27 | 2018-06-12 | 广州奥格智能科技有限公司 | A kind of inspection acquisition method based on object modelization configuration |
CN109144506A (en) * | 2018-07-05 | 2019-01-04 | 杭州涂鸦信息技术有限公司 | A kind of configurable UI interface creating method |
CN109558557A (en) * | 2018-11-23 | 2019-04-02 | 京华信息科技股份有限公司 | A kind of mobile modeling method, device and storage medium based on image recognition |
Non-Patent Citations (2)
Title |
---|
李琦: "基于数据模式和界面模式的界面代码生成方法", 《土地开发工程研究》 * |
高宇靖: "基于MVC设计模式的Struts框架的探索", 《中国优秀硕士学位论文全文数据库 信息科技辑》 * |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN117667062A (en) * | 2024-01-31 | 2024-03-08 | 成都信息工程大学 | Development system and development method for man-machine interaction interface of flight cockpit |
Also Published As
Publication number | Publication date |
---|---|
CN110442342B (en) | 2020-07-31 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN101382905B (en) | Systems and methods for development of emulated devices in a virtual machine environment | |
CN110502229B (en) | Page generation method, device, terminal, computer equipment and storage medium | |
CN109344352B (en) | Page loading method and device and electronic equipment | |
CN107807821A (en) | The implementation method and terminal of animation pop-up | |
CN108093292A (en) | For managing the method, apparatus and system of caching | |
CN106648496B (en) | Electronic device and method for controlling display of electronic device | |
CN105302663B (en) | A kind of mirror image starting-up method and terminal device | |
CN110019464B (en) | Page processing method and device | |
CN102789357A (en) | Method and device for setting subject resources based on Andriod application technology | |
US8669998B1 (en) | Selection of colors | |
CN104778022A (en) | Data processing method and electronic equipment | |
CN110647378A (en) | Dynamic image loading method and device and electronic equipment | |
CN107562483A (en) | A kind of method and device of carry guiding file system | |
CN116842307B (en) | Data processing method, device, equipment, chip and storage medium | |
CN106462827A (en) | Platform self-management of resources based on a contextual understanding of user plans and goals | |
CN115562738B (en) | Port configuration method, component and hard disk expansion device | |
CN110908734A (en) | Application combination method and device based on plug-in, terminal equipment and storage medium | |
CN107908452A (en) | Multi-page starts method and device | |
CN110442342A (en) | Interface creating method, device, storage medium and computer equipment | |
CN113407254B (en) | Form generation method and device, electronic equipment and storage medium | |
CN112631664B (en) | Signal distribution method, signal distribution device, computer equipment and readable storage medium | |
CN112486807A (en) | Pressure testing method and device, electronic equipment and readable storage medium | |
CN116483645A (en) | Device virtual debugging method, device, storage medium and program product | |
CN110908684B (en) | Method and device for updating silk-screen information of configuration page memory | |
CN109739491A (en) | Control data display method and device, electronic equipment and storage medium |
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 |