Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

Control generation method and device, equipment and storage medium

A technology for controlling and generating targets, applied in the computer field, can solve the problems of inflexible configuration elements, high code redundancy, cumbersome implementation process, etc., to improve configuration flexibility, high information reuse, and reduce redundancy. Effect

Active Publication Date: 2021-12-14
INTEWELL (GUANGZHOU) SOFEWARE TECH CO LTD
View PDF10 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0003] However, the above method has the following disadvantages: First, the hard-coded method cannot flexibly configure the elements in the interface. When the requirements change frequently, it means that frequent coding and packaging are required; second, for some controls Constraint information, such as constraint information used to limit the input character length of an input box, needs to write verification rules for the control from the code level, which is difficult to reuse, resulting in high code redundancy
However, this technical solution still requires decentralized design, generation and maintenance of different controls, and the implementation process is cumbersome, which cannot avoid problems such as lack of flexibility in control configuration changes and difficulty in reusing constraint information.

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Control generation method and device, equipment and storage medium
  • Control generation method and device, equipment and storage medium
  • Control generation method and device, equipment and storage medium

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0028] figure 1 It is a flow chart of a control generation method provided in Embodiment 1 of the present invention. This embodiment is applicable to the situation of generating controls in a visual interface. The method can be executed by the control generation device provided in the embodiment of the present invention. The device can It is realized by means of software and / or hardware, and generally can be integrated in computer equipment. Correspondingly, such as figure 1 As shown, the method includes the following operations:

[0029] S110. Generate a visualization frame to be configured according to the target control element and the target layout.

[0030] Wherein, the target control element may be a component and a graph used to form a visual control after configuration. The target layout may be the arrangement of the display positions of the various visual controls in the interface. The visualization frame to be configured may be a frame composed of target control ...

Embodiment 2

[0043] figure 2 It is a flow chart of a control generation method provided by Embodiment 2 of the present invention. The embodiment of the present invention is embodied on the basis of the foregoing embodiments. In the embodiment of the present invention, a specific optional implementation manner of generating a visualization frame to be configured according to the target control element and the target layout is given.

[0044] Such as figure 2 As shown, the method of the embodiment of the present invention specifically includes:

[0045] S210. Generate a visualization frame to be configured according to the target control element and the target layout.

[0046] In an optional embodiment of the present invention, S210 may specifically include:

[0047] S211. Determine at least one target control element and display position information of each target control element according to the target layout.

[0048] Wherein, the display position information may be information used...

Embodiment 3

[0076] Figure 4 A schematic structural diagram of a control generating device provided in Embodiment 3 of the present invention, as shown in Figure 4 As shown, the device includes: a framework generation module 310 , a constraint acquisition module 320 and a control generation module 330 .

[0077] Wherein, the frame generation module 310 is configured to generate a visual frame to be configured according to the target control element and the target layout.

[0078] The constraint acquisition module 320 is configured to acquire a constraint configuration file and parse the constraint configuration file to obtain constraint configuration information.

[0079] The control generation module 330 is configured to map the constraint configuration information to the visualization frame to be configured, so as to generate a target control in the target visualization interface according to the constraint configuration information.

[0080] In an optional implementation manner of th...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The embodiment of the invention discloses a control generation method and device, equipment and a storage medium. The method comprises the following steps: generating a to-be-configured visual framework according to a target control element and a target layout; obtaining a constraint configuration file and analyzing the constraint configuration file to obtain constraint configuration information; and mapping the constraint configuration information into the to-be-configured visual framework, so as to generate a target control in the target visual interface according to the constraint configuration information. According to the embodiment of the invention, the configuration flexibility of the control generated in the visual interface can be improved, the information reusability is extremely high, and the redundancy of control generation codes is reduced.

Description

technical field [0001] The embodiments of the present invention relate to the field of computer technology, and in particular, to a control generation method, device, equipment and storage medium. Background technique [0002] In visual interface design, when the controls displayed in the interface, such as labels, input boxes, and drop-down lists, need to be modified, it is usually necessary to modify the controls in the source code according to actual needs in a coding manner, and recompile and package the new ones. Code, so as to realize the function of adding new controls in the interface. [0003] However, the above method has the following disadvantages: First, the hard-coded method cannot flexibly configure the elements in the interface. When the requirements change frequently, it means that frequent coding and packaging are required; second, for some controls Constraint information, such as constraint information used to limit the input character length of an input ...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
Patent Type & Authority Applications(China)
IPC IPC(8): G06F8/38G06F8/36G06F8/34G06F8/71
CPCG06F8/38G06F8/36G06F8/34G06F8/71
Inventor 徐波
Owner INTEWELL (GUANGZHOU) SOFEWARE TECH CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products