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

Dynamic generation apparatus and method for application program interface

An application program interface, dynamic generation technology, applied in the direction of program control device, creation/generation of source code, etc., can solve the problems of increasing the difficulty and complexity of interface development, increasing the complexity of application programs, and complicated interfaces, and reducing the number of interfaces. Development difficulty, reduction of post-maintenance costs, and the effect of reduced coupling

Inactive Publication Date: 2009-07-08
TENCENT TECH (SHENZHEN) CO LTD
View PDF0 Cites 59 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0010] Although the interface generation tool can simplify the writing of interface codes, and at the same time use the interface description as a bridge between logic codes and interface codes, it also achieves the separation of interface codes and logic codes to a certain extent, reducing the gap between interface codes and logic codes. The degree of mutual influence between them, that is, the degree of coupling, but because the C language code of the interface part generated by the interface generation tool needs to be compiled and connected with the logic code of the application program, in fact, the code of the final application program still includes the code of the interface part. There is still a certain degree of coupling. In this case, when the interface is adjusted, even small adjustments such as interface element properties, it is necessary to modify the application, repeat the multiple steps of the above interface generation, and finally reconnect with the logic of the application. Code compilation and connection, the flexibility and scalability of the interface design will be greatly limited, which is very inconvenient for the later maintenance and update of the application program interface
[0011] In addition, the existing interface generation tools provide complex interfaces, and many interfaces need to be used in the logic code of the application to interact with interface elements, which increases the complexity of the application and increases the interface development effort to a certain extent. difficulty and complexity

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
  • Dynamic generation apparatus and method for application program interface
  • Dynamic generation apparatus and method for application program interface
  • Dynamic generation apparatus and method for application program interface

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0036] In order to make the object, technical solution and advantages of the present invention clearer, the present invention will be further described in detail below with reference to the accompanying drawings and examples.

[0037] The present invention mainly realizes the dynamic generation of the interface of the application program through the dynamic interface generation device, so that the application program does not need to include the interface code, but only needs to provide the interface description. Describe the dynamic creation and layout of interface elements to generate the application program interface; in the application program, you only need to call the interface description to get the required interface, without writing the C language code of the interface part, so that the interface code and logic code are completely separated, greatly Reduce the coupling degree between logic code and interface code, make the development of application program interface m...

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 invention provides a device for dynamically generating an application program interface. The device comprises an external interface, an interface description interpreter, an element manager, a layout manager and an element wrapper. The external interface is used for receiving an interface description file and outputting to the interface description interpreter; the interface description interpreter is used for analyzing the interface description file according to the description definition of preset interface elements and obtaining the attribute information and layout information of the interface elements; the element manager is used for calling interface element codes wrapped in the element wrapper according to the attribute information received from the interface description interpreter, and creating and arranging the interface elements; the layout manager is used for arranging the interface elements created by the element manager according to the layout information received from the interface description interpreter and generating the application program interface; the element wrapper is used for wrapping the interface element codes. The device has the advantages of dynamically generating the application program interface, greatly reducing the coupling degree between logical codes and interface codes, and enabling the application program interface to be more flexible. At the same time, the invention further provides a method for dynamically generating the application program interface.

Description

technical field [0001] The invention relates to the field of interface technology, in particular to a device and method for dynamically generating an application program interface. Background technique [0002] At present, the vast majority of applications use the graphical user interface as the application program interface. With the enrichment of application program functions, the design of the program interface becomes more and more complicated. The general graphics library generated for the application program interface, for example, GTK (GIMP Toolkit) is one of the most widely used ones. GTK provides a wealth of interface functions to construct application program interface elements. Application developers can add , create and layout the required interface elements through GTK primitives, so as to construct a vivid graphical application interface. In addition, using the GTK-based interface generation tool can generate interface code more conveniently, thereby saving th...

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
IPC IPC(8): G06F9/44
CPCG06F8/30
Inventor 黄磊
Owner TENCENT TECH (SHENZHEN) 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