A method and device for generating an attribute table

By creating the target configuration file and using the content dictionary to generate the attribute table control, the problem of large amount of coding data in writing the attribute table control is solved, the reuse and extended maintenance of the control are realized, and the coding workload is reduced.

CN112988142BActive Publication Date: 2024-09-27SOUTH SURVEYING & MAPPING INSTR
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202110419452.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-04-19
Publication Date
2024-09-27
Estimated Expiration
2041-04-19

AI Technical Summary

Technical Problem

In the prior art, the amount of coding data written in the attribute table control is large, resulting in a large coding workload, making it impossible to reuse the control and making it difficult to expand and maintain.

Method used

Create a target configuration file by responding to the property sheet control construction instructions, and generate a property sheet control based on the target configuration file and the preset content dictionary. When receiving a click instruction from the target object, call the property sheet control to generate a property sheet corresponding to the target object. , supports the update of attribute change instructions.

Benefits of technology

It reduces the coding workload, realizes the reuse and extended maintenance of controls, and improves the efficiency of attribute table generation.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN112988142B
    Figure CN112988142B
Patent Text Reader

Abstract

The present invention discloses a method and device for generating an attribute table, comprising: creating a target configuration file in response to a received attribute table control construction instruction; generating an attribute table control according to the target configuration file and a preset content dictionary; and when a click instruction for any target object is received, calling the attribute table control to generate an attribute table corresponding to the target object, thereby reducing the coding workload and more effectively realizing control reuse and expansion maintenance.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of updating property table controls, and in particular to a property table generating method and device. Background Art

[0002] In the fields of GIS (Geographic Information System), surveying and mapping, etc., the multiple surveying and mapping scenes or models constructed usually include a wide variety of ground objects. To facilitate user viewing and operation, their attributes can be displayed through attribute table controls. Common attribute table controls usually include two columns and multiple rows. The first column represents the name of the attribute, the second column represents the value of the attribute, and each row represents an attribute.

[0003] The attributes displayed by the attribute table control may include multiple types, such as integers, strings, drop-down selection boxes, selection boxes, etc. In the prior art, the writing of an attribute table control is usually completed by hard coding, that is, the elements that need to be displayed are added by writing codes to generate the corresponding attribute table control, which includes specific data display items and fixed display items, that is, an attribute table control can only display specific attributes of land objects.

[0004] When the amount of coded data used to generate the above attribute table increases exponentially with the information to be displayed, the workload of coders is large, and the data cannot be reused and is difficult to expand and maintain. Summary of the invention

[0005] The present invention provides a method and device for generating an attribute table, which solves the technical problems in the prior art that the encoding workload is large, the control cannot be reused, and it is not easy to expand and maintain due to the large amount of encoding data written by the attribute table control.

[0006] The present invention provides a method for generating an attribute table, comprising:

[0007] In response to the received property sheet control building instruction, create a target configuration file;

[0008] Generate a property table control according to the target configuration file and a preset content dictionary;

[0009] When a click instruction for any target object is received, the property table control is called to generate a property table corresponding to the target object.

[0010] Optionally, the content dictionary includes a plurality of attribute key-value pairs, and the attribute key-value pairs include attribute keys; and the step of generating an attribute table control according to the target configuration file and the preset content dictionary includes:

[0011] Parsing the target configuration file to obtain multiple attribute formats;

[0012] Determine a connection attribute key corresponding to the attribute format from the plurality of attribute keys;

[0013] A connection is established between the connection property key and the property format to generate a property table control.

[0014] Optionally, the attribute key-value pair further includes an attribute value, and when a click instruction for any target object is received, the step of calling the attribute table control to generate an attribute table corresponding to the target object includes:

[0015] When a click instruction for any target object is received, the attribute table control is called to search the content dictionary using the name of the target object as a keyword to determine the target attribute key corresponding to the keyword;

[0016] Determine a target attribute value corresponding to the target attribute key from the plurality of attribute values;

[0017] Determine a target attribute format connected to the target attribute key from a plurality of the attribute formats;

[0018] The target attribute key and the target attribute value are used to generate an attribute table according to the target attribute format.

[0019] Optionally, the method further includes:

[0020] When a property change instruction is received, the property table control is updated according to the property change instruction.

[0021] Optionally, the target configuration file includes a first-layer label, a plurality of second-layer labels, and a plurality of third-layer labels;

[0022] The second-layer tag is a subtag of the first-layer tag, and the third-layer tag is a subtag of the second-layer tag.

[0023] The present invention also provides a device for generating an attribute table, comprising:

[0024] A configuration file building module, used for responding to the received property sheet control building instruction and creating a target configuration file;

[0025] An attribute table control generating module, used for generating an attribute table control according to the target configuration file and a preset content dictionary;

[0026] The property table generating module is used to call the property table control to generate a property table corresponding to any target object when receiving a click instruction for the target object.

[0027] Optionally, the content dictionary includes a plurality of attribute key-value pairs, and the attribute key-value pairs include attribute keys; and the attribute table control generating module includes:

[0028] A parsing submodule, used for parsing the target configuration file to obtain multiple attribute formats;

[0029] A connection attribute key determination submodule, used to determine a connection attribute key corresponding to the attribute format from a plurality of the attribute keys;

[0030] The attribute table control generating submodule is used to establish a connection between the connection attribute key and the attribute format to generate an attribute table control.

[0031] Optionally, the attribute key-value pair further includes an attribute value, and the attribute table generating module includes:

[0032] A target attribute key determination submodule is used for, when receiving a click instruction for any target object, calling the attribute table control to search the content dictionary with the name of the target object as a keyword, and determining the target attribute key corresponding to the keyword;

[0033] A target attribute value determination submodule, used to determine a target attribute value corresponding to the target attribute key from a plurality of the attribute values;

[0034] A target attribute format determination submodule, used to determine a target attribute format connected to the target attribute key from a plurality of the attribute formats;

[0035] The attribute table generation submodule is used to generate an attribute table according to the target attribute format by using the target attribute key and the target attribute value.

[0036] Optionally, the device further comprises:

[0037] The property table control updating module is used for updating the property table control according to the property change instruction when receiving the property change instruction.

[0038] Optionally, the target configuration file includes a first-layer label, a plurality of second-layer labels, and a plurality of third-layer labels;

[0039] The second-layer tag is a subtag of the first-layer tag, and the third-layer tag is a subtag of the second-layer tag.

[0040] It can be seen from the above technical solutions that the present invention has the following advantages:

[0041] The present invention creates a target configuration file in response to a received attribute table control construction instruction; generates an attribute table control according to the target configuration file and a content dictionary; and when a click instruction for any target object is received, the attribute table control is called to determine the specific attribute format and attribute value of the target object from the content dictionary and the target configuration file, and an attribute table corresponding to the target object is generated. Thus, the technical problems in the prior art that the large amount of coding data written by the attribute table control leads to a large coding workload, the control cannot be reused, and the expansion and maintenance are not easy are solved, the coding workload is reduced, and the control reuse and expansion and maintenance are more effectively realized. BRIEF DESCRIPTION OF THE DRAWINGS

[0042] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative labor.

[0043] Figure 1 A flowchart of a method for generating an attribute table provided in the first embodiment of the present invention;

[0044] Figure 2 A flowchart of a method for generating an attribute table provided in Embodiment 2 of the present invention;

[0045] Figure 3 A schematic diagram of displaying an attribute table provided in the second embodiment of the present invention;

[0046] Figure 4 This is a structural block diagram of an attribute table generating device provided in Embodiment 3 of the present invention. DETAILED DESCRIPTION

[0047] The embodiment of the present invention provides a method and device for generating a property table, which is used to solve the technical problems in the prior art that the coding workload is large due to the large amount of coding data written by the property table control, the control cannot be reused, and it is not easy to expand and maintain.

[0048] In order to make the purpose, features and advantages of the present invention more obvious and easy to understand, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the embodiments described below are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0049] See also Figure 1 , Figure 1 A flowchart of a method for generating an attribute table provided in Embodiment 1 of the present invention.

[0050] The present invention provides a method for generating an attribute table, comprising:

[0051] Step 101, in response to the received property table control construction instruction, create a target configuration file;

[0052] The property table control construction instruction refers to a selection instruction for selecting the properties to be displayed before the user constructs the required property table control, or a property creation instruction for creating a new display property.

[0053] In the embodiment of the present invention, when receiving the property table control construction instruction input by the user, the property format that the property table control can display can be determined based on the property table control construction instruction, and the corresponding target configuration file can be created.

[0054] Step 102, generating a property table control according to the target configuration file and the preset content dictionary;

[0055] After obtaining the target configuration file, only the attribute format of the attribute table control is obtained, that is, what attributes can be displayed, but the specific values ​​of the attributes are not supplemented. At this time, the attribute format can be provided with a data source basis based on the connection between the preset content dictionary and the target configuration file to generate the attribute table control.

[0056] The property table control refers to a control that can display a specific property description of a selected target object in a property format and a property key-value pair.

[0057] Step 103: when a click instruction for any target object is received, the property table control is called to generate a property table corresponding to the target object.

[0058] In the embodiment of the present invention, when a user clicks a target object, it indicates that the user needs to display specific properties of the target object. At this time, based on the position specified by the click instruction, the object corresponding to the position can be further determined as the target object.

[0059] In the specific implementation, after determining the target object specified by the click instruction, the attribute table control can be called to obtain the target key value corresponding to the target object from the content dictionary, and further based on the attribute value represented by the target key value and the attribute format connected to the target key value, the attribute table corresponding to the target object is generated.

[0060] In the embodiment of the present invention, in response to the received attribute table control construction instruction, a target configuration file is created; an attribute table control is generated according to the target configuration file and the content dictionary, and when a click instruction for any target object is received, the attribute table control is called to determine the specific attribute format and attribute value of the target object from the content dictionary and the target configuration file, and an attribute table corresponding to the target object is generated. This solves the technical problems in the prior art that the large amount of coding data written by the attribute table control leads to a large coding workload, the control cannot be reused, and it is not easy to expand and maintain, reduces the coding workload, and more effectively realizes the reuse and expansion maintenance of the control.

[0061] See also Figure 2 , Figure 2 A flowchart of a method for generating an attribute table provided in Embodiment 2 of the present invention.

[0062] The present invention provides a method for generating an attribute table, comprising:

[0063] Step 201, in response to the received property table control construction instruction, create a target configuration file;

[0064] In an embodiment of the present invention, the target configuration file includes a first-layer tag, multiple second-layer tags and multiple third-layer tags; wherein the second-layer tag is a sub-tag of the first-layer tag, and the third-layer tag is a sub-tag of the second-layer tag.

[0065] In the embodiment of the present invention, the first-layer label Attribute has the following attributes, and the scope of influence is the attribute name and group name of the first column:

[0066] The format of ROOT_KEY_COLOR is "#0130fc", which means the color of the attribute name.

[0067] The format of ROOT_KEY_BOLD is 0 or 1, 1 means bold, 0 means non-bold.

[0068] The second-level tag GROUP is a subtag of the Attribute tag. Each GROUP represents a group of attributes. GROUP has the following attributes, among which GROUP_KEY_COLOR and GROUP_KEY_BOLD have higher priority than ROOT_KEY_COLOR and ROOT_KEY_BOLD. That is, if both GROUP_KEY_COLOR and ROOT_KEY_COLOR are defined, GROUP_KEY_COLOR takes precedence:

[0069] The format of NAME is a string, which indicates the display name of the group.

[0070] The format of GROUP_KEY_COLOR is "#0130fc", which indicates the color of the group display name.

[0071] The format of GROUP_KEY_BOLD is 0 or 1, 1 means bold, and 0 means no bold.

[0072] The format of VISIBLE_LINK_KEY is a string, which indicates a key name in the content dictionary and is used together with VISIBLE_LINK_VALUE.

[0073] The format of VISIBLE_LINK_VALUE is a CSV string, which represents a set of values. When the value corresponding to the key name VISIBLE_LINK_KEY in the content dictionary is in the VISIBLE_LINK_VALUE set, the current attribute is displayed, otherwise it is hidden. For example: VISIBLE_LINK_VALUE = "1,2,3".

[0074] The third-level tag ITEM is a subtag of the GROUP tag. It represents a specific attribute. ITEM has the following attributes:

[0075] The format of NAME is a string, which indicates the display name of the attribute.

[0076] TYPE represents the attribute element type, and its value is an integer from 1 to 12. 1 represents a text edit box, 2 represents a drop-down combo box (content can be customized), 3 represents a double-precision floating point number fine-tuning box, 4 represents a yes / no drop-down box, 5 represents a date and time box, 6 represents a drop-down combo box with fixed content, 7 represents a drop-down combo box with fixed images, 8 represents a text display label, 9 represents a color display box, 10 represents a point coordinate (X, Y, Z) box, 11 represents a Boolean box, and 12 represents an integer box.

[0077] DATA_DIC_KEY_NAME indicates the key name corresponding to the value of this attribute in the content dictionary.

[0078] The format of KEY_COLOR is "#0130fc", which means the color of the attribute name. It has priority over ROOT_KEY_COLOR. That is, if both ROOT_KEY_COLOR and KEY_COLOR are defined, KEY_COLOR takes precedence.

[0079] The format of KEY_BOLD is 0 or 1, 1 means bold, 0 means non-bold, and it takes precedence over ROOT_KEY_BOLD. That is, if both ROOT_KEY_BOLD and KEY_BOLD are defined, KEY_BOLD takes precedence.

[0080] DEFAULT_VALUE The default value.

[0081] The format of VISIBLE_LINK_KEY is a string, which indicates a key name in the content dictionary and is used together with VISIBLE_LINK_VALUE.

[0082] The format of VISIBLE_LINK_VALUE is a CSV string, which represents a set of values. When the value corresponding to the key name VISIBLE_LINK_KEY in the content dictionary is in the VISIBLE_LINK_VALUE set, the current attribute is displayed, otherwise it is hidden. For example: VISIBLE_LINK_VALUE = "1,2,3".

[0083] The EDIT format is 0 or 1, 1 means editable, and 0 means read-only.

[0084] The DESC format is a string, which represents the description information of the attribute. When you click a specified attribute, the description information of the attribute will be displayed in the blank area below.

[0085] MINIMUM is exclusive to integer boxes and double precision spin boxes, and is the minimum value of the range.

[0086] MAXIMUM is exclusive to integer boxes and double precision spin boxes, and is the maximum value of the range.

[0087] DECIMALS_VALUE The number of decimal places for the double precision spinner.

[0088] DEFAULT_LIST is dedicated to the fixed content drop-down combo box, with default initialization content and CSV format string, for example: Beijing 54, Xi'an 80, Country 2000.

[0089] DATA_DIC_DEFAULT_LIST_KEY_NAME is dedicated to the drop-down combo box and indicates the key name corresponding to the initialization content of the drop-down list box in the content dictionary.

[0090] DATA_DIC_KEY_TYPE is dedicated to the drop-down list box and is used to specify whether the value corresponding to DATA_DIC_KEY_NAME in the content dictionary is the index of the drop-down box (0) or text (1). The default is index.

[0091] DATA_REGEXP represents a regular expression, which is dedicated to text boxes and is used to control the format of input information.

[0092] The file format of the target configuration file may be extensible markup language XML.

[0093] Step 202, generating a property table control according to the target configuration file and the preset content dictionary;

[0094] Furthermore, the content dictionary includes a plurality of attribute key-value pairs, each of which includes an attribute key and an attribute value. Step 202 may include the following sub-steps:

[0095] Parse the target configuration file to obtain multiple attribute formats;

[0096] Determining a join attribute key corresponding to an attribute format from among the plurality of attribute keys;

[0097] Establish a connection between the property key and the property format to generate a property table control.

[0098] In the embodiment of the present invention, the target configuration file can be parsed to obtain multiple attribute formats therein, and determine which attribute formats can be displayed by the attribute table control. Then, the connection attribute key corresponding to the attribute format is determined from the multiple attribute key-value pairs stored in the content dictionary, and the connection between the connection attribute key and the attribute format is established to provide a display data basis for the attribute format and generate the attribute table control.

[0099] It is worth mentioning that the attribute table control can be used in surveying and mapping software such as GIS.

[0100] In the specific implementation, the initialization operation of the property table control can also be completed by using the void init(const char*cXmlPath,constIDictionary&dicValue) method instance. The specific steps are as follows:

[0101] 1. Clear existing control elements;

[0102] 2. Read the cXmlPath configuration file content and the ROOT_KEY_COLOR and ROOT_KEY_BOLD properties of the Attribute top-level tag and save them;

[0103] 3. Read the cXmlPath configuration file content and the Group tag and attributes of Attribute's subtag and generate the corresponding attribute group control;

[0104] 4. Read the cXmlPath configuration file content and the Group's sub-tag item tag and its attributes and generate the corresponding property control. Match the corresponding property control implementation class through the value of the TYPE attribute. Get the corresponding content from dicValue through the value of DATA_DIC_KEY_NAME as the value of the property control. Bind the property control to the value of ATA_DIC_KEY_NAME. Set other properties of the property control, such as color, bold, etc.

[0105] 5. Repeat steps 3 and 4 until all property controls are generated and the initialization of the entire property table is completed.

[0106] Step 203, when a click instruction for any target object is received, the attribute table control is called to search the content dictionary using the name of the target object as a keyword to determine the target attribute key corresponding to the keyword;

[0107] In the embodiment of the present invention, when a user click instruction for any target object is received, the clicked target object is determined, and the attribute table control is called to search the content dictionary using the name of the target object as a keyword to determine the target attribute key corresponding to the keyword.

[0108] Step 204, determining a target attribute value corresponding to the target attribute key from the multiple attribute values;

[0109] After the target attribute key is determined, in order to determine the specific value corresponding to the target attribute key, the target attribute value corresponding to the target attribute key may be determined from multiple attribute values.

[0110] Step 205, determining a target attribute format connected to the target attribute key from a plurality of attribute formats;

[0111] In the embodiment of the present invention, the target attribute format connected to the target attribute key may be determined from a plurality of attribute formats of the target configuration file.

[0112] Step 206: Generate an attribute table according to the target attribute format using the target attribute key and the target attribute value.

[0113] In a specific implementation, the target attribute format and the target attribute value are used to generate a corresponding attribute table according to the attribute format corresponding to the target object.

[0114] Please refer to Figure 3 , Figure 3 This is a schematic diagram of displaying an attribute table in Embodiment 2 of the present invention.

[0115] The attribute table includes items such as overall, starting point information, end point information, solution parameters and baseline results.

[0116] Among them, the overall item can include four sub-items: processing status, start time, end time and duration, in which information such as date and time are displayed in different formats;

[0117] The starting point information item and the end point information item include the point ID and the file path of the enemy camp;

[0118] The solution parameters are displayed in bold, and optional boxes are added to "Use GPS", "Use GLONASS", "Use BeiDou" and "Whether to estimate the troposphere" to increase the flexibility of attribute display;

[0119] In the baseline result, in order to improve the accuracy of the solution, the attributes are displayed in the form of floating-point solution.

[0120] In another example of the present invention, the method further includes:

[0121] When a property change instruction is received, the property table control is updated according to the property change instruction.

[0122] In a specific implementation, after receiving the property change instruction, the change content that needs to be changed in the property table control can be determined according to the property change instruction.

[0123] If the changed content is the target configuration file, the corresponding tag in the target configuration file can be directly changed; if the changed content is the content dictionary, the corresponding attribute key and attribute value can be determined according to the changed content and further changed.

[0124] It is worth mentioning that in the process of updating the content dictionary, the void init(constIDictionary&dicValue) method can be used to update the key-value pairs in the content dictionary. The specific steps are as follows:

[0125] 1. Traverse all key-value pairs of dicValue;

[0126] 2. The system has saved the corresponding relationship between each attribute control and the key-value pair of the content dictionary, so the corresponding attribute control is obtained according to its key name to update the attribute content;

[0127] 3. Complete the update of all attribute controls corresponding to dicValue.

[0128] Optionally, you can also use the void setDataByKey(const char*cKey,const char*cValue) method to update a single specific attribute value. The specific steps are as follows:

[0129] 1. Get the property control bound to it through cKey;

[0130] 2. Update the value of the property control to cValue.

[0131] In the embodiment of the present invention, in response to the received attribute table control construction instruction, a target configuration file is created; an attribute table control is generated according to the target configuration file and the content dictionary, and when a click instruction for any target object is received, the attribute table control is called to determine the specific attribute format and attribute value of the target object from the content dictionary and the target configuration file, and an attribute table corresponding to the target object is generated. This solves the technical problems in the prior art that the large amount of coding data written by the attribute table control leads to a large coding workload, the control cannot be reused, and it is not easy to expand and maintain, reduces the coding workload, and more effectively realizes the reuse and expansion maintenance of the control.

[0132] See also Figure 4 , Figure 4 A structural block diagram of an attribute table generating device according to a third embodiment of the present invention is shown.

[0133] The present invention also provides a device for generating an attribute table, comprising:

[0134] The configuration file construction module 401 is used to create a target configuration file in response to the received property table control construction instruction;

[0135] The property table control generating module 402 is used to generate a property table control according to a target configuration file and a preset content dictionary;

[0136] The property table generating module 403 is used to call the property table control to generate a property table corresponding to the target object when receiving a click instruction for any target object.

[0137] Optionally, the content dictionary includes multiple attribute key-value pairs, and the attribute key-value pairs include attribute keys; the attribute table control generation module 402 includes:

[0138] The parsing submodule is used to parse the target configuration file and obtain multiple attribute formats;

[0139] A connection attribute key determination submodule, used for determining a connection attribute key corresponding to an attribute format from a plurality of attribute keys;

[0140] The attribute table control generation submodule is used to establish a connection between the attribute key and the attribute format to generate the attribute table control.

[0141] Optionally, the attribute key-value pair also includes an attribute value. The attribute table generating module 403 includes:

[0142] The target attribute key determination submodule is used to, when receiving a click instruction for any target object, call the attribute table control to search the content dictionary using the name of the target object as a keyword to determine the target attribute key corresponding to the keyword;

[0143] A target attribute value determination submodule, used to determine a target attribute value corresponding to a target attribute key from multiple attribute values;

[0144] A target attribute format determination submodule, used for determining a target attribute format connected with a target attribute key from a plurality of attribute formats;

[0145] The attribute table generation submodule is used to generate an attribute table according to the target attribute format by using the target attribute key and the target attribute value.

[0146] Optionally, the device further comprises:

[0147] The property table control updating module is used to update the property table control according to the property change instruction when receiving the property change instruction.

[0148] Optionally, the target configuration file includes a first-layer label, a plurality of second-layer labels, and a plurality of third-layer labels;

[0149] The second-layer label is a sub-label of the first-layer label, and the third-layer label is a sub-label of the second-layer label.

[0150] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the above-described devices and modules can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.

[0151] In the several embodiments provided by the present invention, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.

[0152] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0153] As described above, the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit the same. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that the technical solutions described in the aforementioned embodiments may still be modified, or some of the technical features thereof may be replaced by equivalents. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention.

Claims

1. A method for generating an attribute table, It is characterized in that include: In response to the received property sheet control building instruction, create a target configuration file; The target configuration file includes a first-layer tag, a plurality of second-layer tags, and a plurality of third-layer tags; wherein the second-layer tag is a sub-tag of the first-layer tag, and the third-layer tag is a sub-tag of the second-layer tag; Generate a property table control according to the target configuration file and a preset content dictionary; When a click instruction for any target object is received, the attribute table control is called to generate an attribute table corresponding to the target object; The content dictionary includes a plurality of attribute key-value pairs, and the attribute key-value pairs include attribute keys; the step of generating an attribute table control according to the target configuration file and the preset content dictionary includes: Parsing the target configuration file to obtain attribute formats corresponding to the first layer tag, the second layer tag, and the third layer tag respectively; Determine a connection attribute key corresponding to each attribute format from the plurality of attribute keys; Establishing a connection between the attribute format of the second-layer tag and the connection attribute key to generate an attribute group control; Establishing a connection between the attribute format of the third layer tag associated with the second layer tag and the connection attribute key to generate an attribute control; Jump to execute the step of establishing the attribute format of the second layer tag and connecting the connection attribute key to generate an attribute group control, until all the attribute controls are generated to obtain an attribute table control.

2. The attribute table generation method according to claim 1, It is characterized in that The attribute key-value pair also includes an attribute value. When a click instruction for any target object is received, the step of calling the attribute table control to generate an attribute table corresponding to the target object includes: When a click instruction for any target object is received, the attribute table control is called to search the content dictionary using the name of the target object as a keyword to determine the target attribute key corresponding to the keyword; Determine a target attribute value corresponding to the target attribute key from the plurality of attribute values; Determine a target attribute format connected to the target attribute key from a plurality of the attribute formats; The target attribute key and the target attribute value are used to generate an attribute table according to the target attribute format.

3. The attribute table generation method according to claim 1, It is characterized in that The method further comprises: When a property change instruction is received, the property table control is updated according to the property change instruction.

4. A device for generating an attribute table, It is characterized in that include: A configuration file building module, used for responding to the received property sheet control building instruction and creating a target configuration file; The target configuration file includes a first-layer tag, a plurality of second-layer tags, and a plurality of third-layer tags; wherein the second-layer tag is a sub-tag of the first-layer tag, and the third-layer tag is a sub-tag of the second-layer tag; An attribute table control generating module, used for generating an attribute table control according to the target configuration file and a preset content dictionary; An attribute table generating module, for invoking the attribute table control to generate an attribute table corresponding to any target object when receiving a click instruction for the target object; The content dictionary includes a plurality of attribute key-value pairs, and the attribute key-value pairs include attribute keys; the attribute table control generation module is specifically used to: Parsing the target configuration file to obtain attribute formats corresponding to the first layer of tags, the second layer of tags, and the third layer of tags respectively; Determine a connection attribute key corresponding to each attribute format from the plurality of attribute keys; Establishing a connection between the attribute format of the second-layer tag and the connection attribute key to generate an attribute group control; Establishing a connection between the attribute format of the third layer tag associated with the second layer tag and the connection attribute key to generate an attribute control; Jump to execute the step of establishing the attribute format of the second layer tag and connecting the connection attribute key to generate an attribute group control, until all the attribute controls are generated to obtain an attribute table control.

5. The attribute table generating device according to claim 4, It is characterized in that The attribute key-value pair also includes an attribute value, and the attribute table generating module includes: A target attribute key determination submodule is used for, when receiving a click instruction for any target object, calling the attribute table control to search the content dictionary with the name of the target object as a keyword, and determining the target attribute key corresponding to the keyword; A target attribute value determination submodule, used to determine a target attribute value corresponding to the target attribute key from a plurality of the attribute values; A target attribute format determination submodule, used to determine a target attribute format connected to the target attribute key from a plurality of the attribute formats; The attribute table generation submodule is used to generate an attribute table according to the target attribute format by using the target attribute key and the target attribute value.

6. The attribute table generating device according to claim 4, It is characterized in that The device also includes: The property table control updating module is used for updating the property table control according to the property change instruction when receiving the property change instruction.