CN110321125A - Data configuration method, data configuration device and the readable storage medium storing program for executing of cell - Google Patents
Data configuration method, data configuration device and the readable storage medium storing program for executing of cell Download PDFInfo
- Publication number
- CN110321125A CN110321125A CN201910602796.0A CN201910602796A CN110321125A CN 110321125 A CN110321125 A CN 110321125A CN 201910602796 A CN201910602796 A CN 201910602796A CN 110321125 A CN110321125 A CN 110321125A
- Authority
- CN
- China
- Prior art keywords
- cell
- source code
- project file
- control property
- display page
- 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.)
- Granted
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/30—Creation or generation of source code
- G06F8/38—Creation or generation of source code for implementing user interfaces
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/40—Transformation of program code
- G06F8/41—Compilation
- G06F8/44—Encoding
- G06F8/447—Target code generation
Landscapes
- Engineering & Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Software Systems (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Human Computer Interaction (AREA)
- User Interface Of Digital Computer (AREA)
Abstract
This application provides a kind of data configuration method of cell, data configuration device and readable storage medium storing program for executing, the data configuration method obtains the first project file, the second project file and the third project file to match with the display page to be configured;Visual layout's source code of each cell in the display page is respectively written into the first project file;The display information of visual layout's source code instruction based on each cell, determines cell classification belonging to each cell;Determine the same control property source code for belonging to multiple cells in same cell classification;The control property source code is respectively written into the second project file or third project file.In this way, can reduce the size of source code quantity and application program in project file, the memory headroom of application program is saved.
Description
Technical field
This application involves intelligent terminal field of display technology, match more particularly, to the data configuration method of cell, data
Set device and readable storage medium storing program for executing.
Background technique
With the development of the technology of intelligent terminal, the exploitation of the application program on intelligent terminal is also rapidly developed
Come, in the development process of application program, for the page display content of application program exploitation when very important, reasonable cloth
The display page of office is most important for the popularization of application program.
At this stage for needing to each in the display configuration process in application program display interface comprising multiple cells
A cell all creates three project files, if there is N number of cell will create N*3 project file, has in cell
When having identical control, it is also desirable to carry out multiplicating definition in project file, increase the quantity of documents of application program and big
It is small, waste the memory headroom of application program.
Summary of the invention
In view of this, the cell that is designed to provide of the application shows the data configuration method of content, data configuration dress
It sets and readable storage medium storing program for executing, the first engineering text is written into visual layout's source code of each cell in the page to be configured
Part classifies each cell according to the control property in the display information of visual layout's source code instruction, same class
Other cell control having the same, by the corresponding same control property source code of identical control be written the second project file or
In person's third project file, in this way, for the control with identical control property information, it only need to be in the second project file or third
Same control property source code is written in project file, can reduce the big of source code quantity and application program in project file
It is small, save the memory headroom of application program.
The embodiment of the present application provides a kind of data configuration method of cell, and the data configuration method includes:
Obtain the first project file to match with the display page to be configured, the second project file and third engineering text
Part;
Visual layout's source code of each cell in the display page is respectively written into the first project file;
The display information of visual layout's source code instruction based on each cell, determines belonging to each cell
Cell classification;
Determine the same control property source code for belonging to multiple cells of same cell classification;
The second project file or third project file is written into the same control property source code.
Further, the first project file, the second engineering text to match in the acquisition with the display page to be configured
Before part and third project file, the data configuration method further include:
Determine occupied first storage value of visual layout's source code of each cell in the display page, and really
Occupied second storage value of control property source code of each cell in the fixed display page;
Based on the first storage value described in each, first total storage value with whole cells in the display page is generated
The first project file to match;
Based on the second storage value described in each, second total storage value with whole cells in the display page is generated
The second project file and third project file to match.
Further, the display information of visual layout's source code instruction based on each cell, determines each
Cell classification belonging to a cell, comprising:
The display information of visual layout's source code instruction based on each cell, determines the control of each cell
Attribute information;
Determine that the cell with identical control property information belongs to same cell classification.
Further, the determination belongs to the same control property source code of multiple cells of same cell classification, packet
It includes:
Obtain at least one control property source code of each of same cell classification cell;
Control property source code in the multiple control property source codes that will acquire with identical expression-form is divided to same
Source code is concentrated, wherein the expression-form includes identical sources code-bar number and identical source code sentence;
It is concentrated from the same source code and selects any control property source code, and determine that the control property source code is same list
The corresponding same control property source code of multiple cells in first lattice classification.
Further, by the same control property source code be written the second project file or third project file it
Afterwards, the data configuration method further include:
By each cell in the display page and corresponding visual layout's source code in first project file
It is associated setting, and by each cell same control category corresponding with the second project file in the display page
Property source code or third project file in corresponding same control property source code into association be arranged;
When showing the display page, obtained from first project file corresponding with Set cell to be shown
Visual layout's source code, and obtained and the Set cell from second project file or the third project file
The corresponding same control property source code of affiliated same cell classification.
The embodiment of the present application also provides a kind of data configuration device of cell, the data configuration device includes:
First obtains module, for obtaining the first project file to match with the display page to be configured, the second engineering
File and third project file;
First writing module, for visual layout's source code of each cell in the display page to be respectively written into
It obtains in the first project file that module obtains;
First determining module is determined for the display information of visual layout's source code instruction based on each cell
Cell classification belonging to each cell;
Second determining module, for determining the same control property source for belonging to multiple cells in same cell classification
Code;
The second project file is written in second writing module, the same control property source code for determining the second determining module
Or third project file.
Further, the data configuration device further includes generation module, and the generation module is used for:
Determine occupied first storage value of visual layout's source code of each cell in the display page, and really
Occupied second storage value of control property source code of each cell in the fixed display page;
Based on the first storage value described in each, first total storage value with whole cells in the display page is generated
The first project file to match;
Based on the second storage value described in each, second total storage value with whole cells in the display page is generated
The second project file and third project file to match.
Further, first determining module is used for:
The display information of visual layout's source code instruction based on each cell, determines the control of each cell
Attribute information;
Determine that the cell with identical control property information belongs to same cell classification.
Further, second determining module is used for:
Obtain at least one control property source code of each of same cell classification cell;
Control property source code in the multiple control property source codes that will acquire with identical expression-form is divided to same
Source code is concentrated, wherein the expression-form includes identical sources code-bar number and identical source code sentence;
It is concentrated from the same source code and selects any control property source code, and determine that the control property source code is same list
The corresponding same control property source code of multiple cells in first lattice classification.
Further, the data configuration device further includes display module, and the display module is used for:
By each cell in the display page and corresponding visual layout's source code in first project file
It is associated setting, and by each cell same control category corresponding with the second project file in the display page
Property source code or third project file in corresponding same control property source code into association be arranged;
When showing the display page, obtained from first project file corresponding with Set cell to be shown
Visual layout's source code, and obtained and the Set cell from second project file or the third project file
The corresponding same control property source code of affiliated same cell classification.
The embodiment of the present application also provides a kind of electronic equipment, comprising: processor, memory and bus, the memory are deposited
Contain the executable machine readable instructions of the processor, when electronic equipment operation, the processor and the memory it
Between by bus communication, the data configuration of such as above-mentioned cell is executed when the machine readable instructions are executed by the processor
The step of method.
The embodiment of the present application also provides a kind of computer readable storage medium, stores on the computer readable storage medium
There is computer program, the step of the data configuration method such as above-mentioned cell is executed when the computer program is run by processor
Suddenly.
Data configuration method, data configuration device and the readable storage medium storing program for executing of cell provided by the embodiments of the present application, are obtained
Take the first project file, the second project file and the third project file to match with the display page to be configured;It will be described aobvious
Show that visual layout's source code of each cell in the page is respectively written into the first project file;Based on each cell
The display information of visual layout's source code instruction, determines cell classification belonging to each cell;Determination belongs to same list
The same control property source code of multiple cells of first lattice classification;The second project file is written into the same control property source code
Or third project file.
In this way, obtaining the first project file, the second project file and the third work to match with the display page to be configured
The first project file, and root is written in visual layout's source code of each cell in the display page to be configured by journey file
According to visual layout's source code of each cell, the classification of each cell is determined, same category of cell is corresponding
Same control property source code be written in the second project file or third project file, can reduce source code number in project file
The size of amount and application program, saves the memory headroom of application program.
To enable the above objects, features, and advantages of the application to be clearer and more comprehensible, preferred embodiment is cited below particularly, and cooperate
Appended attached drawing, is described in detail below.
Detailed description of the invention
Technical solution in ord to more clearly illustrate embodiments of the present application, below will be to needed in the embodiment attached
Figure is briefly described, it should be understood that the following drawings illustrates only some embodiments of the application, therefore is not construed as pair
The restriction of range for those of ordinary skill in the art without creative efforts, can also be according to this
A little attached drawings obtain other relevant attached drawings.
Fig. 1 is the system block diagram under a kind of possible application scenarios;
Fig. 2 is a kind of flow chart of the data configuration method of cell provided by the embodiment of the present application;
Fig. 3 is the flow chart of the data configuration method of another kind cell provided by the embodiment of the present application;
Fig. 4 is one of a kind of structural schematic diagram of data configuration device of cell provided by the embodiment of the present application;
Fig. 5 is a kind of second structural representation of the data configuration device of cell provided by the embodiment of the present application;
Fig. 6 is the structural schematic diagram of a kind of electronic equipment provided by the embodiment of the present application.
Specific embodiment
To keep the purposes, technical schemes and advantages of the embodiment of the present application clearer, below in conjunction with the embodiment of the present application
Middle attached drawing, the technical scheme in the embodiment of the application is clearly and completely described, it is clear that described embodiment is only
It is some embodiments of the present application, instead of all the embodiments.The application being usually described and illustrated herein in the accompanying drawings is real
The component for applying example can be arranged and be designed with a variety of different configurations.Therefore, below to the application's provided in the accompanying drawings
The detailed description of embodiment is not intended to limit claimed scope of the present application, but is merely representative of the selected reality of the application
Apply example.Based on embodiments herein, those skilled in the art are obtained every without making creative work
A other embodiments, shall fall in the protection scope of this application.
Firstly, the application application scenarios applicatory are introduced.The application can be applied to intelligent terminal display technology
Field.Referring to Fig. 1, Fig. 1 is a kind of system composition under the application scenarios.As shown in fig. 1, the system comprises texts
Part storage device and data configuration device.The project file that the file storage device storage configuration cell needs, the number
The first project file to match with the display page to be configured, second are obtained from the file storage device according to configuration device
The visual layout's source code for showing each cell in the page is respectively written into the first work by project file and third project file
Journey file, and the second project file or third engineering is written into the same control property source code of the cell with identical control
File, and then complete the data configuration of cell.
It has been investigated that at this stage for including the display configuration process of multiple cells in application program display interface
In, it needs to create three project files to each cell, if there is N number of cell will create N*3 project file,
When there is identical control in cell, it is also desirable to carry out multiplicating definition in project file, increase application program
Quantity of documents and size waste the memory headroom of application program.
In view of this, a kind of data configuration method for being designed to provide cell display content of the application, data are matched
Device and readable storage medium storing program for executing are set, visual layout's source code of each cell in the page to be configured is respectively written into first
Project file classifies each cell according to the control property in the display information of visual layout's source code instruction,
Wherein, same category of cell control having the same, by the corresponding same control property source code write-in of identical control the
Two project files or third project file, in this way, for the control with identical control property information, it only need to be in the second engineering
Same control property source code is written in file or third project file, can reduce source code quantity and application in project file
The size of program saves the memory headroom of application program.
Referring to Fig. 2, Fig. 2 is a kind of flow chart of the data configuration method of cell provided by the embodiment of the present application.
As shown in Figure 2, the data configuration method of cell provided by the embodiments of the present application, comprising:
Step 201 obtains the first project file, the second project file and the third to match with the display page to be configured
Project file.
In the step, the first engineering text to match with the display page to be configured in memory space, store path is obtained
Part, the second project file and third project file, so as to by the corresponding source code write-in pair of cell in the display page to be configured
In the file answered, to complete the data configuration of each cell in the display page to be configured.
Here, by taking the system where the display page to be configured is IOS system as an example, for display page to be configured
The project file that face is configured, is divided into three classes, and one kind is .xib file, and be written the display page to be configured in this document can
Be laid out source code depending on changing, be used to refer in the display page to be configured where display what content.Other two classes engineering
File is .m file and .h file, and these two types of project files are all used to be written the control property of control in the display page to be configured
Source code, be used to refer to control is particularly shown form.For the control property source code of same control .m file and .h need to only be written
One of file can not repeat to state same control in .m file and .h file.
Wherein .m file is privately owned property file, and .h file is publicly-owned property file, is being not belonging to other of a sort function
Energy function can only read the control property source code being written in .h file.
Visual layout's source code of each cell in the display page is respectively written into the first engineering by step 202
In file.
In the step, by visual layout's source code of each of the display page to be configured cell according to preset
In the first project file of write sequence write-once.
Wherein, the preset write sequence, can be the cell occur in the display page to be configured it is suitable
The quantity of the sentence of sequence or the corresponding visual layout's source code of each cell is sequentially written in first by incremental (successively decreasing)
In project file.
Here, the cell in the display page to be configured can be the table shown in the display page, can also
Be can be with menu bar etc. that subfield is shown in the display page to be configured.
By taking common cell phone address book as an example, the column where each contact person can be referred to as a cell.
The display information that step 203, visual layout's source code based on each cell indicate, determines each unit
Cell classification belonging to lattice.
In the step, the display information indicated in visual layout's source code of each cell can determine each
Cell is classified according to control content to be shown in the position that cell control to be shown and control are shown.
Wherein, control to be shown can be picture, text or shape etc..
Here, for each cell, control to be shown there are it is identical a possibility that, i.e., with common mobile phone
For address list, in each subfield, can all there be an icon in foremost, the case where user is not artificially changed
Under, which is all that system is included, each subfield is the same, and the subfield where the identical icon is exactly a type
Type.
Step 204 determines the same control property source code for belonging to multiple cells of same cell classification.
In the step, there can be at least two cells in same cell classification, each cell can have certainly
Oneself corresponding control property source code determines that multiple cells in same cell classification all correspond to same section of control property source
Code.
The second project file or third project file is written in the same control property source code by step 205.
In the step, determining control property source code is sequentially written in the second project file and third according to pre-set
Project file.
Wherein, the pre-set sequence, can be the cell occur in the display page to be configured it is suitable
The quantity of the associated degree or control property source code sentence of sequence or each control property, which is pressed, is incremented by the suitable of (successively decreasing)
Sequence.
Here, with the system IOS system where the display page to be configured, the second project file and third engineering text
For part is .m file and .h file, according to the needs of product design, decision is publicly-owned for the attribute declaration of some control
Or it is privately owned .h file is written into publicly-owned control property source code .m file is written into privately owned control property source code, certain
The attribute of one control is in .h (.m) after definition, it is not possible to be defined, i.e., one be controlled in .m (.h) file again
The definition of part should be unique.
The data configuration method of cell provided by the embodiments of the present application, acquisition match with the display page to be configured
First project file, the second project file and third project file;By the visualization of each cell in the display page
Layout source code is respectively written into the first project file;The display letter of visual layout's source code instruction based on each cell
Breath, determines cell classification belonging to each cell;Determine the same of the multiple cells for belonging to same cell classification
Control property source code;The control property source code is respectively written into the second project file or third project file.
In this way, obtaining the first project file, the second project file and third engineering that the display page to be configured matches
File, by visual layout's source code the first project file of write-in of each cell in the display page to be configured, and according to
Visual layout's source code of each cell, determines the classification of each cell, and same category of cell is corresponding
Same control property source code is written in the second project file and third project file, can reduce in project file source code quantity and
The size of application program saves data space.
Referring to Fig. 3, Fig. 3 is the process of the data configuration method of another kind cell provided by the embodiment of the present application
Figure.As shown in Figure 3, the data configuration method of cell provided by the embodiments of the present application, comprising:
Step 301 obtains the first project file, the second project file and the third to match with the display page to be configured
Project file.
Visual layout's source code of each cell in the display page is respectively written into the first engineering by step 302
In file.
The display information that step 303, visual layout's source code based on each cell indicate, determines each unit
The control property information of lattice.
In the step, according to the display information that the corresponding visual layout's source code of each cell indicates, shown from described
Show the control property information found in each cell in information.
Wherein, the display information of visual layout's source code instruction, which is included in each cell, will show any control, and
And display position of the display control in cell;Control property information includes the title of control, the display format of control.
Such as control will show text or picture and word content and image content etc..
Step 304 determines that the cell with identical control property information belongs to same cell classification.
In the step, by control property information having the same, the i.e. cell of the title, the display format of control of control
It is divided into same cell classification.
Here, each cell, which can divide, belongs to one or more cell classifications.
By taking the content that a certain cell is shown is triangle and text as an example, this cell is exactly to belong to triangular element
Lattice classification and text unit lattice classification, also, it is the shape of the cell triangle to be shown in triangular element lattice classification, big
It is small all;Cell word content to be shown, color, size, typesetting form in text unit lattice classification etc. are all.
Step 305 determines the same control property source code for belonging to multiple cells in same cell classification.
The second project file or third project file is written in the same control property source code by step 306.
Wherein, the description of step 301, step 302, step 305 and step 306 is referred to step 201, step 202, step
Rapid 204 and step 205 description, and identical technical effect can be reached, this not repeated them here.
Further, before step 301 further include:
Determine occupied first storage value of visual layout's source code of each cell in the display page, and really
Occupied second storage value of control property source code of each cell in the fixed display page;Based on described in each
One storage value generates the first project file to match with first total storage value of whole cells in the display page;Base
In each second storage value, the to match with second total storage value of whole cells in the display page is generated
Two project files and third project file.
In the step, memory is needed according to the corresponding visual layout's source code of each cell in the display page
Size determines the first storage value;Memory is needed according to the corresponding control property source code of each cell in the display page
Size, determine the second storage value;The first storage value for showing whole cells in the page is added, is obtained complete in the display page
The size of the total memory space for the memory that portion's cell visual layout source code needs determines first total storage value, generates first
Project file storage value be greater than or equal to first total storage value, it is ensured that can be written into display the page in each cell it is visual
Change layout source code;The second storage value for showing whole cells in the page is added, whole cell controls in the display page are obtained
The size of the total memory space for the memory that part attribute source code needs, determines second total storage value, generates the second project file and the
Three project file storage values are greater than or equal to second total storage value, it is ensured that can be written into the control of each cell in the display page
Part attribute source code.
Further, step 305 further include:
Obtain at least one control property source code of each of same cell classification cell;What be will acquire is more
Control property source code in a control property source code with identical expression-form is divided to same source code and concentrates, wherein the table
It include identical sources code-bar number and identical source code sentence up to form;It is concentrated from the same source code and selects any control property source code,
And determine the control property source code for the corresponding same control property source code of cells multiple in same cell classification.
In the step, by step 303 to step 304, determine in the display page, the cell that each cell belongs to
Classification includes at least one cell, according to each cell in same cell classification in same cell classification
At least one control property source code, with the control property source of identical expression-form in the multiple control property source codes that will acquire
Code is divided to same source code and concentrates, and concentrates from the same source code of division and chooses any control property source code, this control property source
Code is the same control property source code determined in same cell classification for said units lattice classification.The second engineering text is being written
When in part or third project file, for same control property source code, only write-in one time.
Wherein, expression-form includes identical sources code-bar number and identical source code sentence.
By taking the display page is the page of cell phone address book as an example, in each subfield, foremost can all have one
Icon, in the case where user is without artificially changing, which is all that system is included, and the icon based on foremost leads to mobile phone
The whole subfields interrogated in the full page of record are divided into same icon classification cell, corresponding extremely getting each subfield
It is the corresponding source code item number of the identical icon of each subfield is identical, source code sentence is identical after a few control property source code
Source code be divided to same source code and concentrate, in any control property source code that source code is concentrated, be directed to icon in each subfield
Corresponding same control property source code.
Further, after step 306, further includes:
By each cell in the display page and corresponding visual layout's source code in first project file
It is associated setting, and by each cell same control category corresponding with the second project file in the display page
Property source code or third project file in corresponding same control property source code into association be arranged;Showing the display page
When, corresponding with Set cell to be shown visual layout's source code is obtained from first project file, and from described the
It is obtained in two project files or the third project file corresponding with same cell classification belonging to the Set cell
Same control property source code.
In the step, by corresponding visual layout's source code in each cell in the display page and the first project file
Association, and will show each cell same control property source code corresponding with the second project file or third in the page
Corresponding same control property source code is into association in project file, when carrying out the display of the page, according in the display page to aobvious
The instruction of the associated visual layout's source code of the Set cell shown is determined in which position of Set cell to be shown
It shows control, control particular content is shown according to the associated control source code of Set cell, completes the content to Set cell
It has been shown that, is sequentially completed the display of each cell, to complete the display of the display page.
Wherein, it is described by cell and visual layout's source code and control property source code be associated with refer to by cell and with
Corresponding visual layout's source code and control property source code binding, in Cell display, according to the visualization cloth of binding
Office's source code and control property source code complete the display to cell content.
The data configuration method of cell provided by the embodiments of the present application, acquisition match with the display page to be configured
First project file, the second project file and third project file;By the visualization of each cell in the display page
Layout source code is respectively written into the first project file;The display letter of visual layout's source code instruction based on each cell
Breath, determines the control property information of each cell;Determine that the cell with identical control property information belongs to same list
First lattice classification;Determine the same control property source code for belonging to multiple cells in same cell classification;By the same control
The second project file or third project file is written in part attribute source code.
In this way, obtaining the first project file, the second project file and third engineering that the display page to be configured matches
The first project file is written, according to every in visual layout's source code of each cell in the display page to be configured by file
The display information of visual layout's source code instruction of one cell, determines the control property information of each cell, determines
Cell with identical control property information belongs to same cell classification, will divide with the cell of identical control property
For same category of cell, when in the second project file is written or in third project file, for same category of more
The corresponding same control property source code of the identical control property information of a cell is written in the second project file or third work
In journey file, multiple cells in same cell classification are both corresponded in the second project file or in third project file
Same control property source code, can reduce the size of source code quantity and application program in project file, save application program
Memory headroom.
Fig. 4 to Fig. 5 is please referred to, Fig. 4 is a kind of knot of the data configuration device of cell provided by the embodiment of the present application
One of structure schematic diagram, Fig. 5 be a kind of structural schematic diagram of the data configuration device of cell provided by the embodiment of the present application it
Two.As shown in Figure 4, the data configuration device 400 of the cell includes:
First obtains module 410, for obtaining the first project file to match with the display page to be configured, the second work
Journey file and third project file.
First writing module 420, for distinguishing visual layout's source code of each cell in the display page
Write-in obtains in the first project file that module 410 obtains.
First determining module 430, for the display information of visual layout's source code instruction based on each cell, really
Cell classification belonging to each fixed cell.
Second determining module 440, for determining the same control category for belonging to multiple cells in same cell classification
Property source code.
Second writing module 450, the control property source code determined for the second determining module 440 are respectively written into the second engineering
File or third project file.
Further, as shown in figure 5, the data configuration device 400 of the cell further include:
Generation module 460 and display module 470.
Further, the generation module 460 is used for:
Determine occupied first storage value of visual layout's source code of each cell in the display page, and really
Occupied second storage value of control property source code of each cell in the fixed display page;
Based on the first storage value described in each, first total storage value with whole cells in the display page is generated
The first project file to match;
Based on the second storage value described in each, second total storage value with whole cells in the display page is generated
The second project file and third project file to match.
Further, the display module 470 is used for:
By each cell in the display page and corresponding visual layout's source code in first project file
It is associated setting, and by each cell same control category corresponding with the second project file in the display page
Property source code or third project file in corresponding same control property source code into association be arranged;
When showing the display page, obtained from first project file corresponding with Set cell to be shown
Visual layout's source code, and obtained and the Set cell from second project file or the third project file
The corresponding same control property source code of affiliated same cell classification.
Further, first determining module 430 is used for:
The display information of visual layout's source code instruction based on each cell, determines the control of each cell
Attribute information;
Determine that the cell with identical control property information belongs to same cell classification.
Further, second determining module 440 is used for:
Obtain at least one control property source code of each of same cell classification cell;
Control property source code in the multiple control property source codes that will acquire with identical expression-form is divided to same
Source code is concentrated, wherein the expression-form includes identical sources code-bar number and identical source code sentence;
It is concentrated from the same source code and selects any control property source code, and determine that the control property source code is same list
The corresponding same control property source code of multiple cells in first lattice classification.
The data configuration device of cell provided by the embodiments of the present application, acquisition match with the display page to be configured
First project file, the second project file and third project file;By the visualization of each cell in the display page
Layout source code is respectively written into the first project file;The display letter of visual layout's source code instruction based on each cell
Breath, determines cell classification belonging to each cell;Determine the same of the multiple cells belonged in same cell classification
One control property source code;The control property source code is respectively written into the second project file or third project file.
In this way, obtaining the first project file, the second project file and third engineering that the display page to be configured matches
File, by visual layout's source code the first project file of write-in of each cell in the display page to be configured, and according to
Visual layout's source code of each cell, determines the classification of each cell, and same category of cell is corresponding
Identical control property source code is only primary, is written in the second project file and third project file, can reduce source in project file
The size of number of codes and application program saves the memory headroom of application program.
Referring to Fig. 6, Fig. 6 is the structural schematic diagram of a kind of electronic equipment provided by the embodiment of the present application.Such as institute in Fig. 6
Show, the electronic equipment 600 includes processor 610, memory 620 and bus 630.
The memory 620 is stored with the executable machine readable instructions of the processor 610, when electronic equipment 600 is transported
When row, communicated between the processor 610 and the memory 620 by bus 630, the machine readable instructions are by the place
When managing the execution of device 610, the data configuration method of the cell in the embodiment of the method as shown in above-mentioned Fig. 2 and Fig. 3 can be executed
The step of, specific implementation can be found in embodiment of the method, and details are not described herein.
The embodiment of the present application also provides a kind of computer readable storage medium, stores on the computer readable storage medium
There is computer program, the implementation of the method as shown in above-mentioned Fig. 2 and Fig. 3 can be executed when the computer program is run by processor
The step of data configuration method of cell in example, specific implementation can be found in embodiment of the method, and details are not described herein.
It is apparent to those skilled in the art that for convenience and simplicity of description, the system of foregoing description,
The specific work process of device and unit, can refer to corresponding processes in the foregoing method embodiment, and details are not described herein.
In several embodiments provided herein, it should be understood that disclosed systems, devices and methods, it can be with
It realizes by another way.The apparatus embodiments described above are merely exemplary, for example, the division of the unit,
Only a kind of logical function partition, there may be another division manner in actual implementation, in another example, multiple units or components can
To combine or be desirably integrated into another system, or some features can be ignored or not executed.Another point, it is shown or beg for
The mutual coupling, direct-coupling or communication connection of opinion can be through some communication interfaces, device or unit it is indirect
Coupling or communication connection can be electrical property, mechanical or other forms.
The unit as illustrated by the separation member may or may not be physically separated, aobvious as unit
The component shown may or may not be physical unit, it can and it is in one place, or may be distributed over multiple
In network unit.It can select some or all of unit therein according to the actual needs to realize the mesh of this embodiment scheme
's.
It, can also be in addition, each functional unit in each embodiment of the application can integrate in one processing unit
It is that each unit physically exists alone, can also be integrated in one unit with two or more units.
It, can be with if the function is realized in the form of SFU software functional unit and when sold or used as an independent product
It is stored in the executable non-volatile computer-readable storage medium of a processor.Based on this understanding, the application
Technical solution substantially the part of the part that contributes to existing technology or the technical solution can be with soft in other words
The form of part product embodies, and the computer software product is stored in a storage medium, including some instructions to
So that a computer equipment (can be personal computer, server or the network equipment etc.) executes each implementation of the application
The all or part of the steps of example the method.And storage medium above-mentioned includes: USB flash disk, mobile hard disk, read-only memory (Read-
Only Memory, ROM), random access memory (Random Access Memory, RAM), magnetic or disk etc. it is various
It can store the medium of program code.
Finally, it should be noted that embodiment described above, the only specific embodiment of the application, to illustrate the application
Technical solution, rather than its limitations, the protection scope of the application is not limited thereto, although with reference to the foregoing embodiments to this Shen
It please be described in detail, those skilled in the art should understand that: anyone skilled in the art
Within the technical scope of the present application, it can still modify to technical solution documented by previous embodiment or can be light
It is readily conceivable that variation or equivalent replacement of some of the technical features;And these modifications, variation or replacement, do not make
The essence of corresponding technical solution is detached from the spirit and scope of the embodiment of the present application technical solution, should all cover the protection in the application
Within the scope of.Therefore, the protection scope of the application should be subject to the protection scope in claims.
Claims (10)
1. a kind of data configuration method of cell, which is characterized in that the data configuration method includes:
Obtain the first project file, the second project file and the third project file to match with the display page to be configured;
Visual layout's source code of each cell in the display page is respectively written into the first project file;
The display information of visual layout's source code instruction based on each cell, determines unit belonging to each cell
Lattice classification;
Determine the same control property source code for belonging to multiple cells of same cell classification;
The second project file or third project file is written into the same control property source code.
2. data configuration method according to claim 1, which is characterized in that in the acquisition and the display page to be configured
Before the first project file, the second project file and the third project file that match, the data configuration method further include:
It determines occupied first storage value of visual layout's source code of each cell in the display page, and determines institute
State occupied second storage value of control property source code of each cell in the display page;
Based on the first storage value described in each, first total storage value phase with whole cells in the display page is generated
The first project file matched;
Based on the second storage value described in each, second total storage value phase with whole cells in the display page is generated
The second project file and third project file matched.
3. data configuration method according to claim 1, which is characterized in that the visualization based on each cell
It is laid out the display information of source code instruction, determines cell classification belonging to each cell, comprising:
The display information of visual layout's source code instruction based on each cell, determines the control property of each cell
Information;
Determine that the cell with identical control property information belongs to same cell classification.
4. data configuration method according to claim 1, which is characterized in that the determination belongs to same cell classification
The same control property source code of multiple cells, comprising:
Obtain at least one control property source code of each of same cell classification cell;
Control property source code in the multiple control property source codes that will acquire with identical expression-form is divided to same source code
It concentrates, wherein the expression-form includes identical sources code-bar number and identical source code sentence;
It is concentrated from the same source code and selects any control property source code, and determine that the control property source code is same cell
The corresponding same control property source code of multiple cells in classification.
5. data configuration method according to claim 1, which is characterized in that be written by the same control property source code
After second project file or third project file, the data configuration method further include:
Each cell in the display page is carried out with visual layout's source code corresponding in first project file
Association setting, and by each cell same control property source corresponding with the second project file in the display page
Corresponding same control property source code is arranged into association in code or third project file;
When showing the display page, obtained from first project file corresponding with Set cell to be shown visual
Change layout source code, and from second project file or the third project file obtain with the Set cell belonging to
The corresponding same control property source code of same cell classification.
6. a kind of data configuration device of cell, which is characterized in that the data configuration device includes:
First obtains module, for obtaining the first project file, the second project file that match with the display page to be configured
With third project file;
First writing module, for visual layout's source code of each cell in the display page to be respectively written into acquisition
In the first project file that module obtains;
First determining module determines each for the display information of visual layout's source code instruction based on each cell
Cell classification belonging to a cell;
Second determining module, for determining the same control property source code for belonging to multiple cells in same cell classification;
Second writing module, for by the second determining module determine same control property source code be written the second project file or
Third project file.
7. data configuration device according to claim 6, which is characterized in that the data configuration device further includes generating mould
Block, the generation module are used for:
It determines occupied first storage value of visual layout's source code of each cell in the display page, and determines institute
State occupied second storage value of control property source code of each cell in the display page;
Based on the first storage value described in each, first total storage value phase with whole cells in the display page is generated
The first project file matched;
Based on the second storage value described in each, second total storage value phase with whole cells in the display page is generated
The second project file and third project file matched.
8. data configuration device according to claim 6, which is characterized in that the data configuration device further includes display mould
Block, the display module are used for:
Each cell in the display page is carried out with visual layout's source code corresponding in first project file
Association setting, and by each cell same control property source corresponding with the second project file in the display page
Corresponding same control property source code is arranged into association in code or third project file;
When showing the display page, obtained from first project file corresponding with Set cell to be shown visual
Change layout source code, and from second project file or the third project file obtain with the Set cell belonging to
The corresponding same control property source code of same cell classification.
9. a kind of electronic equipment characterized by comprising processor, memory and bus, the memory are stored with the place
The executable machine readable instructions of device are managed, when electronic equipment operation, by described between the processor and the memory
Bus communication executes the unit as described in any in claim 1 to 5 when the machine readable instructions are executed by the processor
The step of data configuration method of lattice.
10. a kind of computer readable storage medium, which is characterized in that be stored with computer on the computer readable storage medium
Program, the data that the cell as described in any in claim 1 to 5 is executed when the computer program is run by processor are matched
The step of setting method.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910602796.0A CN110321125B (en) | 2019-07-05 | 2019-07-05 | Data configuration method and device for cells and readable storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910602796.0A CN110321125B (en) | 2019-07-05 | 2019-07-05 | Data configuration method and device for cells and readable storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN110321125A true CN110321125A (en) | 2019-10-11 |
CN110321125B CN110321125B (en) | 2023-03-28 |
Family
ID=68122736
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910602796.0A Active CN110321125B (en) | 2019-07-05 | 2019-07-05 | Data configuration method and device for cells and readable storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN110321125B (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113393572A (en) * | 2021-06-17 | 2021-09-14 | 北京千丁互联科技有限公司 | Point cloud data generation method and device, mobile terminal and readable storage medium |
CN114327728A (en) * | 2021-12-29 | 2022-04-12 | 浪潮卓数大数据产业发展有限公司 | Application unit grid construction method, device and medium |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103488468A (en) * | 2012-06-13 | 2014-01-01 | 腾讯科技(北京)有限公司 | Compiling method and system for portal web site pages |
CN103853845A (en) * | 2014-03-24 | 2014-06-11 | 南通大学 | Dynamic analytic method of complex form |
US9158743B1 (en) * | 2011-03-28 | 2015-10-13 | Amazon Technologies, Inc. | Grid layout control for network site design |
CN106844307A (en) * | 2017-01-05 | 2017-06-13 | 上海核工程研究设计院 | It is a kind of to realize that Excel turns the system and method for Word based on mark |
CN107544806A (en) * | 2017-09-04 | 2018-01-05 | 江苏中威科技软件系统有限公司 | Visualize list method for drafting |
-
2019
- 2019-07-05 CN CN201910602796.0A patent/CN110321125B/en active Active
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US9158743B1 (en) * | 2011-03-28 | 2015-10-13 | Amazon Technologies, Inc. | Grid layout control for network site design |
CN103488468A (en) * | 2012-06-13 | 2014-01-01 | 腾讯科技(北京)有限公司 | Compiling method and system for portal web site pages |
CN103853845A (en) * | 2014-03-24 | 2014-06-11 | 南通大学 | Dynamic analytic method of complex form |
CN106844307A (en) * | 2017-01-05 | 2017-06-13 | 上海核工程研究设计院 | It is a kind of to realize that Excel turns the system and method for Word based on mark |
CN107544806A (en) * | 2017-09-04 | 2018-01-05 | 江苏中威科技软件系统有限公司 | Visualize list method for drafting |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113393572A (en) * | 2021-06-17 | 2021-09-14 | 北京千丁互联科技有限公司 | Point cloud data generation method and device, mobile terminal and readable storage medium |
CN113393572B (en) * | 2021-06-17 | 2023-07-21 | 北京千丁互联科技有限公司 | Point cloud data generation method and device, mobile terminal and readable storage medium |
CN114327728A (en) * | 2021-12-29 | 2022-04-12 | 浪潮卓数大数据产业发展有限公司 | Application unit grid construction method, device and medium |
Also Published As
Publication number | Publication date |
---|---|
CN110321125B (en) | 2023-03-28 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
Dourish | The stuff of bits: An essay on the materialities of information | |
US8601361B2 (en) | Automatically populating and/or generating tables using data extracted from files | |
CN111443912B (en) | Component-based page rendering method, device, computer equipment and storage medium | |
CN101604243A (en) | The user interface that shows selectable software function control related to selected object on context | |
CN109032999A (en) | Take down notes display methods, electronic equipment and computer storage medium | |
CN107704161A (en) | Information displaying method, device and terminal device | |
CN106021394A (en) | Website construction method and apparatus | |
US9165287B2 (en) | Apparatus and method for augmenting digital educational content with social learning tools | |
CN101908218A (en) | Editing equipment and method for arranging | |
CN108363684A (en) | List creation method, device and server | |
CN105700865A (en) | Personalized image-text creating method and system | |
CN110321125A (en) | Data configuration method, data configuration device and the readable storage medium storing program for executing of cell | |
CN108776575B (en) | Synchronous method, e-book reading device and the storage medium of the hand-written notes of user | |
CN114721632A (en) | Page design method and device based on low-code visual component | |
CN109857398A (en) | A kind of generation method of front end page, device, storage medium and computer equipment | |
CN112036149B (en) | File editing method and device, electronic equipment and storage medium | |
CN106775586A (en) | Data reordering method and device | |
CN115756692A (en) | Method for automatically combining and displaying pages based on style attributes and related equipment thereof | |
CN100517196C (en) | User interface displaying selectable software function control related to selected object on context | |
CN104461249B (en) | The arrangement display methods and device of graphical interfaces | |
CN111492408A (en) | Cartoon data display system, method, and program | |
CN114741064A (en) | Page generation method, device, system and storage medium | |
CN104793963A (en) | Message transcription method and device | |
CN113010129A (en) | Virtual studio full-flow multi-terminal blackboard writing extraction method and device | |
CN106980685A (en) | Data processing method and data processing equipment |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | 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 |