CN104503769A - Character dot matrix liquid crystal interface implementation method based on XML (extensive markup language) configuration file - Google Patents

Character dot matrix liquid crystal interface implementation method based on XML (extensive markup language) configuration file Download PDF

Info

Publication number
CN104503769A
CN104503769A CN201510008264.6A CN201510008264A CN104503769A CN 104503769 A CN104503769 A CN 104503769A CN 201510008264 A CN201510008264 A CN 201510008264A CN 104503769 A CN104503769 A CN 104503769A
Authority
CN
China
Prior art keywords
interface
configuration file
menu
xml configuration
xml
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
Application number
CN201510008264.6A
Other languages
Chinese (zh)
Other versions
CN104503769B (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)
  • Control Of Indicators Other Than Cathode Ray Tubes (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The invention discloses a character dot matrix liquid crystal interface implementation method based on an XML (extensive markup language) configuration file. The method includes the steps: generating the corresponding XML configuration file by the aid of an XML Creater auxiliary tool design interface, downloading the XML configuration file into a target board, and deconstructing XML configuration file description information; acquiring the XML configuration file description information; sequentially creating a menu interface example, a leaf node example and parent-child association relationships between menus and between each menu and a display interface according to an interface organization level relationship, a menu item and menu level relationship and a menu item and leaf node level relationship described by the XML configuration file; building an organization structure model of each page; establishing the association relationship between interface switching and a key; starting a main interface for displaying and monitoring key action. The method has the advantages that dot matrix liquid crystal interface development efficiency is improved, and inter-project code reuse rate is increased.

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 realization can generate menu or interface by service routine direct control character pattern liquid crystal, obtains corresponding modify program when there is amendment at interface.
When interface requirements is frequently revised, this kind of scheme is not too suitable.This code reusability is poor in addition, and during our program with unified platform exploitation difference in functionality, the reusability of code is too low.
Generally speaking, the technical matters needing those skilled in the art urgently to solve at present is: how to solve character pattern liquid crystal interface program code reusability low, can not maybe can not to realize the GUI code of same platform disparity items multiplexing at rapid tissue interface, cause the problem paying a large amount of duplication of labour.
Summary of the invention
Object of the present invention is exactly to solve the problem, and provides a kind of character pattern liquid crystal interface implementation method based on XML configuration file, and it has improves this type of lattice lcd interface development efficiency, improves rate of code reuse advantage between engineering.
To achieve these goals, the present invention adopts following technical scheme:
Based on a character pattern liquid crystal interface implementation method for XML configuration file, comprise the steps:
Step (1): use XMLCreater aid design interface, generate corresponding XML configuration file, XML configuration file is downloaded in Target Board, destructing process is carried out to XML configuration file descriptor; Obtain the hierarchical relationship of the hierarchical relationship of Interface Microstructure hierarchical relationship, menu entries and the menu that XML configuration file describes, menu entries and leaf node, interface property, menu properties and leaf node attribute;
Step (2): the hierarchical relationship of the hierarchical relationship of the Interface Microstructure hierarchical relationship that the XML configuration file that utilizes step (1) to obtain describes, menu entries and menu, menu entries and leaf node, successively establishment menu interface class example, leaf node class example, father and son's incidence relation between menu and menu and between menu and display interface;
Step (3): the organization structural model setting up each page: the menu properties information utilizing step (1) to obtain and leaf node attribute information, the menu interface class example create step (2) and leaf node class example carry out attribute expansion, expand each menu displaying contents and the concrete displaying contents of each leaf node; Character pattern liquid crystal interface can be shown according to the description in XML configuration file;
Step (4): set up the incidence relation between changing interface and button: the organization structural model of each page utilizing the Interface Microstructure hierarchical relationship of foundation in step (2) and step (3) to set up, sets up the respective rule of each page to often kind of button; The interactive mode of selection matrix button, the matrix press-key message of acquisition moves with each changing interface, cursor or the associating of content alteration, and need realize the establishment of each page rule according to the specific descriptions in configuration file;
Step (5): start main interface and carry out showing and monitoring actuation of keys.
The step of described step (1) is: adopt DOM interface to carry out destructing to XML configuration file root element <menu> to configuration file carrier XML configuration file call XML configuration file analysis classes.The interface level describe text and attribute thereof read successively, and are described interface level and attribute thereof by the class preset.Thus obtain Interface Microstructure hierarchical relationship and the interface property of XML file description.
The attribute that the attribute of described step (3) expands comprise displaying contents, can not changed item, can changed item, the source needing periodic refreshing item, refresh data and page layout.
Design proposal flow process:
In interface aid, showing interface content used predefine icon by pulling the mode of chart, to complete the organization work at interface.When interface produces a desired effect, this aid generates a standard compliant interface display XML file automatically.This XML file is downloaded in Target Board, when Target Board program brings into operation, the display interface understanding the effect same that can realize and realize in assistant software is carried out to it.
Beneficial effect of the present invention:
1. be menu interface and generic interface by interface abstraction.And use XML file to be described modeling to whole character pattern liquid crystal man-machine interface.Program generates interface according to this model file automatically.Custom Interface operation is simpler, Interface Microstructure and change more flexible.
2. describe based on file, easily revise.Reduce interface personnel technical threshold, this part operation changes file operation into by encoding operation, frequently need not change program.
3. improve this type of lattice lcd interface development efficiency, improve rate of code reuse between engineering; Rate of code reuse is high, is convenient to improve with the man-machine program development efficiency of platform difference in functionality equipment.
Accompanying drawing explanation
Fig. 1 is method flow diagram of the present invention.
Embodiment
Below in conjunction with accompanying drawing and embodiment, the invention will be further described.
As shown in Figure 1, a kind of character pattern liquid crystal interface implementation method based on XML configuration file, comprises the steps:
Step (1): use XMLCreater aid design interface, generate corresponding XML configuration file, XML configuration file is downloaded in Target Board, destructing process is carried out to XML configuration file descriptor; Obtain the hierarchical relationship of the hierarchical relationship of Interface Microstructure hierarchical relationship, menu entries and the menu that XML configuration file describes, menu entries and leaf node, interface property, menu properties and leaf node attribute;
Step (2): the hierarchical relationship of the hierarchical relationship of the Interface Microstructure hierarchical relationship that the XML configuration file that utilizes step (1) to obtain describes, menu entries and menu, menu entries and leaf node, successively establishment menu interface class example, leaf node class example, father and son's incidence relation between menu and menu and between menu and display interface;
Step (3): the organization structural model setting up each page: the menu properties information utilizing step (1) to obtain and leaf node attribute information, the menu interface class example create step (2) and leaf node class example carry out attribute expansion, expand each menu displaying contents and the concrete displaying contents of each leaf node; Character pattern liquid crystal interface can be shown according to the description in XML configuration file;
Step (4): set up the incidence relation between changing interface and button: the organization structural model of each page utilizing the Interface Microstructure hierarchical relationship of foundation in step (2) and step (3) to set up, sets up the respective rule of each page to often kind of button; The interactive mode of selection matrix button, the matrix press-key message of acquisition moves with each changing interface, cursor or the associating of content alteration, and need realize the establishment of each page rule according to the specific descriptions in configuration file;
Step (5): start main interface and carry out showing and monitoring actuation of keys.
The step of described step (1) is: adopt DOM interface to carry out destructing to XML configuration file root element <menu> to configuration file carrier XML configuration file call XML configuration file analysis classes.The interface level describe text and attribute thereof read successively, and are described interface level and attribute thereof by the class preset.Thus obtain Interface Microstructure hierarchical relationship and the interface property of XML file description.
The attribute that the attribute of described step (3) expands comprise displaying contents, can not changed item, can changed item, the source needing periodic refreshing item, refresh data and page layout.
By reference to the accompanying drawings the specific embodiment of the present invention is described although above-mentioned; but not limiting the scope of the invention; one of ordinary skill in the art should be understood that; on the basis of technical scheme of the present invention, those skilled in the art do not need to pay various amendment or distortion that creative work can make still within protection scope of the present invention.

Claims (3)

1., based on a character pattern liquid crystal interface implementation method for XML configuration file, it is characterized in that, comprise the steps:
Step (1): use XMLCreater aid design interface, generate corresponding XML configuration file, XML configuration file is downloaded in Target Board, destructing process is carried out to XML configuration file descriptor; Obtain the hierarchical relationship of the hierarchical relationship of Interface Microstructure hierarchical relationship, menu entries and the menu that XML configuration file describes, menu entries and leaf node, interface property, menu properties and leaf node attribute;
Step (2): the hierarchical relationship of the hierarchical relationship of the Interface Microstructure hierarchical relationship that the XML configuration file that utilizes step (1) to obtain describes, menu entries and menu, menu entries and leaf node, successively establishment menu interface class example, leaf node class example, father and son's incidence relation between menu and menu and between menu and display interface;
Step (3): the organization structural model setting up each page: the menu properties information utilizing step (1) to obtain and leaf node attribute information, the menu interface class example create step (2) and leaf node class example carry out attribute expansion, expand each menu displaying contents and the concrete displaying contents of each leaf node; Character pattern liquid crystal interface can be shown according to the description in XML configuration file;
Step (4): set up the incidence relation between changing interface and button: the organization structural model of each page utilizing the Interface Microstructure hierarchical relationship of foundation in step (2) and step (3) to set up, sets up the respective rule of each page to often kind of button; The interactive mode of selection matrix button, the matrix press-key message of acquisition moves with each changing interface, cursor or the associating of content alteration, and need realize the establishment of each page rule according to the specific descriptions in configuration file;
Step (5): start main interface and carry out showing and monitoring actuation of keys.
2. a kind of character pattern liquid crystal interface implementation method based on XML configuration file as claimed in claim 1, it is characterized in that, the step of described step (1) is: adopt DOM interface to carry out destructing to XML configuration file root element <menu> to configuration file carrier XML configuration file call XML configuration file analysis classes.The interface level describe text and attribute thereof read successively, and are described interface level and attribute thereof by the class preset.Thus obtain Interface Microstructure hierarchical relationship and the interface property of XML file description.
3. a kind of character pattern liquid crystal interface implementation method based on XML configuration file as claimed in claim 1, it is characterized in that, the attribute that the attribute of described step (3) expands comprise displaying contents, can not changed item, can changed item, the source needing periodic refreshing item, 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 true CN104503769A (en) 2015-04-08
CN104503769B 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)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105426188A (en) * 2015-11-16 2016-03-23 郑州众智科技股份有限公司 Dot matrix liquid crystal display controller based startup interface generation method
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
CN112199091A (en) * 2020-10-09 2021-01-08 河北恒源水务科技有限公司 Human-computer interaction interface stepped 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

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105426188A (en) * 2015-11-16 2016-03-23 郑州众智科技股份有限公司 Dot matrix liquid crystal display controller based startup interface generation method
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
CN112199091A (en) * 2020-10-09 2021-01-08 河北恒源水务科技有限公司 Human-computer interaction interface stepped switching method for embedded software development
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

Also Published As

Publication number Publication date
CN104503769B (en) 2017-06-20

Similar Documents

Publication Publication Date Title
CN104503769A (en) Character dot matrix liquid crystal interface implementation method based on XML (extensive markup language) configuration file
CN105528418B (en) A kind of design documentation generation method and device
CN104679903B (en) The operating method and device of a kind of tables of data
CN103543993A (en) Application program building method and system
RU2006133383A (en) VISUALIZATION OF THE USER INTERFACE
CN103176802B (en) Realize the method that the user interface UI of system separates with widget library by control pond
CN104424338A (en) Automatic generation device and automatic generation method for web system
CN103064682B (en) Device oriented human-machine interface configuration method for designing
CN105701183A (en) User personalized template implementation method and apparatus
CN103268226A (en) Test script file generation method and device
CN103955367A (en) Method and device for generating pages
CN105404512B (en) A kind of application window interface change method and device
CN105204859A (en) Animation management method and system
CN102122245A (en) Method and system for generating configuration item setting interface
CN105242931A (en) Method and system for editing and generating codes for game interface
CN103019738A (en) Numerical control system with customizable interface and implementation method of numerical control system
CN102541566A (en) Method for generating interface frameworks of semiconductor software
CN202904558U (en) Interface modeler device
CN103414750A (en) System and method for web visual editing of ANDROID client application
CN103810292A (en) Method and device for configuring graphical interface
CN104361098A (en) Method applied to customization of nodes in topological graph of cloud system
CN104834715A (en) Website generating method and system based on components and container
CN106815020A (en) A kind of software implementation method for supporting User Defined function items
CN103092609B (en) Show method, human-computer interaction device that configuration software and controller data are mutual
CN104809534A (en) Business process management system

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
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.

TR01 Transfer of patent right
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.

CP01 Change in the name or title of a patent holder
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