CN106528183B - Method and device for creating control and computer program - Google Patents

Method and device for creating control and computer program Download PDF

Info

Publication number
CN106528183B
CN106528183B CN201611226887.1A CN201611226887A CN106528183B CN 106528183 B CN106528183 B CN 106528183B CN 201611226887 A CN201611226887 A CN 201611226887A CN 106528183 B CN106528183 B CN 106528183B
Authority
CN
China
Prior art keywords
control
sequence
data
data file
variables
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201611226887.1A
Other languages
Chinese (zh)
Other versions
CN106528183A (en
Inventor
李进
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Bangyan Technology Co ltd
Original Assignee
Bangyan Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Bangyan Technology Co ltd filed Critical Bangyan Technology Co ltd
Priority to CN201611226887.1A priority Critical patent/CN106528183B/en
Priority to PCT/CN2016/112912 priority patent/WO2018119828A1/en
Publication of CN106528183A publication Critical patent/CN106528183A/en
Application granted granted Critical
Publication of CN106528183B publication Critical patent/CN106528183B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/30Creation or generation of source code
    • G06F8/38Creation or generation of source code for implementing user interfaces

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Stored Programmes (AREA)
  • Programmable Controllers (AREA)

Abstract

The invention discloses a method for creating a control. The method for creating the control comprises the steps of reading a data file displayed through the control and generating a data sequence corresponding to the data file; adding a term variable after each data item of the data sequence; generating sequence variables through item variables corresponding to data items in the data sequence one by one; and generating control parameters according to the sequence variables. By the method, the control parameters corresponding to the data files can be automatically generated, the labor cost is saved, and the working efficiency is improved.

Description

Method and device for creating control and computer program
Technical Field
The present invention relates to the field of information technologies, and in particular, to a method, an apparatus, and a computer program for creating a control.
Background
Generally, the creation of the control requires that the properties and the number are defined in advance according to the data file. In the development process, however, the data files need to be continuously modified according to the development flow; this makes the creation and use of controls very inconvenient.
For example, when a data file is read by a script language, the label items of the data file can be visually displayed through the control, and if the length of the interface is specified in advance, the label items of the data file may be displayed unattractive or incompletely displayed when changed.
Therefore, the general control creating mode is rigid and lacks flexibility, the use requirement cannot be well met under the scene that the attributes and the quantity are difficult to define in advance, and the situation that the data file changes is met, so that great use obstacle is caused.
Disclosure of Invention
The invention discloses a method for creating a control, which can automatically generate control parameters for a data file under the condition of giving the data file.
A method of creating a control, comprising: reading a data file displayed through the control, and generating a data sequence corresponding to the data file; adding a term variable after each data item of the data sequence; generating sequence variables through item variables corresponding to the data items in the data sequence one by one, and associating the sequence variables to the control; and generating control parameters according to the sequence variables.
Furthermore, the data files displayed through the control comprise a plurality of data files, and the data files are combined into a data file set; sequence variables corresponding to each data file in the data file set jointly form a set variable; the set variables are associated to a set control element; the set control is a combination of controls corresponding to all sequence variables included in the set variable.
Further, generating a control according to the control parameter; before generating the control, comparing the control parameter generation time with the data file storage time; and if the control parameter generation time is earlier than the data file storage time, generating a new control parameter.
An apparatus to create a control, comprising:
the data sequence generating module is used for reading the data file displayed through the control and generating a data sequence corresponding to the data file;
the item variable generation module is used for adding an item variable behind each data item of the data sequence;
the sequence variable generation module is used for generating sequence variables through item variables which correspond to the data items in the data sequence one by one;
the control parameter generating module is used for generating control parameters according to the sequence variables;
the control updating module is used for generating a control according to the control parameter; and before the control is generated, comparing the control parameter generation time with the data file storage time, and if the control parameter generation time is earlier than the data file storage time, generating a new control parameter.
Further comprising: the set variable generation module is used for generating set variables according to the sequence variables corresponding to each data file in the data file set; the data files displayed through the control comprise a plurality of data files, and the data files are combined into a data file set.
A computer program, the computer program being storable on a readable memory, the computer program being executable by the readable memory, the executing of the computer program comprising the steps of: reading a data file displayed through the control, and generating a data sequence corresponding to the data file; adding a term variable after each data item of the data sequence; generating sequence variables through item variables corresponding to the data items in the data sequence one by one, and associating the sequence variables to the control; and generating control parameters according to the sequence variables.
The computer program further comprises: set variables are generated from the set of data files.
The computer program further comprises: and comparing the control parameter generation time with the data file storage time to determine whether to generate a new control parameter.
The computer program further comprises: controls corresponding to the data files within the data file set are generated according to the set variables.
The invention has the advantages that:
1. control parameters are automatically generated for a given data file.
2. And realizing the creation of the control in a scene in which the control attribute cannot be determined in advance.
3. After the control is created, when the data file changes again, the control parameters can be changed accordingly, manual modification of the control parameters is not needed, a large amount of labor cost is saved, and development efficiency is improved.
4. In the event that the number of controls cannot be determined, the set variables are used, thereby eliminating the need to create set controls given the number of controls.
Drawings
FIG. 1 illustrates the main flow of the present invention;
FIG. 2 illustrates an apparatus for creating a control;
FIG. 3 illustrates a long data file;
fig. 4 shows a short data file.
Detailed Description
FIG. 1 illustrates the main flow of the method of the present invention for creating a control.
As shown in fig. 3 and 4, the number of bits of the data file, the number of rows of the data file, and the number of columns of the data file all affect parameters of the control for displaying the data file, such as the geometric width or length of the control, or the number of rows or columns of the control. Meanwhile, in the software development process, for a data file set formed by a group of data files, a group of controls corresponding to the data files one to one is needed, and the group of controls corresponding to the data files one to one form a set control.
The data files can be in various formats such as INI, XML, INF, CFG and the like, can be edited and stored, and can be normally read, stored and used in various computer operating systems such as DOS, windows, UNIX, LINUX and the like. The data file shown in fig. 3 includes 31 lines, 27 lines including character strings are included in the 31 lines, and 4 lines do not include empty lines of character strings.
During development, the data file shown in FIG. 3 requires a control with 27 tab items to be displayed. When a developer modifies the data file shown in fig. 3, once the number of rows (including rows with character strings and empty rows) changes, or the width of the rows changes, or a new column needs to be added to the data structure, the old control with specified parameters cannot display the data file ideally — for example, when the number of rows of the data file increases to 32 rows, or the data increases to 4 columns, the number of rows or columns of the data file cannot be displayed completely; or, the number of rows of the data file is reduced to 20 rows, which will empty several rows, and the control has an unnecessary blank area; or, the character strings of partial lines in the data file are too many, and the line needs to be changed, and at this time, the problem that some character strings cannot be completely displayed in a single line occurs.
As can be seen from fig. 3 and 4, when the data file is displayed by the control, the length of the display of the control is determined by the number of items or the number of columns of the data file. In the process of developing software, the control parameters and the number of controls need to be defined in advance, so once the control parameters and the number of controls need to be changed, the existing means only redefines the control parameters and the number of controls; this will consume a lot of manpower and unreasonably increase the development cycle; if the requirement is not satisfied when the parameters and the quantity of the controls need to be changed, the situation that the controls are not matched with the data file can be caused: if the display length of the control is too long and the data file is short, a large amount of blanks exist in the control, or if the length of the control is shorter than the data file, the data file cannot be completely displayed. Or in the case that part of the data file is deleted, the control corresponding to the data file still exists, and therefore the storage space is occupied. Or in the case of adding a part of data file, the part of added data file has no corresponding control, so that the data file cannot be displayed.
The mismatch in the number and parameters of controls and data files is intolerable to software development. Therefore, a universal tool can be created, and the aim of automatically generating a list of corresponding items of the data file according to the number and the content of the label items of the data file when the changeable data file is loaded can be achieved. To achieve this, it is necessary to quantify the changes in the data file and bind the quantified changes to the controls that generate the interface. Specifically, a set variable is created that is bound to the control that generated the interface. By operating on the set variable, a plurality of controls corresponding to the data files can be generated.
The patent provides a method, an apparatus and a computer program for creating a control. The invention is described in further detail below with reference to the following figures and detailed description:
the method for creating the control comprises the following steps: reading a data file displayed through the control, and generating a data sequence corresponding to the data file; referring to fig. 3, the data file may generate its corresponding data sequence S { [ "[ CommonHeader ]" ], [ "Format Version", "1" ], [ "[ Board Info ]" ]. The sequence includes all information of the data file.
And after the data sequence corresponding to the data file is obtained, adding an item variable to each data item in the data sequence. A line of information in the data file constitutes a data item; the data items, as previously described, may be either strings, empty lines, or have a specified format, or have a different number of lines. A single data file may have an indefinite number of data items, with an item variable added after each data item in the data sequence, i.e., an item variable added after each row of data information in a single data file.
The way to add term variables to the data sequence in fig. 3 is S { [ "[ Common Header ]", V1], [ "Format Version", "1", V2], [ ", V3], [" [ Board Info ] ", V4] }, where V1, V2, V3, and V4 … … are term variables. The parameters of each data item in the data sequence, such as the length of the character string included in the item, the display format of the item, the display line number of the item, the display column number of the item, and the like, can be recorded according to the specification of the item variable data developer. By adding the term variable after the data sequence, the sequence variable determined by the term variable can be obtained.
The sequence variables are determined by item variables that correspond one-to-one to the data items in the data sequence. The manner in which the term variables determine the sequence variables includes at least several. For example, the set of term variables constitutes the sequence variable, i.e., the sequence variable VS ═ V1, V2, V3, V4 … …; or the sequence variable is determined by the row number information and the column number information of the item variable; in summary, the sequence variables include parameters of the data file that are needed by the developer. The parameters of the data file may be used to determine control parameters.
In most cases, a data file often includes a plurality of data files. In the case where a plurality of data files are included, a set of controls needs to be specified to facilitate the respective display of the plurality of data files. And the set of all the data files displayed through the control is formed into a data file set, and the set variable is a variable based on the data file set. A set variable is a collection of sequence variables for all data files in a data file set.
The use of set variables solves the problem that the number of the controls cannot be determined when the controls are created. For example, the data file set includes several data files, and even if the sequence variables are used, the creation of the control cannot be realized because the number of the sequence variables cannot be specified. Meanwhile, if the data files are deleted or added in the development process, the controls corresponding to the deleted data files cannot be deleted in time; the newly added data file has no control displayed correspondingly; requiring new manual specification of new control parameters. This brings inconvenience to development.
And obtaining the sequence variable to generate the control parameter. Sequence variables because information of each item in the data sequence is recorded, control parameters can be generated through the sequence variables. In the process of generating control parameters through sequence variables, the sequence variables are assigned to the controls. Sequence variables carry data item information for a data sequence, but sequence variables are not directly equivalent to control parameters. The process of assigning the sequence variables to the control parameters is to establish a unique corresponding relationship between the sequence variables and the control parameters. The corresponding relation can be specified in advance by a developer, the developer can predefine a plurality of corresponding relations, and one corresponding relation can be selected if necessary.
When a plurality of data files are used, so that a data file set is formed, set variables are assigned to a centralized control piece in the same way, the data file set, the set variables and the centralized control piece are respectively a set of the data files, sequence variables and controls, the data files in the data file set, the sequence variables in the set variables and the controls in the centralized control piece establish a single corresponding relation, namely for one data file, the corresponding sequence variables and controls are uniquely corresponding in one operation process.
For the invention, once the sequence variables and the set variables are formed, the parameters of all the controls corresponding to the control parameters or the set controls can be formed in a mode of corresponding to the sequence variables and the set variables, so that the controls or the set controls can be formed. For those of ordinary skill in the art, where parameters have been determined, the control or set control will also be uniquely determined.
The parameter determination process and the control generation process of the primary control or set control are described above.
The present invention may be better implemented by those of ordinary skill in the art by referencing the foregoing description.
Due to the introduction of sequence variables, when a developer needs to modify a data file, the developer does not need to consider control parameters. The developer only needs to perform the process of updating the control once. The control update process may be performed by comparing the save time of the sequence variable with the save time of the data file. As described above, once a data file is updated, there will be a new retention time for the data file. And comparing the data file storage time with the sequence variable storage time, wherein if the data file storage time is later than the sequence variable storage time, namely the data file is updated after the sequence variable is generated, the sequence variable should be considered to be updated at the moment. The process of updating the sequence variables and the process items generated by the sequence variables described above, that is, the process of updating the sequence variables is completely equivalent to the process of generating the sequence variables.
Updating the set variables of the data file set can also be performed by comparing the saving time of the data file set with the saving time of the set variables, and the execution process is similar to the updating process of the sequence variables.
Because the data file set and the set variable are sets of the data file and the sequence variable, the update of the set variable can also be performed by respectively updating each sequence variable in the set variable, that is, by respectively comparing the saving time of each sequence variable in the set variable with the saving time of the data file in the corresponding data file set.
The updating of the set control not only includes updating of each sequence file, when the storage time is compared, and when the number of the data files in the data file set is found to be unequal to the number of the sequence variables included in the set variable, the number of the data files in the data file set is increased or decreased, the set variable can be updated in time at the moment, and therefore the control parameter corresponding to the new set control is generated.
The above-described control update and updating of the collective control are performed at the developer's designation. If the development system sets that updates of sequence variables and set variables must be performed after a data file or set of data files is modified, no specific update by the developer is required.
The control update and the centralized control update can also adopt other forms of triggering modes: for example, updates to a control or set of controls are automatically performed each time the software is started; when the target software needs to be generated, updating the control or the set control is automatically executed; when the data file is read so that the data file is displayed using the control, the update of the control or the collection control is automatically performed. The control update and the update triggering mode of the collective control are completely determined by the decision of a developer.
After the trigger mode is determined, the control updating can compare the storage time of the data file (data file set) and the sequence variable (set variable) to determine whether to update the sequence variable (set variable), or can directly update the sequence variable (set variable) without comparing the storage time of the data file (data file set) and the sequence variable (set variable). These can be set by a developer. For example, it may be set that when the source code is developed and the target code is generated, the update is performed without considering the storage time of the data file and the sequence variable; or when the control is used for displaying the data file, the control is updated without considering the storage time of the data file and the sequence variable.
The method for creating the control can solve the problem that the control cannot be created under the scene of determining the attribute and the number of the control in advance.
The device for creating the control comprises a data sequence generating module, a control module and a control module, wherein the data sequence generating module is used for generating a data sequence corresponding to a data file; the data sequence generation module reads the data file displayed through the control and generates a data sequence corresponding to the data file; referring to fig. 2, the data file may generate its corresponding data sequence S { [ "[ Common Header ]" ], [ "Format Version", "1" ], [ "[ Board Info ]" ]. The sequence includes all information of the data file.
The device for creating the control also comprises a item variable generation module for adding an item variable to each item of the data sequence; and after the data sequence corresponding to the data file is obtained, adding an item variable to each data item in the data sequence. A line of information in the data file constitutes a data item; the data items, as previously described, may be either strings, empty lines, or have a specified format, or have a different number of lines. A single data file may have an indefinite number of data items, with an item variable added after each data item in the data sequence, i.e., an item variable added after each row of data information in a single data file.
The way of adding the term variable to the data sequence as shown in fig. 2 is S { [ "[ Common Header ]", V1], [ "Format Version", "1", V2], [ ", V3], [" [ Board Info ] ", V4] }, where V1, V2, V3, and V4 … … are the term variables. The item variable may record parameters of each data item in the data sequence, such as a length of a character string included in the data item, a display format of the data item, a display line number of the data item, a display column number of the data item, and the like, according to the specification of a developer. By adding the term variable after the data sequence, the sequence variable determined by the term variable can be obtained.
The device for creating the control also comprises a sequence variable generation module for generating sequence variables according to item variables corresponding to the data items in the data sequence one by one; the sequence variables are determined by item variables that correspond one-to-one to the data items in the data sequence. The term variables may determine the sequence variables in a number of ways. For example, the set of term variables constitutes the sequence variable, i.e., the sequence variable VS ═ V1, V2, V3, V4 … …; or the sequence variable is determined by the row number information and the column number information of the item variable; or, the sequence variable comprises a term variable and is associated with a control; in summary, the sequence variables include parameters of the data file that are needed by the developer. The parameters of the data file may be used to determine control parameters.
In most cases, a data file often includes a plurality of data files. In the case where a plurality of data files are included, a set of controls needs to be specified to facilitate the respective display of the plurality of data files. And the set of all the data files displayed through the control is formed into a data file set, and the set variable is a variable based on the data file set. A set variable is a collection of sequence variables for all data files in a data file set.
The device for creating the control also comprises a control parameter generating module for generating the control parameters according to the sequence variables. After the sequence variables are obtained, control parameters can be generated. Sequence variables because information of each item in the data sequence is recorded, control parameters can be generated through the sequence variables. In the process of generating control parameters through sequence variables, the sequence variables are assigned to the controls. Sequence variables carry data item information for a data sequence, but sequence variables are not directly equivalent to control parameters. The process of assigning the sequence variables to the control parameters is to establish a unique corresponding relationship between the sequence variables and the control parameters. The corresponding relation can be specified in advance by a developer, the developer can predefine a plurality of corresponding relations, and one corresponding relation can be selected if necessary.
When a plurality of data files are used, so that a data file set is formed, set variables are assigned to a centralized control piece in the same way, the data file set, the set variables and the set control piece are sets of data files, sequence variables and controls, the data files in the data file set, the sequence variables in the set variables and the controls in the centralized control piece establish a single corresponding relation, namely for one data file, the corresponding sequence variables and controls are uniquely corresponding in one operation process.
For the invention, once the sequence variables and the set variables are formed, the parameters of all the controls corresponding to the control parameters or the set controls can be formed in a mode of corresponding to the sequence variables and the set variables, so that the controls or the set controls can be formed. For those of ordinary skill in the art, where parameters have been determined, the control or set control will also be uniquely determined.
The foregoing describes an apparatus for creating a control.
The present invention may be better implemented by those of ordinary skill in the art by referencing the foregoing description.
Due to the introduction of sequence variables, when a developer needs to modify a data file, the developer does not need to consider control parameters. The developer only needs to perform the process of updating the control once. The control update process may be performed by comparing the save time of the sequence variable with the save time of the data file. As described above, once a data file is updated, there will be a new retention time for the data file. And comparing the data file saving time with the sequence variable saving time, wherein if the data file saving time is later than the sequence variable saving time, namely, the data file is updated after the sequence variable is generated, the updated sequence variable is considered at the moment. The process of updating the sequence variables is the same as the process of generating the sequence variables described above, i.e., the process of updating the sequence variables is exactly the same as the process of generating the sequence variables.
Updating the set variables of the data file set is also performed by comparing the saving time of the data file set with the saving time of the set variables, and the execution process is similar to the updating process of the sequence variables.
Because the data file set and the set variable are sets of the data file and the sequence variable, the update of the set variable can also be performed by respectively updating each sequence variable in the set variable, that is, by respectively comparing the saving time of each sequence variable in the set variable with the saving time of the data file in the corresponding data file set.
The update of the collection control includes more than just the update of each sequence file. When the storage time is compared, when the number of the data files in the data file set is found to be unequal to the number of the sequence variables included in the set variables, the number of the data files in the data file set is increased or decreased, and the set variables can be updated in time at the moment, so that the control parameters corresponding to the new set controls are generated.
The above-described control update and updating of the collective control are performed at the developer's designation. If the development system sets that updates of sequence variables and set variables must be performed after a data file or set of data files is modified, no specific update by the developer is required.
The control update and the centralized control update can also adopt other forms of triggering modes: for example, updates to a control or set of controls are automatically performed each time the development software is launched; when the target software needs to be generated, updating the control or the set control is automatically executed; when the data file is read so that the data file is displayed using the control, the update of the control or the collection control is automatically performed. The control update and the update triggering mode of the collective control are completely determined by the decision of a developer.
After the trigger mode is determined, the control updating can compare the storage time of the data file (data file set) and the sequence variable (set variable) to determine whether to update the sequence variable (set variable), or can directly update the sequence variable (set variable) without comparing the storage time of the data file (data file set) and the sequence variable (set variable). These can be set by a developer. For example, it may be set that when the source code is developed and the target code is generated, the update is performed without considering the storage time of the data file and the sequence variable; or setting the control to update without considering the storage time of the data file and the sequence variable when the control is used for displaying the data file.
The patent also discloses a computer program, which can be stored in a readable memory, and executed by reading the readable memory, wherein the execution of the computer program comprises the following steps:
reading a data file displayed through the control, and generating a data sequence corresponding to the data file; referring to fig. 3, the data file may generate its corresponding data sequence S { [ "[ Common Header ]" ], [ "Format Version", "1" ], [ "[ Board Info ]" ]. The sequence includes all information of the data file.
And after the data sequence corresponding to the data file is obtained, adding an item variable to each data item in the data sequence. A line of information in the data file constitutes a data item; the data items, as previously described, may be either strings, empty lines, or have a specified format, or have a different number of lines. A single data file may have an indefinite number of data items, with an item variable added after each data item in the data sequence, i.e., an item variable added after each row of data information in a single data file.
The data sequence generated by the data file as shown in fig. 3 adds the term variables in such a manner that S { [ "[ CommonHeader ]", V1], [ "Format Version", "1", V2], [ ", V3], [" [ Board Info ] ", V4] }, where V1, V2, V3, and V4 … … are the term variables. The item variable may record parameters of each data item in the data sequence, such as a length of a character string included in the data item, a display format of the data item, a display line number of the data item, a display column number of the data item, and the like, according to the specification of a developer. By adding the term variable after the data sequence, the sequence variable determined by the term variable can be obtained.
The sequence variables are determined by item variables that correspond one-to-one to the data items in the data sequence. The manner in which the term variables determine the sequence variables includes at least several. For example, the set of term variables constitutes the sequence variable, i.e., the sequence variable VS ═ V1, V2, V3, V4 … …; or the sequence variable is determined by the row number information and the column number information of the item variable; or, the sequence variables include item variables and associate the sequence variables to controls; in summary, the sequence variables include parameters of the data file that are needed by the developer. The parameters of the data file may be used to determine control parameters.
In most cases, a data file often includes a plurality of data files. In the case where a plurality of data files are included, a set of controls needs to be specified to facilitate the respective display of the plurality of data files. And the set of all the data files displayed through the control is formed into a data file set, and the set variable is a variable based on the data file set. A set variable is a collection of sequence variables for all data files in a data file set.
The sequence variables record information for each item in the data sequence, and therefore, control parameters can be generated by the sequence variables. In the process of generating control parameters through sequence variables, the sequence variables are assigned to the controls. Sequence variables carry data item information for a data sequence, but sequence variables are not directly equivalent to control parameters. The process of assigning the sequence variables to the control parameters is to establish a unique corresponding relationship between the sequence variables and the control parameters. The corresponding relation can be specified in advance by a developer, the developer can predefine a plurality of corresponding relations, and one corresponding relation can be selected if necessary.
When a plurality of data files are used, so that a data file set is formed, set variables are assigned to a centralized control piece in the same way, the data file set, the set variables and the set control piece are sets of data files, sequence variables and controls, the data files in the data file set, the sequence variables in the set variables and the controls in the centralized control piece establish a single corresponding relation, namely for one data file, the corresponding sequence variables and controls are uniquely corresponding in one operation process.
For the invention, once the sequence variables and the set variables are formed, the parameters of all the controls corresponding to the control parameters or the set controls can be formed in a mode of corresponding to the sequence variables and the set variables, so that the controls or the set controls can be formed. For those of ordinary skill in the art, where parameters have been determined, the control or set control will also be uniquely determined.
Described above is a computer program for generating a control. The computer program may be a computer program stored on a local hard disk; or on a readable memory, such as an optical disk or a flash disk; the service can also be provided for the local through a remote cloud service mode; in short, the computer program is not limited to the location and form of its storage or installation, and it should be substantive to provide the above processing.
The computer program may also perform the step of updating the control.
Due to the introduction of sequence variables, when a developer needs to modify a data file, the developer does not need to consider control parameters. The developer only needs to perform the process of updating the control once. The control update process may be performed by comparing the save time of the sequence variable with the save time of the data file. As described above, once a data file is updated, there will be a new retention time for the data file. And comparing the data file saving time with the sequence variable saving time, wherein if the data file saving time is later than the sequence variable saving time, namely, the data file is updated after the sequence variable is generated, the sequence variable should be considered to be updated at the moment. The process of updating the sequence variables is the same as the process of generating the sequence variables described above, i.e., the process of updating the sequence variables is exactly the same as the process of generating the sequence variables.
Updating the set variables of the data file set is also performed by comparing the saving time of the data file set with the saving time of the set variables, and the execution process is similar to the updating process of the sequence variables.
Because the data file set and the set variable are sets of the data file and the sequence variable, the update of the set variable can also be performed by respectively updating each sequence variable in the set variable, that is, by respectively comparing the saving time of each sequence variable in the set variable with the saving time of the data file in the corresponding data file set.
The above-described control update and updating of the collective control are performed at the developer's designation. If the development system sets that updates of sequence variables and set variables must be performed after a data file or set of data files is modified, no specific update by the developer is required.
The updating of the set control not only includes updating of each sequence file, when the storage time is compared, and when the number of the data files in the data file set is found to be unequal to the number of the sequence variables included in the set variable, the number of the data files in the data file set is increased or decreased, the set variable can be updated in time at the moment, and therefore the control parameter corresponding to the new set control is generated.
The control update and the centralized control update can also adopt other forms of triggering modes: for example, updates to a control or set of controls are automatically performed each time the development software is launched; when the target software needs to be generated, updating the control or the set control is automatically executed; when the data file is read so that the data file is displayed using the control, the update of the control or the collection control is automatically performed. The control update and the update triggering mode of the collective control are completely determined by the decision of a developer.
After the trigger mode is determined, the control updating can compare the storage time of the data file (data file set) and the sequence variable (set variable) to determine whether to update the sequence variable (set variable), or can directly update the sequence variable (set variable) without comparing the storage time of the data file (data file set) and the sequence variable (set variable). These can be set by a developer. For example, it may be set that when the source code is developed and the target code is generated, the update is performed without considering the storage time of the data file and the sequence variable; or setting the control to update without considering the storage time of the data file and the sequence variable when the control is used for displaying the data file.
The above step of updating the control can be implemented by a computer program.
The described embodiments of the invention are not intended as limitations of the invention, but merely as illustrations of steps of the invention. The scope of the claims of the present invention is defined by the same or equivalent scope of the claims of the present invention.

Claims (4)

1. A method of creating a control, comprising:
reading a data file displayed through the control, and generating a data sequence corresponding to the data file;
adding a term variable after each data item of the data sequence;
generating sequence variables through item variables corresponding to data items in the data sequence one by one;
generating control parameters according to the sequence variables;
generating a control according to the control parameter; before generating the control, comparing the control parameter generation time with the data file storage time; and if the control parameter generation time is earlier than the data file storage time, generating a new control parameter.
2. The method for creating the control according to claim 1, wherein the data file displayed by the control comprises a plurality of data files, and the plurality of data files are combined into a data file set; and the sequence variables corresponding to each data file in the data file set jointly form a set variable.
3. An apparatus for creating a control, comprising:
the data sequence generating module is used for reading the data file displayed through the control and generating a data sequence corresponding to the data file;
the item variable generation module is used for adding an item variable behind each data item of the data sequence;
the sequence variable generation module is used for generating sequence variables through item variables which correspond to the data items in the data sequence one by one;
the control parameter generating module is used for generating control parameters according to the sequence variables;
the control updating module is used for generating a control according to the control parameter; and before the control is generated, comparing the control parameter generation time with the data file storage time, and if the control parameter generation time is earlier than the data file storage time, generating a new control parameter.
4. The apparatus for creating a control of claim 3, further comprising:
the set variable generation module is used for generating set variables according to the sequence variables corresponding to each data file in the data file set; the data files displayed through the control comprise a plurality of data files, and the data files are combined into a data file set.
CN201611226887.1A 2016-12-27 2016-12-27 Method and device for creating control and computer program Active CN106528183B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201611226887.1A CN106528183B (en) 2016-12-27 2016-12-27 Method and device for creating control and computer program
PCT/CN2016/112912 WO2018119828A1 (en) 2016-12-27 2016-12-29 Control creation method and device, and computer program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201611226887.1A CN106528183B (en) 2016-12-27 2016-12-27 Method and device for creating control and computer program

Publications (2)

Publication Number Publication Date
CN106528183A CN106528183A (en) 2017-03-22
CN106528183B true CN106528183B (en) 2020-02-07

Family

ID=58337559

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201611226887.1A Active CN106528183B (en) 2016-12-27 2016-12-27 Method and device for creating control and computer program

Country Status (2)

Country Link
CN (1) CN106528183B (en)
WO (1) WO2018119828A1 (en)

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102929603A (en) * 2012-09-28 2013-02-13 用友软件股份有限公司 Interface control arrangement device and interface control arrangement method
CN105511873A (en) * 2015-12-02 2016-04-20 网易(杭州)网络有限公司 User interface control display method and device

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101202665B (en) * 2007-12-06 2011-04-13 中兴通讯股份有限公司 Method for generating graphical user interface
CN103389895B (en) * 2012-08-30 2016-11-09 百度在线网络技术(北京)有限公司 A kind of generation method and system of front end page
CN105335159B (en) * 2015-11-03 2018-11-02 浪潮软件集团有限公司 Anychart chart display method

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102929603A (en) * 2012-09-28 2013-02-13 用友软件股份有限公司 Interface control arrangement device and interface control arrangement method
CN105511873A (en) * 2015-12-02 2016-04-20 网易(杭州)网络有限公司 User interface control display method and device

Also Published As

Publication number Publication date
CN106528183A (en) 2017-03-22
WO2018119828A1 (en) 2018-07-05

Similar Documents

Publication Publication Date Title
CN105045663B (en) The method and system of rapid deployment virtual machine
US20080051921A1 (en) Method for modifying configuration of business system
CN108762743B (en) Data table operation code generation method and device
CN104391725A (en) Page display method and page display device
CN107506219A (en) A kind of general version upgrade method based on android system
CN111068328B (en) Game advertisement configuration form generation method, terminal equipment and medium
US7778983B2 (en) Application migration file scanning and conversion
CN103984582A (en) Method and device for hot updating
CN105144088A (en) Association of metadata with source code and applications and services premised thereon
CN106874281B (en) Method and device for realizing database read-write separation
CN102567053A (en) Method and device for downgrading software version
CN110908671A (en) Method and device for constructing docker mirror image and computer readable storage medium
US7174535B2 (en) Build and install for software applications
US20210208996A1 (en) Verification automation apparatus, verification automation method, and computer-readable recording medium
CN112668290A (en) Dynamic form generation method and system based on gridding design
CN104881311A (en) Method and apparatus for judging version compatibility
CN110990051B (en) Maintenance method, device, medium and equipment for software package dependency relationship
CN115599437A (en) Software version processing method and device, electronic equipment and storage medium
US20080196009A1 (en) Apparatus and method for componentizing legacy system
CN102054041A (en) Method and system for upgrading metadata
CN110109671B (en) Webpack label size and style conversion method and device
CN103984554A (en) Software design document generating method and device
CN111984595B (en) File processing method and device and storage medium
CN106528183B (en) Method and device for creating control and computer program
US20150089490A1 (en) Information processing system, information processing apparatus, device, software installation method, and storage medium

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
CP02 Change in the address of a patent holder
CP02 Change in the address of a patent holder

Address after: 518000 2101, No. 100, Zhihe Road, Dakang community, Yuanshan street, Longgang District, Shenzhen, Guangdong

Patentee after: BANGYAN TECHNOLOGY Co.,Ltd.

Address before: 518000 room 901, block B, building 5, Shenzhen software industry base, Nanshan District, Shenzhen City, Guangdong Province

Patentee before: BANGYAN TECHNOLOGY Co.,Ltd.