CN104503769B - A kind of character pattern liquid crystal interface implementation method based on XML configuration file - Google Patents

A kind of character pattern liquid crystal interface implementation method based on XML configuration file Download PDF

Info

Publication number
CN104503769B
CN104503769B CN201510008264.6A CN201510008264A CN104503769B CN 104503769 B CN104503769 B CN 104503769B CN 201510008264 A CN201510008264 A CN 201510008264A CN 104503769 B CN104503769 B CN 104503769B
Authority
CN
China
Prior art keywords
interface
configuration file
menu
xml configuration
hierarchical relationship
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
CN201510008264.6A
Other languages
Chinese (zh)
Other versions
CN104503769A (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.)
Shandong luruan Digital Technology Co.,Ltd. smart energy branch
Original Assignee
Shandong Luneng Intelligence 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 Shandong Luneng Intelligence Technology Co Ltd filed Critical Shandong Luneng Intelligence Technology Co Ltd
Priority to CN201510008264.6A priority Critical patent/CN104503769B/en
Publication of CN104503769A publication Critical patent/CN104503769A/en
Application granted granted Critical
Publication of CN104503769B publication Critical patent/CN104503769B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Digital Computer Display Output (AREA)
  • Controls And Circuits For Display Device (AREA)
  • User Interface Of Digital Computer (AREA)
  • Control Of Indicators Other Than Cathode Ray Tubes (AREA)

Abstract

The invention discloses a kind of character pattern liquid crystal interface implementation method based on XML configuration file, comprise the following steps:Using XMLCreater aid design interfaces, generation correspondence XML configuration file downloads in Target Board XML configuration file, and destructing treatment is carried out to XML configuration file description information;Obtain the information of XML configuration file description;The hierarchical relationship of the Interface Microstructure hierarchical relationship, the hierarchical relationship of menu entries and menu, menu entries and the leaf node that are described using the XML configuration file for obtaining, creates menu interface class example, leaf node class example, the father and son's incidence relation between menu and menu and between menu and display interface successively;Set up the organization structural model of each page:The incidence relation set up between changing interface and button;Start main interface to be shown and monitored actuation of keys.The present invention has the such lattice lcd interface development efficiency of raising, improves rate of code reuse advantage between engineering.

Description

A kind of character pattern liquid crystal interface implementation method based on XML configuration file
Technical field
The present invention relates to a kind of character pattern liquid crystal interface implementation method based on XML configuration file.
Background technology
Traditional interface realizes that menu or interface can be generated using the direct operational character lattice lcd of program, when interface is repaiied Obtained when changing and accordingly change program.
When interface requirements are frequently changed, this kind of scheme is less suitable.Other this code reusability is poor, and we use system During the program of one platform development difference in functionality, the reusability of code is too low.
Sum it up, a technical problem for needing those skilled in the art urgently to solve at present is:How character is solved Lattice lcd interface program rate of code reuse is low, it is impossible to reaches rapid tissue interface or can not realize the interface of same platform disparity items Code reuse, causes that the problem of a large amount of duplications of labour can be paid.
The content of the invention
The purpose of the present invention is exactly to solve the above problems, there is provided a kind of character pattern liquid based on XML configuration file Brilliant interface implementing method, it has improves such lattice lcd interface development efficiency, improves rate of code reuse advantage between engineering.
To achieve these goals, the present invention is adopted the following technical scheme that:
A kind of character pattern liquid crystal interface implementation method based on XML configuration file, comprises the following steps:
Step (1):Using XMLCreater aid design interfaces, generation correspondence XML configuration file configures XML File download carries out destructing treatment in Target Board to XML configuration file description information;Obtain the boundary of XML configuration file description The hierarchical relationship of covering weave hierarchical relationship, menu entries and menu, the hierarchical relationship of menu entries and leaf node, interface category Property, menu properties and leaf node attribute;
Step (2):Using step (1) obtain XML configuration file describe Interface Microstructure hierarchical relationship, menu entries with The hierarchical relationship of the hierarchical relationship, menu entries and leaf node of menu, creates menu interface class example, leaf node class successively Father and son's incidence relation between example, menu and menu and between menu and display interface;
Step (3):Set up the organization structural model of each page:The menu properties information and leaf obtained using step (1) Child node attribute information, the menu interface class example and leaf node class example created to step (2) carries out attribute expansion, expands Each menu display content and each leaf node are particularly shown content;Character pattern liquid crystal interface is set to be configured according to XML Description in file is shown;
Step (4):The incidence relation set up between changing interface and button:Using the Interface Microstructure set up in step (2) The organization structural model of each page that hierarchical relationship and step (3) are set up, sets up corresponding rule of each page to every kind of button Then;The interactive mode of selection matrix button, matrix press-key message and each changing interface, cursor movement or the content alteration of acquisition Association, specific descriptions that need to be in configuration file realize the establishment of each page rule;
Step (5):Start main interface to be shown and monitored actuation of keys.
The step of step (1) is:Configuration file carrier XML configuration file call XML configuration file analysis classes are adopted With DOM interface to XML configuration file root element<menu>Deconstructed.The interface level and its attribute that text is described enter successively Row reads, and interface level and its attribute are described with default class.So as to obtain the Interface Microstructure layer of XML file description Level relation and interface property.
The attribute that the attribute of the step (3) expands include display content, can not changed item, can changed item, need timing Refresh item, the source of refresh data and page layout.
Design flow:
By showing interface content using having predefined icon by way of pulling chart in interface aid, Complete the organization work at interface.When interface produces a desired effect, this aid automatically generates a standard compliant interface and shows Show and use XML file.It is real by being understood to it when Target Board program brings into operation during this XML file downloaded into Target Board Now with the display interface of the effect same of realization in auxiliary software.
Beneficial effects of the present invention:
1. it is menu interface and generic interface by interface abstraction.And it is man-machine to whole character pattern liquid crystal using XML file Interface is described modeling.Program generates interface automatically according to this model file.Custom Interface operation is simpler, Interface Microstructure and Change is more flexible.
2. described based on file, be easily modified.Interface personnel's technical threshold is reduced, this part operation is by encoding operation File operation is changed to, without frequently change program.
3. such lattice lcd interface development efficiency is improved, rate of code reuse between engineering is improved;Rate of code reuse is high, is easy to Improve with the man-machine program development efficiency of platform difference in functionality equipment.
Brief description of the drawings
Fig. 1 is flow chart of the method for the present invention.
Specific embodiment
The invention will be further described with embodiment below in conjunction with the accompanying drawings.
As shown in figure 1, a kind of character pattern liquid crystal interface implementation method based on XML configuration file, comprises the following steps:
Step (1):Using XMLCreater aid design interfaces, generation correspondence XML configuration file configures XML File download carries out destructing treatment in Target Board to XML configuration file description information;Obtain the boundary of XML configuration file description The hierarchical relationship of covering weave hierarchical relationship, menu entries and menu, the hierarchical relationship of menu entries and leaf node, interface category Property, menu properties and leaf node attribute;
Step (2):Using step (1) obtain XML configuration file describe Interface Microstructure hierarchical relationship, menu entries with The hierarchical relationship of the hierarchical relationship, menu entries and leaf node of menu, creates menu interface class example, leaf node class successively Father and son's incidence relation between example, menu and menu and between menu and display interface;
Step (3):Set up the organization structural model of each page:The menu properties information and leaf obtained using step (1) Child node attribute information, the menu interface class example and leaf node class example created to step (2) carries out attribute expansion, expands Each menu display content and each leaf node are particularly shown content;Character pattern liquid crystal interface is set to be configured according to XML Description in file is shown;
Step (4):The incidence relation set up between changing interface and button:Using the Interface Microstructure set up in step (2) The organization structural model of each page that hierarchical relationship and step (3) are set up, sets up corresponding rule of each page to every kind of button Then;The interactive mode of selection matrix button, matrix press-key message and each changing interface, cursor movement or the content alteration of acquisition Association, specific descriptions that need to be in configuration file realize the establishment of each page rule;
Step (5):Start main interface to be shown and monitored actuation of keys.
The step of step (1) is:Configuration file carrier XML configuration file call XML configuration file analysis classes are adopted With DOM interface to XML configuration file root element<menu>Deconstructed.The interface level and its attribute that text is described enter successively Row reads, and interface level and its attribute are described with default class.So as to obtain the Interface Microstructure layer of XML file description Level relation and interface property.
The attribute that the attribute of the step (3) expands include display content, can not changed item, can changed item, need timing Refresh item, the source of refresh data and page layout.
Although above-mentioned be described with reference to accompanying drawing to specific embodiment of the invention, not to present invention protection model The limitation enclosed, one of ordinary skill in the art should be understood that on the basis of technical scheme those skilled in the art are not Need the various modifications made by paying creative work or deformation still within protection scope of the present invention.

Claims (3)

1. a kind of character pattern liquid crystal interface implementation method based on XML configuration file, it is characterized in that, comprise the following steps:
Step (1):Use XMLCreater aid design interfaces, generation correspondence XML configuration file, by XML configuration file Download in Target Board, destructing treatment is carried out to XML configuration file description information;Obtain the interface group of XML configuration file description Knit hierarchical relationship, interface property, the dish of hierarchical relationship, menu entries and the leaf node of hierarchical relationship, menu entries and menu Single attribute and leaf node attribute;
Step (2):Interface Microstructure hierarchical relationship, menu entries and menu that the XML configuration file obtained using step (1) is described Hierarchical relationship, menu entries and leaf node hierarchical relationship, menu interface class example, leaf node class reality are created successively Example, the father and son's incidence relation between menu and menu and between menu and display interface;
Step (3):Set up the organization structural model of each page:The menu properties information and leaf section obtained using step (1) Point attribute information, the menu interface class example and leaf node class example created to step (2) carries out attribute expansion, expands each Menu display content and each leaf node are particularly shown content;Enable character pattern liquid crystal interface according to XML configuration file In description shown;
Step (4):The incidence relation set up between changing interface and button:Using the Interface Microstructure level set up in step (1) The organization structural model of each page that relation and step (3) are set up, sets up respective rule of each page to every kind of button;Choosing Select the interactive mode of matrix press-key, the matrix press-key message of acquisition and the pass of each changing interface, cursor movement or content alteration Connection, specific descriptions that need to be in configuration file realize the regular establishment of each page;
Step (5):Start main interface to be shown and monitored actuation of keys.
2. a kind of character pattern liquid crystal interface implementation method based on XML configuration file as claimed in claim 1, its feature It is to be the step of step (1):DOM is used to configuration file carrier XML configuration file call XML configuration file analysis classes Interface is to XML configuration file root element<menu>Deconstructed;The interface level and its attribute that text is described are read successively Take, and interface level and its attribute are described with default class;So as to the Interface Microstructure level for obtaining XML file description is closed System and interface property.
3. a kind of character pattern liquid crystal interface implementation method based on XML configuration file as claimed in claim 1, its feature Be, the attribute that the attribute of the step (3) expands include display content, can not changed item, can changed item, need periodic refreshing Item, the source of refresh data and page layout.
CN201510008264.6A 2015-01-07 2015-01-07 A kind of character pattern liquid crystal interface implementation method based on XML configuration file Active CN104503769B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510008264.6A CN104503769B (en) 2015-01-07 2015-01-07 A kind of character pattern liquid crystal interface implementation method based on XML configuration file

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510008264.6A CN104503769B (en) 2015-01-07 2015-01-07 A kind of character pattern liquid crystal interface implementation method based on XML configuration file

Publications (2)

Publication Number Publication Date
CN104503769A CN104503769A (en) 2015-04-08
CN104503769B true CN104503769B (en) 2017-06-20

Family

ID=52945170

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510008264.6A Active CN104503769B (en) 2015-01-07 2015-01-07 A kind of character pattern liquid crystal interface implementation method based on XML configuration file

Country Status (1)

Country Link
CN (1) CN104503769B (en)

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105426188B (en) * 2015-11-16 2018-09-14 郑州众智科技股份有限公司 Starting-up interface generation method based on Dot-Matric LCD Display controller
CN106909415A (en) * 2015-12-23 2017-06-30 北京迪文科技有限公司 The method that human-computer interaction function is realized based on configurationization
CN109947446A (en) * 2019-02-22 2019-06-28 南京电研电力自动化股份有限公司 A kind of protective device liquid crystal display method of general configurable auto upgrading menu
CN112199091B (en) * 2020-10-09 2023-11-24 河北恒源水务科技有限公司 Man-machine interaction interface stepwise switching method for embedded software development
CN112764831A (en) * 2021-01-19 2021-05-07 中盈优创资讯科技有限公司 Configuration file analysis method and device based on user-defined extensible markup language
CN113741746A (en) * 2021-07-29 2021-12-03 南方电网深圳数字电网研究院有限公司 Method, system, device and storage medium for visual scene switching

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1435567A2 (en) * 2002-12-18 2004-07-07 Microsoft Corporation User interface element representation with simplified view
CN101082865A (en) * 2007-06-29 2007-12-05 中兴通讯股份有限公司 Automatically generating method based on data driving interface
CN101246424A (en) * 2008-02-22 2008-08-20 深圳国人通信有限公司 Menu automatic generation system and method for based on file
CN101266544A (en) * 2008-03-12 2008-09-17 浪潮集团山东通用软件有限公司 Agile setting human-machine interactive interface accomplishing method
CN102541566A (en) * 2012-01-04 2012-07-04 北京七星华创电子股份有限公司 Method for generating interface frameworks of semiconductor software

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1435567A2 (en) * 2002-12-18 2004-07-07 Microsoft Corporation User interface element representation with simplified view
CN101082865A (en) * 2007-06-29 2007-12-05 中兴通讯股份有限公司 Automatically generating method based on data driving interface
CN101246424A (en) * 2008-02-22 2008-08-20 深圳国人通信有限公司 Menu automatic generation system and method for based on file
CN101266544A (en) * 2008-03-12 2008-09-17 浪潮集团山东通用软件有限公司 Agile setting human-machine interactive interface accomplishing method
CN102541566A (en) * 2012-01-04 2012-07-04 北京七星华创电子股份有限公司 Method for generating interface frameworks of semiconductor software

Also Published As

Publication number Publication date
CN104503769A (en) 2015-04-08

Similar Documents

Publication Publication Date Title
CN104503769B (en) A kind of character pattern liquid crystal interface implementation method based on XML configuration file
CN104731584B (en) A kind of customized configuration design method of Open Architecture CNC System of Display Interface
CN105653644B (en) A kind of page constructor and page building method
CN104424338B (en) The automatically generating device and automatic generation method of web system
CN108228287A (en) The generation method and device of user interface controls based on QT
CN103543993A (en) Application program building method and system
WO2010120579A2 (en) Utilizing spreadsheet user interfaces with flowsheets of a cpi simulation system
RU2006133383A (en) VISUALIZATION OF THE USER INTERFACE
CN106557314A (en) Applied software development method and device
CN104662541A (en) System and method for creating application interfaces for forming and solving problems in a modeling system
CN100498698C (en) General interface design interface system and interface developing method using said system
CN103414750B (en) The method of the client application of Web visual edit ANDROID
CN109716294A (en) With the user interface for moving mini label
CN103793226B (en) Pervasive application code framework fast-generating method and prototype system
CN109814858A (en) The general UI Component Gallery of WEB front-end based on Vue framework
CN105242931A (en) Method and system for editing and generating codes for game interface
CN102541566A (en) Method for generating interface frameworks of semiconductor software
CN112445564B (en) Interface display method, electronic device and computer readable storage medium
CN103064682A (en) Device-orientated human-computer interface configuration design method
CN103019738A (en) Numerical control system with customizable interface and implementation method of numerical control system
CN110688115A (en) Method and device for generating interface
JP2008203912A (en) Screen forming apparatus, method and program
CN103810292A (en) Method and device for configuring graphical interface
CN105302558A (en) Content presentation system and method for multiple clients
CN106815020A (en) A kind of software implementation method for supporting User Defined function items

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
CP03 Change of name, title or address

Address after: 250101 Electric Power Intelligent Robot Production Project 101 in Jinan City, Shandong Province, South of Feiyue Avenue and East of No. 26 Road (ICT Industrial Park)

Patentee after: National Network Intelligent Technology Co., Ltd.

Address before: 250101 Shandong city of Ji'nan province high tech Zone (Lixia District) Xinluo Avenue No. 2008 silver bearing building B block 626

Patentee before: Shandong Luneng Intelligent Technology Co., Ltd.

CP03 Change of name, title or address
TR01 Transfer of patent right

Effective date of registration: 20201214

Address after: Room 902, 9 / F, block B, Yinhe building, 2008 Xinluo street, hi tech Zone, Jinan City, Shandong Province

Patentee after: Shandong Luneng Software Technology Co.,Ltd. intelligent electrical branch

Address before: 250101 power intelligent robot production project 101 south of Feiyue Avenue and east of No.26 Road (in ICT Industrial Park) in Suncun District of Gaoxin, Jinan City, Shandong Province

Patentee before: National Network Intelligent Technology Co.,Ltd.

TR01 Transfer of patent right
CP01 Change in the name or title of a patent holder

Address after: Room 902, 9 / F, block B, Yinhe building, 2008 Xinluo street, hi tech Zone, Jinan City, Shandong Province

Patentee after: Shandong luruan Digital Technology Co.,Ltd. smart energy branch

Address before: Room 902, 9 / F, block B, Yinhe building, 2008 Xinluo street, hi tech Zone, Jinan City, Shandong Province

Patentee before: Shandong Luneng Software Technology Co.,Ltd. intelligent electrical branch

CP01 Change in the name or title of a patent holder