CN102436370A - Dynamic enumeration method - Google Patents
Dynamic enumeration method Download PDFInfo
- Publication number
- CN102436370A CN102436370A CN2011102307608A CN201110230760A CN102436370A CN 102436370 A CN102436370 A CN 102436370A CN 2011102307608 A CN2011102307608 A CN 2011102307608A CN 201110230760 A CN201110230760 A CN 201110230760A CN 102436370 A CN102436370 A CN 102436370A
- Authority
- CN
- China
- Prior art keywords
- dynamically
- dynamic
- enumeration
- enumerating
- interface
- 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.)
- Pending
Links
Images
Landscapes
- Stored Programmes (AREA)
Abstract
The invention relates to the field of computers, and provides a dynamic enumeration method. The method comprises the following steps of: creating dynamic enumeration information in a current application domain in a way of reflection so as to generate an enumeration class; then, providing a self-definition function for an application by using the enumeration class, and supporting the maintenance function of the dynamic enumeration, creating a new enumeration, deleting an existing enumeration, and updating enumeration. Therefore, a user can dynamically configure themes and skins on a main interface by using the mode; besides the main interface, plugins such as a web browser also can use the dynamic enumeration function so as to flexibly complete corresponding self-defined configurations.
Description
Technical field
The present invention relates to computer realm, particularly relate to a kind of method of dynamically enumerating.
Background technology
Along with the develop rapidly that computing machine is made industry, the processing power of personal computer from strength to strength, PC operating system gets into the graphic interface epoch comprehensively, even has also generally adopted the operating system of graphic interface in the portable set.In the graphical operation system of numerous main flows; Figure OS like Windows series, Mac OS series or partial L inux/BSD/Solaris; Its open source code whether no matter, an one of which significant common ground is exactly all to provide graphic user interface to supply the user to manipulate.
In order to adapt with the patterned trend of OS, the application program in the operating system also changes the operation interface of its original order line or plain text one after another, has adopted the mode of graphic user interface to provide support.Graphic user interface is except visually being easier to be accepted by the user, and more significant advantage is that it is very easy to the use of unprofessional user.Command Line Interface often needs the user to keep operational order firmly in mind, from being familiar with ordering skilled use to need a very long process.And adopted after the graphic user interface; The user no longer need memorize mechanically a large amount of orders; The substitute is and to come to operate easily through modes such as window, menu, buttons; This mode has obviously been improved user experience, also is very easy to the popularization of application program and the cultivation of customer group.
But; Present application program all is to carry out program design by the software developer usually; Using the interface is to realize that in the program design stage then the concrete form at interface can only be determined by the developer too, and the user can only accept a certain interface and style thereof passively.Even few part developer has revised the interface according to user's feedback, still in developer's hand, feedback is revised again also usually need the long time for the operation power at modification interface.Thereby present stage; The user of most application programs can not come directly adjustment to use the interface according to individual's custom and application demand; This has reduced user's experience to a great extent; Limited freely bringing into play of user, be unfavorable for that also function that the user makes full use of application program carries out secondary and use.
Summary of the invention
The technical matters that (one) will solve
Shortcoming to prior art; The present invention is in order to solve the problem that the user dynamically adjusts graphic user interface; The implementation of dynamically enumerating is provided; Come to show in real time adjusted operation interface through loading user-defined enumeration element, thereby support the user to on-the-fly modify the requirement of operation interface.
(2) technical scheme
For solving the problems of the technologies described above, the present invention specifically adopts following technical scheme to carry out:
A kind of method of dynamically enumerating, the method comprising the steps of:
S1 when this initialization of finance, through configuration file, reads and dynamically enumerates information list;
S2 when loading at the interface, through reading the information of dynamically enumerating in the said tabulation, creates dynamic enumeration element, and dynamic enumeration element is loaded in the interface;
S3 upgrades at needs and dynamically to enumerate information or deletion when dynamically enumerating information, calls and enumerates factory class, carries out and upgrades or deletion action, and the up-to-date information of enumerating is kept in internal memory and the file;
S4 according to the said up-to-date information of enumerating, changes the configuration file node corresponding and generates new dynamic enumeration element;
S5, according to said new dynamic enumeration element, through reflection, in the dynamic enumeration element model tabulation of local memory stores, and dynamic load shows in the interface.
Preferably, among the step S5, also adopt to postpone load strategy, and if only if when the user needs, and just carries out said reflection and dynamic load.
(3) beneficial effect
The present invention is through dynamically enumerating finance interface element originally; Improve the user and on this this platform of finance, changed the dirigibility of theme and skin; And can be through revising enumeration element; Realize the theme and the skin of any style, a kind of instrument of adjusting operation interface quickly and easily is provided.
Description of drawings
The method flow diagram of Fig. 1 for dynamically enumerating among the present invention.
Embodiment
To combine the accompanying drawing in the embodiment of the invention below, the technical scheme in the embodiment of the invention is carried out clear, intactly description, obviously, described embodiment is a part of embodiment of the present invention, rather than whole embodiment.Based on the embodiment among the present invention, the every other embodiment that those of ordinary skills are obtained under the prerequisite of not making creative work belongs to the scope that the present invention protects.
The software of common replaceable look & feel (being called " changing skin " again) generally is a whole set of interface scheme that direct loading has designed; The interface scheme of this mode in fact also just designs when exploitation; To the change at interface still underaction, user-operable property also is similar to not to be had.
Mainly create the information of dynamically enumerating in the current application program territory among the present invention through reflection way; Generation type of enumerating utilizes type of enumerating application programs that self-defining function is provided, simultaneously then; Also support the maintenance function dynamically enumerate; Create and newly enumerate, delete an existing operation of enumerating and upgrading to enumerate.On main interface, can carry out the dynamic-configuration of theme and skin through this mode, except that main interface, the function of dynamically enumerating that plug-in units such as browser also utilize has been accomplished corresponding self-defined configuration flexibly.All information of dynamically enumerating exist in the local file, and can utilize easily serializing and unserializing with information in internal memory and file synchronously.
Particularly, in an embodiment of the present invention, be primarily aimed at this desktop integration platform of this platform of finance and be optimized; Finance originally is a kind of financial business portable equipment; Be made up of two parts of hardware and software, hardware is a palm PC based on the X86 framework, and software is based on the fail-safe software platform of WES7; The user can realize various financial transactions through using software platform for its special function that provides and service.Whole financial native system comprises: start module, be used to receive enabling signal and start the operating system; Detection module is used for after os starting, judging whether that needs start the security control platform, and the security control platform is the workbench of financial business; Business module is used for when detection module detects needs startup security control platform, starting the financial business interface, and the processing of financial business; Communication module is used for and the communication of financial business server; Input/output module is used for input information, operational order and shows the output result; Parsing module is used to resolve the information from the financial business server that communication module receives; Calling module is used for the call by result business module of resolving according to parsing module.This platform of finance is as a new combined application program; The user-defined realization function of enumerating is provided, can have satisfied loading the user, improved the dirigibility of user's replacing theme and skin on this this platform of finance through self-defining enumeration element; And can be through revising enumeration element; Realize the theme and the skin (as long as this enumeration element file is realized according to certain mode) of any style, having demonstrated fully with user is this, is the design concept of guiding with the demand.
The operation of carrying out such as changing skin etc. is dynamically enumerated in finance this supports use; The relevant information that the user can dynamically enumerate through simple change in the finance basis (for example: describe; Theme; Color, and the path in theme storehouse etc.) realize calling any theme and skin storehouse through a finance principle that direct utilization is dynamically enumerated.Be shown in the following figure; One or more elements during correspondence is dynamically enumerated through designated key are (like character string { " enumerating name ": " Default Subject "; " enumerated value ": 0; " description ": " Default Subject ", " literal ": " style " } be exactly one of them element of dynamically enumerating), realize utilizing and dynamically enumerate the function of changing theme or skin.
Referring to Fig. 1, the method for dynamically enumerating in the finance basis is specially:
S1 when finance is originally initialized, through configuration file, reads and dynamically enumerates information list.
S2 when the interface loads, through reading the information of dynamically enumerating in the said tabulation, creates dynamic enumeration element, and dynamic enumeration element is loaded in the interface.
S3 upgrades at needs and dynamically to enumerate when information or deletion dynamically enumerate information, calls corresponding method, carries out and upgrades or deletion action, then up-to-date information is kept in internal memory and the file.
S4 generates new dynamic enumeration element through changing modes such as configuration file node corresponding.
S5, according to said new dynamic enumeration element, through reflection, in the dynamic enumeration element model tabulation of local memory stores, and dynamic load shows in the interface.
Among the present invention, the finance ultimate principle of dynamically enumerating function originally is to realize through the reflection mode, utilizes reflection, when improving dirigibility, also can bring some losses to performance.Further through postpone loading the strategy processing of compromising, making the user and if only and if in needs, just can create among the present invention through dynamically enumerating.So both keep the dirigibility of dynamically enumerating, and made performance can not have a great deficit again.
Present technique is intended to utilize the dirigibility of reflection technology binding in evening; Read user's theme and skin information through configuration; Utilization is enumerated factory and is come dynamic the establishment to enumerate; And realize the maintenance function dynamically enumerated (for example create new dynamically enumerating, upgrade existing dynamically enumerate and delete dynamically and enumerate) etc.
Through dynamically enumerating function, the user can define theme, skin hereof; Describe, and information such as resource file, all information can be seen after application program master interface starts; And support dynamic update functions, and make user interface no longer uninteresting, user experience is no longer single.
Above embodiment only is used to explain the present invention; And be not limitation of the present invention; The those of ordinary skill in relevant technologies field under the situation that does not break away from the spirit and scope of the present invention, can also be made various variations and modification; Therefore all technical schemes that are equal to also belong to category of the present invention, and invention protection domain of the present invention should be defined by the claims.
Claims (2)
1. a method of dynamically enumerating is characterized in that, said method comprises step:
S1 when this initialization of finance, through configuration file, reads and dynamically enumerates information list;
S2 when loading at the interface, through reading the information of dynamically enumerating in the said tabulation, creates dynamic enumeration element, and dynamic enumeration element is loaded in the interface;
S3 upgrades at needs and dynamically to enumerate information or deletion when dynamically enumerating information, calls and enumerates factory class, carries out and upgrades or deletion action, and the up-to-date information of enumerating is kept in internal memory and the file;
S4 according to the said up-to-date information of enumerating, changes the configuration file node corresponding and generates new dynamic enumeration element;
S5, according to said new dynamic enumeration element, through reflection, in the dynamic enumeration element model tabulation of local memory stores, and dynamic load shows in the interface.
2. method according to claim 1 is characterized in that, among the step S5, also adopt to postpone loads strategy, and and if only if when the user needs, and just carries out said reflection and dynamic load.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN2011102307608A CN102436370A (en) | 2011-08-12 | 2011-08-12 | Dynamic enumeration method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN2011102307608A CN102436370A (en) | 2011-08-12 | 2011-08-12 | Dynamic enumeration method |
Publications (1)
Publication Number | Publication Date |
---|---|
CN102436370A true CN102436370A (en) | 2012-05-02 |
Family
ID=45984450
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN2011102307608A Pending CN102436370A (en) | 2011-08-12 | 2011-08-12 | Dynamic enumeration method |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN102436370A (en) |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104252341A (en) * | 2013-06-26 | 2014-12-31 | 腾讯科技(深圳)有限公司 | Method and device for resurfacing application program and client side device of application program |
CN104580298A (en) * | 2013-10-17 | 2015-04-29 | 北大方正集团有限公司 | File uploading processing method and device |
CN107092501A (en) * | 2017-03-20 | 2017-08-25 | 武汉斗鱼网络科技有限公司 | The implementation method and device of advertisement general-purpose interface in a kind of android system |
CN110019407A (en) * | 2017-12-29 | 2019-07-16 | 北京金风科创风电设备有限公司 | Processing method, device, equipment and storage medium for enumeration data in wind power plant |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101359291A (en) * | 2008-09-08 | 2009-02-04 | 深圳华为通信技术有限公司 | Method and device for replacing interface styles |
CN101561747A (en) * | 2009-05-25 | 2009-10-21 | 腾讯科技(深圳)有限公司 | Method and device for outputting user interface of client |
CN101694620A (en) * | 2009-11-06 | 2010-04-14 | 无敌科技(西安)有限公司 | Method for replacing theme style of display interface |
CN102103504A (en) * | 2011-02-21 | 2011-06-22 | 温玮 | Reflection-type modeling tool and reconstruction method thereof |
-
2011
- 2011-08-12 CN CN2011102307608A patent/CN102436370A/en active Pending
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101359291A (en) * | 2008-09-08 | 2009-02-04 | 深圳华为通信技术有限公司 | Method and device for replacing interface styles |
CN101561747A (en) * | 2009-05-25 | 2009-10-21 | 腾讯科技(深圳)有限公司 | Method and device for outputting user interface of client |
CN101694620A (en) * | 2009-11-06 | 2010-04-14 | 无敌科技(西安)有限公司 | Method for replacing theme style of display interface |
CN102103504A (en) * | 2011-02-21 | 2011-06-22 | 温玮 | Reflection-type modeling tool and reconstruction method thereof |
Cited By (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104252341A (en) * | 2013-06-26 | 2014-12-31 | 腾讯科技(深圳)有限公司 | Method and device for resurfacing application program and client side device of application program |
CN104580298A (en) * | 2013-10-17 | 2015-04-29 | 北大方正集团有限公司 | File uploading processing method and device |
CN107092501A (en) * | 2017-03-20 | 2017-08-25 | 武汉斗鱼网络科技有限公司 | The implementation method and device of advertisement general-purpose interface in a kind of android system |
CN107092501B (en) * | 2017-03-20 | 2019-04-23 | 武汉斗鱼网络科技有限公司 | The implementation method and device of advertisement general-purpose interface in a kind of android system |
CN110019407A (en) * | 2017-12-29 | 2019-07-16 | 北京金风科创风电设备有限公司 | Processing method, device, equipment and storage medium for enumeration data in wind power plant |
CN110019407B (en) * | 2017-12-29 | 2021-07-13 | 北京金风科创风电设备有限公司 | Processing method, device, equipment and storage medium for enumeration data in wind power plant |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
EP2530583B1 (en) | Computer-implemented method, system and computer program product for displaying a user interface component | |
CN102789382B (en) | For the system and method that list generates and runs | |
US7908297B2 (en) | User interface property mapping | |
US20160179481A1 (en) | Web server system, application development support system, multilingual support method in web server system, multi-device support method in web server system, and application development support method | |
JP5047401B1 (en) | Project data creation device and programmable display | |
CN105760168A (en) | Automatic code file generation method and system | |
MX2013014795A (en) | Automated user interface object transformation and code generation. | |
CN103927163A (en) | Plugin frame processing device and plugin system | |
CN102360290A (en) | Form building device and form building method | |
CN107092589B (en) | Web server system, screen control display method, and presentation application generation method | |
CN102436370A (en) | Dynamic enumeration method | |
US20210365258A1 (en) | Method and system for updating legacy software | |
CN105242931A (en) | Method and system for editing and generating codes for game interface | |
CN103500099B (en) | A kind of method that the quick secondary development of software is realized by extension point and extension | |
US20080184078A1 (en) | Manipulating a configuration file for a network switch | |
CN103049260A (en) | Method and system for displaying user interface of software at client | |
JP2016066355A (en) | Web application generating system, control method of web application generating system, program for web application generating system, web application generating device, control method of web application generating device, and program for web application generating device | |
CN106843862A (en) | A kind of method that Swing interfaces automatically form | |
US7487227B2 (en) | Scripting engine having a sequencer table and a plurality of secondary tables for network communication software | |
WO2016201813A1 (en) | Dynamic layout method and system based on android | |
CN109960522B (en) | Software upgrading method and device | |
Jørgensen et al. | Variability handling for mobile banking apps on ios and android | |
CN112364269B (en) | Method for creating WebApp graphic application based on URL | |
CN104598227A (en) | Method for modifying content of system presentation page | |
CN101539860B (en) | Method for configuring running interface of executable program and device |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C02 | Deemed withdrawal of patent application after publication (patent law 2001) | ||
WD01 | Invention patent application deemed withdrawn after publication |
Application publication date: 20120502 |