Interface control generation method, device, readable medium and electronic device

By establishing view object files and construction path information, diversified interface controls are generated, which solves the problem of single style and triggering methods of existing interface controls, and realizes the diversity of interface controls and meets user needs.

CN114415892BActive Publication Date: 2024-09-03PING AN CONSUMER FINANCE CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202210084411.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-01-25
Publication Date
2024-09-03
Estimated Expiration
2042-01-25

AI Technical Summary

Technical Problem

The styles and triggering methods of existing interface controls are too simple and cannot meet the diverse needs of users.

Method used

By obtaining the control creation request, create a view object file, including text controls, graphic controls and position information, build path information, add response content to it, generate style files, load them on the interface, and generate diverse interface controls.

Benefits of technology

It realizes the diversity of interface controls, expands styles and triggering methods, and meets users' design and use needs for interface controls.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114415892B
    Figure CN114415892B
Patent Text Reader

Abstract

The present application belongs to the field of interface design technology, and specifically relates to an interface control generation method, device, readable medium and electronic device. The present application obtains a control creation request; based on the control creation request, establishes a view object file, the view object file includes a text control, a graphic control and location information, and constructs the path information of the text control and the graphic control according to the location information; adds response content to the text control, the graphic control and the path information to generate a style file; finally, loads the style file on the interface to generate an interface control. Through the method of the present application, the style information and triggering mode of the interface control can be expanded, and the response content can be triggered when the user draws the path information, which expands the triggering mode of the interface control, realizes the diversity of the interface control, and meets the user's design and use requirements for the interface control.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application belongs to the technical field of interface design, and specifically relates to an interface control generation method, device, readable medium and electronic device. Background Art

[0002] Interface controls refer to visual graphic "components" that can be placed on a form, such as buttons, file edit boxes, etc. Most of them have execution functions or trigger code to run and complete responses through "events".

[0003] With the continuous development of computer technology, the use of interface controls is becoming more and more frequent. However, the styles and triggering methods of existing interface controls are too simple. The styles only support pure text, text on the left and text on the right, and pure picture styles, and the triggering methods only support click, double-click, etc. It cannot meet people's demand for the use of interface controls.

[0004] It should be noted that the information disclosed in the above background technology section is only used to enhance the understanding of the background of the present application, and therefore may include information that does not constitute the prior art known to ordinary technicians in the field. Summary of the invention

[0005] The purpose of the present application is to provide an interface control generation method, device, computer-readable medium and electronic device, which can at least to some extent overcome the technical problems in the related art such as the overly single style and triggering method of the interface control.

[0006] Other features and advantages of the present application will become apparent from the following detailed description, or may be learned in part by the practice of the present application.

[0007] According to one aspect of an embodiment of the present application, a method for generating an interface control is provided, comprising:

[0008] Get the control creation request;

[0009] Based on the control creation request, a view object file is established, wherein the view object file includes a text control, a graphic control and position information, wherein the position information is used to indicate the relative position of the text control and the graphic control;

[0010] Constructing path information of the text control and the graphic control according to the position information;

[0011] Adding response content to the text control, graphic control and path information to generate a style file;

[0012] The style file is loaded onto the interface to generate interface controls.

[0013] In some embodiments of the present application, based on the above technical solution, before obtaining a control creation request, the method includes:

[0014] Creating first-level options on the interface, wherein the first-level options include text options, graphic options, and position options;

[0015] A text secondary option is created under the text option, and the text secondary option includes the style information of the text; a graphic secondary option is created under the graphic option, and the graphic secondary option includes the style information of the graphic; a position secondary option is created under the position option, and the position secondary option includes the relative position of the text and the graphic in the control.

[0016] In some embodiments of the present application, based on the above technical solution, obtaining a control creation request includes:

[0017] The user's option information is obtained, where the user's option information includes a text secondary option, a graphic secondary option, and a position secondary option selected by the user on the interface.

[0018] In some embodiments of the present application, based on the above technical solution, before creating a view object file based on the control creation request, the method further includes:

[0019] Establishing a label pair, and establishing a mapping relationship between the label pair and the text secondary option, and calling out the label pair by clicking the text secondary option;

[0020] Establishing a character pair, and establishing a mapping relationship between the character pair and the graphic secondary option, and calling out the character pair by clicking the graphic secondary option;

[0021] A relative coordinate value is established, and a mapping relationship between the relative coordinate value and the secondary position option is established, and the relative coordinate value is called out by clicking the secondary position option.

[0022] In some embodiments of the present application, based on the above technical solution and based on the control creation request, a view object file is established, including:

[0023] Obtaining user option information according to the control creation request;

[0024] Acquire label pairs, character pairs and relative coordinate values ​​based on the option information;

[0025] The view object file is established by combining the label pair, the character pair and the relative coordinate value.

[0026] In some embodiments of the present application, based on the above technical solution, the path information of the text control and the graphic control is constructed according to the position information, including:

[0027] Get the path segment corresponding to the path;

[0028] The path segment is drawn with the text control as the starting point and the graphic control as the end point to obtain the path information.

[0029] In some embodiments of the present application, based on the above technical solution, obtaining a path segment corresponding to the path includes:

[0030] Gets a user-defined path segment or a preset path segment.

[0031] According to one aspect of an embodiment of the present application, there is provided an interface control generating device, including:

[0032] Acquisition module, used to obtain control creation request;

[0033] A creation module, used to create a view object file based on the control creation request, wherein the view object file includes a text control, a graphic control and position information, wherein the position information is used to indicate the relative position of the text control and the graphic control;

[0034] A construction module, used for constructing path information of the text control and the graphic control according to the position information;

[0035] A style generation module, used to add response content to the text control, graphic control and path information, and generate a style file;

[0036] The control generation module is used to load the style file on the interface to generate interface controls.

[0037] In some embodiments of the present application, based on the above technical solution, the device further includes an option creation module, and the option creation module includes:

[0038] A first-level option creation unit: used to create first-level options on the interface, wherein the first-level options include text options, graphic options and position options;

[0039] A secondary option creation unit is used to create a text secondary option under the text option, wherein the text secondary option includes the style information of the text; to create a graphic secondary option under the graphic option, wherein the graphic secondary option includes the style information of the graphic; and to create a position secondary option under the position option, wherein the position secondary option includes the relative position of the text and the graphic in the control.

[0040] In some embodiments of the present application, based on the above technical solution, the acquisition module is also used to obtain user option information, and the user option information includes text secondary options, graphic secondary options and position secondary options selected by the user on the interface.

[0041] In some embodiments of the present application, based on the above technical solution, the device further includes a mapping establishment module, and the mapping establishment module includes:

[0042] A label pair establishing unit, used to establish a label pair, and establish a mapping relationship between the label pair and the text secondary option, and call out the label pair by clicking the text secondary option;

[0043] A character pair establishing unit, used for establishing a character pair, and establishing a mapping relationship between the character pair and the graphic secondary option, and calling out the character pair by clicking the graphic secondary option;

[0044] The relative coordinate establishing unit is used to establish a relative coordinate value and a mapping relationship between the relative coordinate value and the secondary position option, and to call out the relative coordinate value by clicking the secondary position option.

[0045] In some embodiments of the present application, based on the above technical solution, the establishment module includes:

[0046] An option acquisition unit, used to obtain user option information according to the control creation request;

[0047] A mapping acquisition unit, used for acquiring label pairs, character pairs and relative coordinate values ​​based on the option information;

[0048] The establishing unit is used to establish the view object file by using the combination of the label pair, the character pair and the relative coordinate value.

[0049] In some embodiments of the present application, based on the above technical solution, the building blocks include:

[0050] A line segment acquisition unit, used to acquire a path line segment corresponding to the path;

[0051] The drawing unit is used to draw the path segment with the text control as the starting point and the graphic control as the end point to obtain the path information.

[0052] In some embodiments of the present application, based on the above technical solution, the line segment acquisition unit is used to acquire user-defined path segments or preset path segments.

[0053] According to one aspect of an embodiment of the present application, a computer-readable medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the method for generating an interface control in the above technical solution is implemented.

[0054] According to one aspect of an embodiment of the present application, an electronic device is provided, comprising: a processor; and a memory for storing executable instructions of the processor; wherein the processor is configured to execute an interface control generation method as in the above technical solution by executing the executable instructions.

[0055] According to one aspect of the embodiments of the present application, a computer program product or a computer program is provided, the computer program product or the computer program includes computer instructions, and the computer instructions are stored in a computer-readable storage medium. A processor of a computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the computer device executes the interface control generation method in the above technical solution.

[0056] In the technical solution provided in the embodiment of the present application, the present application obtains a control creation request; based on the control creation request, establishes a view object file, the view object file includes a text control, a graphic control and location information, and constructs the path information of the text control and the graphic control according to the location information; adds response content to the text control, the graphic control and the path information to generate a style file; finally, loads the style file on the interface to generate an interface control. Through the method of the present application, text controls, graphic controls and location information can be used to form controls, expand the style information of interface controls, and avoid the style being too single; the path information of the text control and the graphic control is constructed using the location information, and response content is added to the path information, which can expand the triggering mode of the interface control, realize the user drawing path information to trigger different response content, expand the triggering mode of the interface control, realize the diversity of the interface control, and meet the user's design and use requirements for the interface control.

[0057] It should be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present application. BRIEF DESCRIPTION OF THE DRAWINGS

[0058] The drawings herein are incorporated into the specification and constitute a part of the specification, illustrate embodiments consistent with the present application, and together with the specification are used to explain the principles of the present application. Obviously, the drawings described below are only some embodiments of the present application, and for ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.

[0059] Figure 1 The exemplary system architecture block diagram applying the technical solution of the present application is schematically shown.

[0060] Figure 2 A flowchart of the interface control generation method of the present application is schematically shown.

[0061] Figure 3 The flowchart of the method for creating options of the present application is schematically shown.

[0062] Figure 4 A flowchart of the method for establishing mapping of secondary options of the present application is schematically shown.

[0063] Figure 5 The flowchart of the method for establishing the view object file of the present application is schematically shown.

[0064] Figure 6 The flowchart of the method for constructing the path information of the present application is schematically shown.

[0065] Figure 7 The interface control diagram generated by this application is schematically shown.

[0066] Figure 8 The structural block diagram of the interface control generating device of the present application is schematically shown.

[0067] Fig. 9 The structure block diagram of a computer system suitable for implementing an electronic device of an embodiment of the present application is schematically shown. DETAILED DESCRIPTION

[0068] Example embodiments will now be described more fully with reference to the accompanying drawings. However, example embodiments can be implemented in a variety of forms and should not be construed as limited to the examples set forth herein; rather, these embodiments are provided so that this application will be more comprehensive and complete and fully convey the concept of the example embodiments to those skilled in the art.

[0069] In addition, described feature, structure or characteristic can be combined in one or more embodiments in any suitable manner. In the following description, many specific details are provided to provide a full understanding of the embodiments of the present application. However, those skilled in the art will appreciate that the technical scheme of the present application can be put into practice without one or more of the specific details, or other methods, components, devices, steps, etc. can be adopted. In other cases, known methods, devices, realizations or operations are not shown or described in detail to avoid blurring the various aspects of the application.

[0070] The block diagrams shown in the accompanying drawings are merely functional entities and do not necessarily correspond to physically independent entities. That is, these functional entities may be implemented in software form, or in one or more hardware modules or integrated circuits, or in different networks and / or processor devices and / or microcontroller devices.

[0071] The flowcharts shown in the accompanying drawings are only exemplary and do not necessarily include all the contents and operations / steps, nor must they be executed in the order described. For example, some operations / steps can be decomposed, and some operations / steps can be combined or partially combined, so the actual execution order may change according to actual conditions.

[0072] Interface controls refer to visual graphic "components" that can be placed on a form, such as buttons, file edit boxes, etc. Users can click on interface controls, and based on the click, they can trigger the response content. With the increasing number of network applications, the use of interface controls is becoming more and more frequent. However, the styles and triggering methods of existing interface controls are too simple. In terms of style, existing interface controls only support pure text, or pure graphics, or the style of text on the right side of the picture on the left, which cannot meet the user's requirements for control styles. In terms of triggering methods, existing interface controls only support clicking, double-clicking, etc. It cannot meet the user's requirements for triggering methods.

[0073] In order to solve the above technical problems, the present application discloses an interface control generation method, an interface control generation device, a computer-readable medium and an electronic device. The contents of the present application will be further explained in various aspects below.

[0074] Figure 1 The exemplary system architecture block diagram applying the technical solution of the present application is schematically shown.

[0075] like Figure 1 As shown, the system architecture 100 may include a terminal device 110, a network 120, and a server 130. The terminal device 110 may include various electronic devices such as a smart phone, a tablet computer, a laptop computer, and a desktop computer. The server 130 may be an independent physical server, or a server cluster or a distributed system composed of multiple physical servers, or a cloud server providing cloud computing services. The network 120 may be a communication medium of various connection types that can provide a communication link between the terminal device 110 and the server 130, such as a wired communication link or a wireless communication link.

[0076] According to the implementation requirements, the system architecture in the embodiment of the present application can have any number of terminal devices, networks and servers. For example, the server 130 can be a server group composed of multiple server devices. In addition, the technical solution provided in the embodiment of the present application can be applied to the terminal device 110, can also be applied to the server 130, or can be implemented by the terminal device 110 and the server 130 together, and the present application does not make any special restrictions on this.

[0077] In one embodiment of the present application, the terminal device 110 or server 130 of the present application can obtain a control creation request; and based on the control creation request, establish a view object file, wherein the view object file includes a text control, a graphic control, and position information, and the position information is used to indicate the relative position of the text control and the graphic control; construct path information of the text control and the graphic control according to the position information; add response content to the text control, the graphic control, and the path information to generate a style file; load the style file on the interface to generate an interface control. By using the terminal device 110 or the server 130 to execute the interface control generation method of the present application, the diversity of interface controls can be achieved to meet the user's design and use requirements for interface controls.

[0078] The above section introduces the contents of an exemplary system architecture that applies the technical solution of the present application. Next, the interface control generation method of the present application will be introduced.

[0079] According to one aspect of the embodiment of the present application, Figure 2 As shown, Figure 2 A flowchart of the interface control generation method of the present application is schematically shown.

[0080] The present application provides an interface control generation method, including steps S210 to S250.

[0081] In step S210: a control creation request is obtained.

[0082] The control creation request of this application includes the text style, graphic style and the positional relationship between text and graphics of the interface control. The text style includes the position, content, font, thickness and color of the text in the interface control; the graphic style includes the type, position, shape, size and color of the graphics, and the type of graphics includes dynamic graphics. The positional relationship between text and graphics includes the relative displacement between text and graphics, inserting text into images and inserting images into text.

[0083] The control creation request of the present application may come from a user, for example, a user wants an interface control for italic text, a static image, and text embedded in the image. The user may issue a control creation request through the terminal device 110 and the server 130 .

[0084] The control creation request of the present application may also come from other servers or terminal devices. With the development of artificial intelligence, many other servers or terminal devices can automatically generate interface controls according to the set method, so the corresponding control creation request will also be automatically issued.

[0085] In one embodiment of the present application, Figure 3 As shown, Figure 3The flowchart of the method for creating options of the present application is schematically shown.

[0086] Before obtaining the control creation request, the present application also includes steps S310 to S320.

[0087] Step S310: creating first-level options on the interface, the first-level options including text options, graphic options and position options.

[0088] The present application can create a first level option on the user interface, wherein the first level option includes a text option, a graphic option and a position option. The user can adjust to the specific content of each option by clicking the corresponding option on the interface.

[0089] Step S320: Create a text secondary option under the text option, the text secondary option includes the style information of the text; create a graphic secondary option under the graphic option, the graphic secondary option includes the style information of the graphic; create a position secondary option under the position option, the position secondary option includes the relative position of the text and the graphic in the control.

[0090] The secondary option is a subordinate option of the primary option. When you click on the primary option, you can jump to each secondary option, and the user can then select each secondary option. Among them, the text secondary option of the present application includes text style information. The text style information is the same as the text style in step S110, including the position, content, font, thickness and color of the text in the interface control. The graphic style information includes the type, position, shape, size and color of the graphic. The relative position of text and graphics includes the relative displacement of text and graphics, inserting text in an image, and inserting an image in text.

[0091] Among them, the option creation method of step S310-step S320 is used for the case where the control creation request comes from the user. The user can select different option information on the interface to obtain the text style information, graphic style information and the relative position of the text and graphic of the interface control. For example, the user selects the text style information under the text option on the interface: the position of the text is at the center point of the interface control, the content is the letter A, the font is bold, the thickness is four and the color is black; the graphic style information is: the type of the graphic is a static image, the position is the left side of the interface control, the shape is a circle, the size is 2cm in diameter, and the color is black; the relative position of the text and the graphic is that the text is 2cm to the left of the graphic. Through the above option information of the user, an interface control corresponding to the above style information can be generated.

[0092] In one embodiment of the present application, when a control creation request comes from a user, a method for obtaining the control creation request includes:

[0093] The user's option information is obtained, and the user's option information includes the text secondary option, graphic secondary option and position secondary option selected by the user on the interface.

[0094] This application can obtain control creation requests for various styles of interface controls by obtaining user option information. The above method can simplify the user's design steps for interface controls. Users do not need to design complex codes, but only need to click different options on the interface to complete the generation of interface controls, which improves the convenience of use.

[0095] When a control creation request comes from other servers or terminal devices, various style information about the interface control sent by other servers or terminal devices can be directly obtained without the user clicking on options for input.

[0096] After obtaining the control creation request through the above steps, the process can proceed to step S220.

[0097] In step S220: based on the control creation request, a view object file is created, the view object file includes a text control, a graphic control and position information, and the position information is used to indicate the relative position of the text control and the graphic control.

[0098] In one embodiment of the present application, after step S210 and before step S220, the present application further includes a step of establishing a mapping of secondary options, such as Figure 4 As shown, Figure 4 A flowchart of the method for establishing mapping of secondary options of the present application is schematically shown.

[0099] The secondary option mapping method of the present application includes steps S410 to S430.

[0100] S410: Establish a label pair, and establish a mapping relationship between the label pair and the text secondary option, and call out the label pair by clicking the text secondary option.

[0101] The role of the tag pair is to express the style information of different texts in the view object file. Before creating the view object file, this application needs to build a mapping relationship between the tag pair and the text secondary options. For example, the tag pair Can be used to make text bold, tags are <v>< / v> Can indicate that the text is italic, the tag <c>The first 9-digit number starting with # can represent the color of the text, for example, <c>#255,255,255 represents white, and the following nine numbers can be RGB values. The present application can also use other tag pairs to represent different style information of text, wherein the use of tag pairs can make tags appear in pairs, avoiding a single tag causing insufficient style information to represent all text tags. The present application establishes a mapping relationship between tag pairs and text secondary options. When a user clicks on a text secondary option, the corresponding tag pair in the mapping relationship table can be called up. For example, <c>#255,255,255 is mapped to the color white in the text secondary option to form a mapping table. When the user clicks the color white in the text secondary option through the interface, the label mapping will be called up. <c>#255,255,255.

[0102] S420: Establish a character pair, and establish a mapping relationship between the character pair and the graphic secondary option, and call out the character pair by clicking the graphic secondary option.

[0103] The character pairs in this application are similar in meaning to the label pairs, and are used to represent the style information of different graphics in the view object file. Among them, the character pairs in this application are composed of some special characters excluding text, such as ",.!)" and the like. For example, the character pair .< represents that the graphic is a static graphic, and the character pair ! ! represents that the shape of the graphic is a circle. This application establishes a mapping relationship between character pairs and graphic secondary options, and forms a graphic mapping relationship table. When the user clicks on a graphic secondary option, the label pair corresponding to the clicked graphic secondary option in the mapping relationship table can be called up.

[0104] S430: Establishing relative coordinate values, and establishing a mapping relationship between the relative coordinate values ​​and the secondary position options, and calling out the relative coordinate values ​​by clicking the secondary position options.

[0105] The relative coordinate value can represent the relative coordinates of the text and the graphic. The relative coordinate value of this application represents the relative coordinates of the graphic relative to the text. For example, the relative coordinate value (1,1) indicates that the graphic is one unit distance to the right of the text and one unit distance to the top, where the unit distance can be centimeters. When calculating the relative distance, the center point of the graphic and the text can be used as the basis for its calculation. The relative coordinate value (0,0) can be used to indicate that the text overlaps with the graphic. At this time, a coordinate value can be added to indicate the overlapping relationship between the text and the graphic. For example, (0,0,1) can indicate that the graphic is embedded in the text, with the image on top and the text on the bottom; (0,0,0) can indicate that the graphic is embedded in the text, with the image on the bottom and the text on the top. By establishing a mapping relationship between the relative coordinate value and the position secondary option, when the position secondary option is obtained, the corresponding relative coordinate value can be called. For example, the user selects the graphic embedded in the text in the secondary option, with the image on top and the text on the bottom, and the corresponding relative coordinate value is (0,0,1).

[0106] After completing the mapping of the secondary options through steps S410 to S430, a view object file can be created based on the control creation request.

[0107] In one embodiment of the present application, Figure 5 As shown, Figure 5 The flowchart of the method for establishing a view object file of the present application is schematically shown. The method for establishing a view object file of the present application includes steps S510 to S530.

[0108] Step S510: Obtain user option information according to the control creation request.

[0109] Among them, the secondary option information selected by the user can be obtained through the control creation request.

[0110] Step S520: Acquire label pairs, character pairs and relative coordinate values ​​based on the option information.

[0111] Through the secondary option information selected by the user, using the mapping relationship established in step S410-step S430, the label pair, character pair and relative coordinate value corresponding to the secondary option information can be obtained.

[0112] Step S530: Create a view object file using the combination of label pairs, character pairs and relative coordinate values.

[0113] The view object file of the present application may be a file predefined by the terminal device 110 or the server 130. The terminal device 110 or the server 130 may obtain the style information of the interface control by parsing the file and generate the corresponding interface control based on the style information. For example, the view object file may be a file with the suffix .s.

[0114] This application uses a combination of label pairs, character pairs and relative coordinate values ​​to create a view object file. The combination method can be to splice the label pairs, character pairs and relative coordinate values. For example, for a label pair of , the character pair is .<., the coordinate values ​​are -1, -2, and the corresponding view object file can be [ .<.-1,-2】.s file.

[0115] A view object file can be created by the above method. When a control creation request comes from other servers or terminal devices, the present application can directly use the server or terminal device to generate a view object file including interface control text style information, graphic style information and the relative position of text and graphics.

[0116] After creating the view object file, the process may proceed to step S230.

[0117] In step S230: construct path information of the text control and the graphic control according to the position information.

[0118] Path information is the route from the text control to the graphic control. When an interface control includes both text controls and graphic controls, there can be many routes from the text control to the graphic control, such as straight lines or curves. These can constitute the path information of the text control and the graphic control.

[0119] In one embodiment of the present application, Figure 6 As shown, Figure 6 The flowchart of the method for constructing the path information of the present application is schematically shown.

[0120] The method for constructing path information of a text control and a graphic control according to position information includes steps S610 to S620.

[0121] Step S610: Obtain the path segment corresponding to the path.

[0122] In one embodiment of the present application, the path segments of the present application may include path segments preset by the system, or may include path segments defined by the user. For example, the user may hand-draw the path segments and save them to the server 130 or the terminal device 110 .

[0123] Step S620: Draw a path segment with the text control as the starting point and the graphic control as the end point to obtain path information.

[0124] After obtaining the path segment, you can draw the path segment with the text control as the starting point and the graphic control as the end point to obtain the path information.

[0125] The path information of the present application includes not only straight line segments, but also curves, broken lines, etc.

[0126] In step S240: adding response content to the text control, graphic control and path information to generate a style file.

[0127] The response content is based on the content triggered by clicking or drawing text controls, graphic controls, and path information. Interface controls have the function of executing functions or triggering code to run and complete responses through "events". For example, for a text control, you can jump out of the text information contained in the triggering content of the interface control by clicking it, jump out of the graphic information contained in the triggering content of the interface control by clicking it, and jump out of the content editing information in the document by drawing path information.

[0128] After adding response content to text controls, graphic controls and path information, the present application will generate a style file, wherein the style file is a file that can be recognized by the terminal device 110 or the server 130 and display the interface controls. The file suffix may be .c. The terminal device 110 or the server 130 may record the style file on the interface, wherein the style file includes style information and triggered response content information.

[0129] In step S250: the style file is loaded on the interface to generate interface controls.

[0130] After the style file is generated, the terminal device 110 or the server 130 can load the style file on the interface to generate the interface control. The style information of the generated interface control is the style information in the view object file in step S220. The response content is the content added in step S240.

[0131] like Figure 7 As shown, Figure 7 The interface control diagram generated by this application is schematically shown.

[0132] As the use of interface controls continues to be streamlined, many interface controls used on mobile phones can be completed directly through different operations on controls instead of multiple clicks to reach the specified link. For example, by clicking an interface control, you can enter the corresponding link, and by double-clicking an interface control, you can call up the editing command. However, due to the limited space available for interface controls, it is impossible to trigger adjustments to more content.

[0133] refer to Figure 7 The interface control of the present application is about the interface control of a web page, which includes a secondary submenu, such as text, graphics, video, etc., and then there are specific links below.

[0134] The interface control of the present application includes a text control 710 with a text content of A, wherein the style of the text control 710 is that the font is Kaiti and the color is black. The interface control also includes a graphic control 720 with a circular shape, wherein the style information of the graphic control 720 is that the size of the graphic is 4 cm in diameter and the color is white. Moreover, in the interface control, the graphic is located 5 cm directly below the text. Among them, the present application adds response content to the text control 710, for example, when clicked, it directly jumps to the text submenu of the web page, and the user can directly select the text content to be viewed. When double-clicked, it can jump to the specific article link in the text submenu. Similarly, when clicking the graphic, it jumps to the graphic submenu of the web page, and the user can directly select the picture content to be viewed. When double-clicked, it can jump to the specific picture link in the graphic submenu. Of course, the present application can also set the corresponding response content when the text control 710 and the graphic control 720 are lightly touched or long pressed.

[0135] Among them, when the blank area 740 of the interface control of the present application is clicked, it directly jumps to the homepage of the webpage. When the present application draws the path information 730, for example, when drawing the path information 730 of the text control to the graphic control 720, it can jump to the secondary menu corresponding to the video. Moreover, the present application can make different adjustments according to different path information 730. For example, a straight line can be adjusted to a long video, and a curve can be adjusted to a short video.

[0136] Therefore, the interface controls generated by the present application can achieve a variety of styles and triggering methods, and different path information can be set to respond to different triggering contents. When using, the user can directly use his finger to draw a straight line, curve, or broken line from the text control 710 to the graphic control 720 on the interface to trigger different contents. When the user touches the text control 710 during drawing, a drawing starting point will be lit, and the user can directly draw the path information.

[0137] In one embodiment of the present application, after generating the style file, the method further includes:

[0138] A proxy file is set for the style file, and the proxy file is responsive based on the click.

[0139] The purpose of setting up a proxy file is to avoid directly exposing the style file and protect the style file. The outside world can use the proxy file to generate interface controls and click to access them. For example, the style file corresponding to the interface control obtained by the user is a proxy file. The user can only use it, but cannot edit it. This improves the security of using style files.

[0140] In the technical solution provided in the embodiment of the present application, the present application obtains a control creation request; based on the control creation request, establishes a view object file, the view object file includes a text control, a graphic control and location information, and constructs the path information of the text control and the graphic control according to the location information; adds response content to the text control, the graphic control and the path information to generate a style file; finally, loads the style file on the interface to generate an interface control. Through the method of the present application, text controls, graphic controls and location information can be used to form controls, and the style information of the interface control can be expanded to avoid the style being too single; the path information of the text control and the graphic control is constructed using the location information, and the response content is added to the path information, which can expand the triggering mode of the interface control, realize the user drawing the path information to trigger different response content, expand the triggering mode of the interface control, realize the diversity of the interface control, and meet the user's design and use requirements for the interface control.

[0141] It should be noted that although the steps of the method in the present application are described in a specific order in the drawings, this does not require or imply that the steps must be performed in this specific order, or that all the steps shown must be performed to achieve the desired results. Additionally or alternatively, some steps may be omitted, multiple steps may be combined into one step, and / or one step may be decomposed into multiple steps, etc.

[0142] The above part introduces the content of the interface control generation method of this application, and the following part will continue to introduce the content of the interface control generation device of this application.

[0143] According to one aspect of an embodiment of the present application, an interface control generating device 800 is provided. Figure 8 The structure block diagram of the interface control generation device provided in the embodiment of the present application is schematically shown. Figure 8 As shown, the device comprises:

[0144] An acquisition module 810 is used to acquire a control creation request;

[0145] Establishing module 820, used to establish a view object file based on the control creation request, the view object file includes a text control, a graphic control and position information, the position information is used to indicate the relative position of the text control and the graphic control;

[0146] A construction module 830, used for constructing path information of a text control and a graphic control according to the position information;

[0147] The style generation module 840 is used to add response content to the text control, graphic control and path information and generate a style file;

[0148] The control generation module 850 is used to load the style file on the interface to generate interface controls.

[0149] In some embodiments of the present application, based on the above technical solution, the device further includes an option creation module, and the option creation module includes:

[0150] First-level option creation unit: used to create first-level options on the interface. First-level options include text options, graphic options and position options.

[0151] Secondary option creation unit: used to create a text secondary option under the text option, the text secondary option includes the style information of the text; to create a graphic secondary option under the graphic option, the graphic secondary option includes the style information of the graphic; to create a position secondary option under the position option, the position secondary option includes the relative position of the text and the graphic in the control.

[0152] In some embodiments of the present application, based on the above technical solution, the acquisition module 810 is also used to obtain the user's option information, and the user's option information includes the text secondary option, graphic secondary option and position secondary option selected by the user on the interface.

[0153] In some embodiments of the present application, based on the above technical solution, the device further includes a mapping establishment module, and the mapping establishment module includes:

[0154] A label pair establishment unit is used to establish a label pair and a mapping relationship between the label pair and a text secondary option, and to call out the label pair by clicking on the text secondary option;

[0155] A character pair establishment unit is used to establish a character pair and establish a mapping relationship between the character pair and the graphic secondary option, and call out the character pair by clicking the graphic secondary option;

[0156] The relative coordinate establishment unit is used to establish relative coordinate values ​​and establish a mapping relationship between the relative coordinate values ​​and the position secondary options, and to call out the relative coordinate values ​​by clicking the position secondary options.

[0157] In some embodiments of the present application, based on the above technical solution, the establishment module 820 includes:

[0158] An option acquisition unit, used to obtain user option information according to a control creation request;

[0159] A mapping acquisition unit, used for acquiring label pairs, character pairs and relative coordinate values ​​based on option information;

[0160] A creation unit is used to create a view object file using a combination of label pairs, character pairs and relative coordinate values.

[0161] In some embodiments of the present application, based on the above technical solution, the construction module 830 includes:

[0162] A line segment acquisition unit, used to acquire a path line segment corresponding to the path;

[0163] The drawing unit is used to draw a path segment with the text control as the starting point and the graphic control as the end point to obtain the path information.

[0164] In some embodiments of the present application, based on the above technical solution, the line segment acquisition unit is used to acquire user-defined path segments or preset path segments.

[0165] The specific details of the interface control generating device provided in each embodiment of the present application have been described in detail in the corresponding method embodiments and will not be repeated here.

[0166] The above part introduces the contents of the interface control generating device of this application, and the following will continue to introduce other aspects of this application.

[0167] According to one aspect of an embodiment of the present application, a computer-readable medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the method for generating an interface control in the above technical solution is implemented.

[0168] According to one aspect of an embodiment of the present application, an electronic device is provided, comprising: a processor; and a memory for storing executable instructions of the processor; wherein the processor is configured to execute an interface control generation method as in the above technical solution by executing the executable instructions.

[0169] According to one aspect of the embodiments of the present application, a computer program product or a computer program is provided, the computer program product or the computer program includes computer instructions, and the computer instructions are stored in a computer-readable storage medium. A processor of a computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the computer device executes the interface control generation method in the above technical solution.

[0170] Fig. 9 The structure block diagram of a computer system for implementing an electronic device according to an embodiment of the present application is schematically shown.

[0171] It should be noted that Fig. 9 The computer system 900 of the electronic device shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present application.

[0172] like Fig. 9 As shown, the computer system 900 includes a central processing unit 901 (CPU), which can perform various appropriate actions and processes according to the program stored in the read-only memory 902 (ROM) or the program loaded from the storage part 908 to the random access memory 903 (RAM). Various programs and data required for system operation are also stored in the random access memory 903. The central processing unit 901, the read-only memory 902 and the random access memory 903 are connected to each other through a bus 904. An input / output interface 905 (Input / Output interface, i.e., I / O interface) is also connected to the bus 904.

[0173] The following components are connected to the input / output interface 905: an input section 906 including a keyboard, a mouse, etc.; an output section 907 including a cathode ray tube (CRT), a liquid crystal display (LCD), etc., and a speaker; a storage section 908 including a hard disk, etc.; and a communication section 909 including a network interface card such as a LAN card, a modem, etc. The communication section 909 performs communication processing via a network such as the Internet. A drive 910 is also connected to the input / output interface 905 as needed. A removable medium 911, such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, etc., is installed on the drive 910 as needed so that a computer program read therefrom is installed into the storage section 908 as needed.

[0174] In particular, according to an embodiment of the present application, the process described in each method flow chart can be implemented as a computer software program. For example, an embodiment of the present application includes a computer program product, which includes a computer program carried on a computer readable medium, and the computer program contains a program code for executing the method shown in the flow chart. In such an embodiment, the computer program can be downloaded and installed from the network through the communication part 909, and / or installed from the removable medium 911. When the computer program is executed by the central processor 901, various functions defined in the system of the present application are executed.

[0175] It should be noted that the computer-readable medium shown in the embodiment of the present application may be a computer-readable signal medium or a computer-readable storage medium or any combination of the above two. The computer-readable storage medium may be, for example, but not limited to, a system, device or device of electricity, magnetism, light, electromagnetic, infrared, or semiconductor, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM), a flash memory, an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In the present application, a computer-readable storage medium may be any tangible medium containing or storing a program, which may be used by an instruction execution system, device or device or used in combination with it. In the present application, a computer-readable signal medium may include a data signal propagated in a baseband or as part of a carrier wave, wherein a computer-readable program code is carried. Such propagated data signals may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. Computer readable signal media may also be any computer readable medium other than computer readable storage media, which may send, propagate, or transmit programs for use by or in conjunction with an instruction execution system, apparatus, or device. The program code contained on the computer readable medium may be transmitted using any suitable medium, including but not limited to: wireless, wired, etc., or any suitable combination of the above.

[0176] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, function and operation of the system, method and computer program product according to various embodiments of the present application. In this regard, each box in the flow chart or block diagram can represent a module, a program segment or a part of a code, and the above-mentioned module, program segment or a part of a code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order from the order marked in the accompanying drawings. For example, two boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram or flow chart, and the combination of the boxes in the block diagram or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.

[0177] It should be noted that, although several modules or units of the equipment for action execution are mentioned in the above detailed description, this division is not mandatory. In fact, according to the embodiments of the present application, the features and functions of two or more modules or units described above can be embodied in one module or unit. On the contrary, the features and functions of one module or unit described above can be further divided into being embodied by multiple modules or units.

[0178] Through the description of the above implementation methods, it is easy for those skilled in the art to understand that the example implementation methods described here can be implemented by software or by combining software with necessary hardware. Therefore, the technical solution according to the implementation methods of the present application can be embodied in the form of a software product, which can be stored in a non-volatile storage medium (which can be a CD-ROM, a USB flash drive, a mobile hard disk, etc.) or on a network, and includes several instructions to enable a computing device (which can be a personal computer, a server, a touch terminal, or a network device, etc.) to execute the method according to the implementation methods of the present application.

[0179] Those skilled in the art will readily appreciate other embodiments of the present application after considering the specification and practicing the invention disclosed herein. The present application is intended to cover any modification, use or adaptation of the present application, which follows the general principles of the present application and includes common knowledge or customary technical means in the art that are not disclosed in the present application.

[0180] It should be understood that the present application is not limited to the precise structures that have been described above and shown in the drawings, and that various modifications and changes may be made without departing from the scope thereof. The scope of the present application is limited only by the appended claims.< / c> < / c> < / c> < / c>

Claims

1. A method for generating interface controls, It is characterized in that include: Get the control creation request; Based on the control creation request, a view object file is established, wherein the view object file includes a text control, a graphic control and position information, wherein the position information is used to indicate the relative position of the text control and the graphic control; Constructing path information of the text control and the graphic control according to the position information, wherein the path information refers to a route from the text control to the graphic control; Adding response content to the text control, the graphic control and the path information to generate a style file, wherein the response content is based on content triggered by clicking or drawing the text control, the graphic control and the path information; The style file is loaded onto the interface to generate interface controls.

2. The interface control generation method according to claim 1, It is characterized in that Before obtaining a control creation request, the method includes: Creating first-level options on the interface, wherein the first-level options include text options, graphic options, and position options; A text secondary option is created under the text option, and the text secondary option includes the style information of the text; a graphic secondary option is created under the graphic option, and the graphic secondary option includes the style information of the graphic; a position secondary option is created under the position option, and the position secondary option includes the relative position of the text and the graphic in the control.

3. The interface control generation method according to claim 2, It is characterized in that Get the control creation request, including: The user's option information is obtained, where the user's option information includes a text secondary option, a graphic secondary option, and a position secondary option selected by the user on the interface.

4. The interface control generation method according to claim 2, It is characterized in that Before creating a view object file based on the control creation request, the method further includes: Establishing a label pair, and establishing a mapping relationship between the label pair and the text secondary option, and calling out the label pair by clicking the text secondary option; Establishing a character pair, and establishing a mapping relationship between the character pair and the graphic secondary option, and calling out the character pair by clicking the graphic secondary option; A relative coordinate value is established, and a mapping relationship between the relative coordinate value and the secondary position option is established, and the relative coordinate value is called out by clicking the secondary position option.

5. The interface control generation method according to claim 4, It is characterized in that Based on the control creation request, a view object file is created, including: Obtaining user option information according to the control creation request; Acquire label pairs, character pairs and relative coordinate values ​​based on the option information; The view object file is established by combining the label pair, the character pair and the relative coordinate value.

6. The interface control generation method according to claim 1, It is characterized in that Constructing path information of the text control and the graphic control according to the location information includes: Get the path segment corresponding to the path; The path segment is drawn with the text control as the starting point and the graphic control as the end point to obtain the path information.

7. The method for generating an interface control according to claim 6, It is characterized in that Get the path segments corresponding to the path, including: Gets a user-defined path segment or a preset path segment.

8. An interface control generating device, It is characterized in that include: Acquisition module, used to obtain control creation request; A creation module, used to create a view object file based on the control creation request, wherein the view object file includes a text control, a graphic control and position information, wherein the position information is used to indicate the relative position of the text control and the graphic control; A construction module, used to construct path information of the text control and the graphic control according to the position information, wherein the path information refers to a route from the text control to the graphic control; A style generation module, used to add response content to the text control, graphic control and path information to generate a style file, wherein the response content is based on content triggered by clicking or drawing the text control, graphic control and path information; The control generation module is used to load the style file on the interface to generate interface controls.

9. A computer-readable medium having a computer program stored thereon, wherein the computer program, when executed by a processor, implements the interface control generation method described in any one of claims 1 to 7.

10. An electronic device, It is characterized in that include: processor; as well as A memory, configured to store executable instructions of the processor; Wherein, the processor is configured to execute the interface control generation method described in any one of claims 1 to 7 by executing the executable instructions.