CN101287220B - Subject management system and method for mobile terminal - Google Patents

Subject management system and method for mobile terminal Download PDF

Info

Publication number
CN101287220B
CN101287220B CN2008101095215A CN200810109521A CN101287220B CN 101287220 B CN101287220 B CN 101287220B CN 2008101095215 A CN2008101095215 A CN 2008101095215A CN 200810109521 A CN200810109521 A CN 200810109521A CN 101287220 B CN101287220 B CN 101287220B
Authority
CN
China
Prior art keywords
pattern
control
expansion
acquiescence
module
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.)
Expired - Fee Related
Application number
CN2008101095215A
Other languages
Chinese (zh)
Other versions
CN101287220A (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.)
ZTE Corp
Original Assignee
ZTE Corp
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 ZTE Corp filed Critical ZTE Corp
Priority to CN2008101095215A priority Critical patent/CN101287220B/en
Publication of CN101287220A publication Critical patent/CN101287220A/en
Application granted granted Critical
Publication of CN101287220B publication Critical patent/CN101287220B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

The invention provides a theme management system of a mobile terminal, which comprises a pattern file used for storing default control patterns and expansion control patterns which are used for the configuring of controls, an engine management module used for calling default resource pattern modules and analyzing the default control patterns and loading an expansion engine on the condition that the controls are configured by utilizing the expansion control patterns and the expansion engine for analyzing the expansion control patterns and drawing the expanded controls. The invention also provides a theme management method of the mobile terminal. Thereby, users can configure the needed patterns in the pattern file and developers can develop the personal patterns of controls.

Description

The theme management system of portable terminal and Subject Manager method
Technical field
The present invention relates to a kind of system and method for management and application program theme, more specifically, relate to a kind of theme management system and Subject Manager method of portable terminal.
Background technology
In GUI (graphical user interface) exploitation, can use control widely.A large amount of controls gets up through container control, layout control, the rational tissue of window control etc.These controls can show through certain shape, overall appearance.Subject Manager is the demonstration outward appearance that is used for managing all controls.The user can select different themes, obtains the control outward appearance of different-style.The user can select the theme oneself liked like this., the Subject Manager of general portable terminal does not provide the outward appearance of concrete certain control of user oneself configuration, just offers several kinds of themes of user and selects.The control outward appearance that the user disposes oneself if desired with regard to difficult to realize.In addition, the Subject Manager of general portable terminal does not offer the function that the developer expands the control outward appearance, and inconvenient developer develops abundant more control outward appearance for control.
Summary of the invention
Consider the problems referred to above and make the present invention that for this reason, fundamental purpose of the present invention is, a kind of theme management system and Subject Manager method of portable terminal is provided.
According to an aspect of the present invention, a kind of theme management system of portable terminal is provided, it comprises:
The pattern file is used to preserve the acquiescence control pattern and expansion control pattern that are used for disposing control;
The engine management module is used to call default resource pattern module parses acquiescence control pattern, and under the situation of utilizing expansion control style configuration control, loads the expansion engine; And
The expansion engine is used to resolve expansion control pattern and draws the control through expansion.
The expansion engine can comprise: extended resources pattern module is used for resolving expansion control pattern and generating pattern data; And expansion Show Styles module, be used for drawing control through expansion according to the pattern data that generates by extended resources pattern module.
Extended resources pattern module can also be used to preserve the acquiescence control pattern of having resolved, and the expansion control pattern of parsing is merged with the acquiescence control pattern of having resolved mutually generate pattern data.
This theme management system can also comprise acquiescence Show Styles module, is used for draw control under the situation of only utilizing acquiescence control style configuration control.
According to a further aspect in the invention, a kind of Subject Manager method of portable terminal is provided, it may further comprise the steps:
Step S202 creates expansion control pattern in the pattern file of preserving acquiescence control pattern;
Step S204, the acquiescence control pattern in the engine management module invokes default resource pattern module parses pattern file, and under the situation of utilizing expansion control style configuration control, load the expansion engine; And
Step S206, expansion engine resolve expansion control pattern and draw the control through expansion.
Step S204 can also comprise: resolve expansion control pattern and generate pattern data; And according to drawing control through expansion by the pattern data of extended resources pattern module generation.
After resolving expansion control pattern, can also comprise: the acquiescence control pattern that preservation has been resolved, and the expansion control pattern of parsing is merged with the acquiescence control pattern of having resolved mutually generate pattern data.
If only utilize acquiescence control style configuration control, then come draw control through acquiescence Show Styles module.
In technique scheme, the outward appearance of control is defined by pattern, and manages through theme.The user changes the outward appearance of control through configuration style, and the developer reaches the purpose of the new outward appearance of design through expanding pattern.
Other features and advantages of the present invention will be set forth in instructions subsequently, and, partly from instructions, become obvious, perhaps understand through embodiment of the present invention.The object of the invention can be realized through the structure that in the instructions of being write, claims and accompanying drawing, is particularly pointed out and obtained with other advantages.
Description of drawings
Accompanying drawing is used to provide further understanding of the present invention, and constitutes the part of instructions, is used to explain the present invention with embodiments of the invention, is not construed as limiting the invention.In the accompanying drawings:
Fig. 1 shows the block diagram according to the theme management system of portable terminal of the present invention;
Fig. 2 shows the process flow diagram according to the Subject Manager method of portable terminal of the present invention;
Fig. 3 shows the Organization Chart according to the theme management system of the embodiment of the invention; And
Fig. 4 shows the process flow diagram according to the master map management method of the embodiment of the invention.
Embodiment
Below in conjunction with accompanying drawing the preferred embodiments of the present invention are described, should be appreciated that preferred embodiment described herein only is used for explanation and explains the present invention, and be not used in qualification the present invention.
Fig. 1 shows the block diagram according to the theme management system of portable terminal of the present invention.
With reference to Fig. 1, a kind of theme management system of portable terminal is provided, it comprises:
Pattern file 101 is used to preserve required acquiescence control pattern of configuration control and expansion control pattern;
Engine management module 102 is used to call default resource pattern module parses acquiescence control pattern, and under the situation of utilizing expansion control style configuration control, loads expansion engine 103; And
Expansion engine 103 is used to resolve expansion control pattern and draws the control through expansion.
Expansion engine 103 can comprise: extended resources pattern module is used for resolving expansion control pattern and generating pattern data; And expansion Show Styles module, be used for drawing control through expansion according to the pattern data that generates by extended resources pattern module.
Extended resources pattern module can also be used to preserve the acquiescence control pattern of having resolved, and the expansion control pattern of parsing is merged with the acquiescence control pattern of having resolved mutually generate pattern data.
This theme management system can also comprise acquiescence Show Styles module, is used for draw control under the situation of only utilizing acquiescence control style configuration control.
Fig. 2 shows the process flow diagram according to the Subject Manager method of portable terminal of the present invention.
With reference to Fig. 2, a kind of Subject Manager method of portable terminal is provided, it may further comprise the steps:
Step S202 creates expansion control pattern in the pattern file of preserving acquiescence control pattern;
Step S204, the acquiescence control pattern in the engine management module invokes default resource pattern module parses pattern file, and under the situation of utilizing expansion control style configuration control, load the expansion engine; And
Step S206, expansion engine resolve expansion control pattern and draw the control through expansion.
Step S204 can also comprise: resolve expansion control pattern and generate pattern data; And according to drawing control through expansion by the pattern data of extended resources pattern module generation.
After resolving expansion control pattern, can also comprise: the acquiescence control pattern that preservation has been resolved, and the expansion control pattern of parsing is merged with the acquiescence control pattern of having resolved mutually generate pattern data.
If only utilize acquiescence control style configuration control, then come draw control through acquiescence Show Styles module.
Below will describe in more detail according to exemplary embodiment of the present invention.
Fig. 3 shows the Organization Chart according to the theme management system of the embodiment of the invention.
This Subject Manager software configuration provides pattern file, the resource pattern module of acquiescence, the Show Styles module of acquiescence.The user can use the pattern of the pattern syntax rule definition oneself of acquiescence.Control can call this pattern of default resource pattern module parses, calls acquiescence Show Styles module and draws pattern.
The developer can the style configuration file in add the own pattern that defines.The developer will provide the engine of resolving own pattern, the own pattern of drafting, and the syntax rule of configuration style is provided.The user can install the engine of resolving this pattern according to a certain pattern syntax rule configuration control pattern.When resource pattern module parses pattern file, run into new pattern, the engine management module can be sought the engine of this novel type, if find then load this engine.The new pattern of its resource pattern module parses of this engine calling merges new and old pattern.When showing control, control can call Show Styles module draw control through Subject Manager.
Below be the embodiment that realizes this Subject Manager software architecture, the concrete steps implementation step has:
(1) pattern of acquiescence is provided, such as foreground, background colour, font, icon etc.Let the user know and to dispose which pattern.
(2) the pattern grammer of allocating default is provided, such as bg [ACTIVE]=" #898886 ", the background color under its expression state of activation.How let the user know configuration style.
(3) the resource pattern module of acquiescence is provided, it is used for resolving the pattern of acquiescence.During the control initialization, can call resource pattern module parses pattern, initialization control pattern.
(4) the Show Styles module of acquiescence is provided, it is used for drawing pattern.The pattern of control finally will show, and when the user will show control, control can call the Show Styles module and draw the pattern of oneself.
(5) the engine management module is provided, is used for managing the pattern engine.When Subject Manager ran into the pattern of expansion, it must seek and load the engine that can resolve this pattern.
Below be the practical implementation step that the developer expands pattern:
(1) if the developer needs, it can expand the pattern of oneself, defines new control pattern.Letting the user know has the pattern of which expansion.
(2) regulation expands the pattern grammer.The developer stipulates out corresponding pattern grammer for the pattern of oneself, and the user can expand pattern according to the grammer configuration.
(3) developer provides the pattern engine.Engine provides the interface of resolving pattern, the interface that merges pattern.Subject Manager can call the parsing interface of engine and resolve the expansion pattern, and the parsing interface of engine can call this pattern of resource pattern module parses of expansion; The fusion interface that Subject Manager can call engine merges pattern, and the fusion interface of engine can call resource pattern module and merge this pattern and previous pattern of resolving.
(4) developer provides resource pattern module.The pattern of this module parses oneself definition, merge new and old pattern.
(5) developer provides the Show Styles module.This module is drawn the pattern of oneself.
Fig. 4 shows the process flow diagram according to the master map management method of the embodiment of the invention.
When the initialization control, call Subject Manager initialization control pattern.Subject Manager calls default resource pattern module parses pattern file, and when in parsing, running into new pattern, the engine management module can be called corresponding engine, and its resource pattern module of this engine calling continues to resolve this document.This resource pattern module is wanted to keep the content of having resolved when resolution file, merges the pattern of having resolved, and generates new pattern.
After the pattern initialization was accomplished, if the user will show control, control can call the Show Styles module.The Show Styles module can be called the pattern data draw control pattern of resource pattern module parses.
The above is merely the preferred embodiments of the present invention, is not limited to the present invention, and for a person skilled in the art, the present invention can have various changes and variation.All within spirit of the present invention and principle, any modification of being done, be equal to replacement, improvement etc., all should be included within protection scope of the present invention.

Claims (8)

1. the theme management system of a portable terminal is characterized in that, comprising:
The pattern file is used to preserve the acquiescence control pattern and expansion control pattern that are used for disposing control;
The engine management module is used to call the said acquiescence control of default resource pattern module parses pattern, and under the situation of utilizing the said control of said expansion control style configuration, loads the expansion engine; And
Said expansion engine is used to resolve said expansion control pattern and draws the control through expansion.
2. theme management system according to claim 1 is characterized in that, said expansion engine comprises:
Extended resources pattern module is used to resolve said expansion control pattern and generates pattern data; And
Expansion Show Styles module is used for drawing said control through expansion according to the said pattern data that is generated by said extended resources pattern module.
3. theme management system according to claim 2; It is characterized in that; Said extended resources pattern module also is used to preserve the said acquiescence control pattern of having resolved, and the said expansion control pattern of parsing is merged with said acquiescence control pattern of having resolved mutually generate said pattern data.
4. theme management system according to claim 3 is characterized in that, also comprises acquiescence Show Styles module, is used under the situation of only utilizing the said control of said acquiescence control style configuration, drawing said control.
5. the Subject Manager method of a portable terminal is characterized in that, may further comprise the steps:
Step S202 creates expansion control pattern in the pattern file of preserving acquiescence control pattern;
Step S204, the said acquiescence control pattern in the said pattern file of engine management module invokes default resource pattern module parses, and under the situation of utilizing the said control of said expansion control style configuration, load the expansion engine; And
Step S206, said expansion engine resolve said expansion control pattern and draw the control through expansion.
6. Subject Manager method according to claim 5 is characterized in that, said step S204 also comprises:
Resolve said expansion control pattern and generate pattern data; And
Draw said control according to the said pattern data that generates by said extended resources pattern module through expansion.
7. Subject Manager method according to claim 6 is characterized in that, after the said expansion control of said parsing pattern, also comprises:
Preserve the said acquiescence control pattern resolved, and the said expansion control pattern of parsing is merged with said acquiescence control pattern of having resolved mutually generate said pattern data.
8. Subject Manager method according to claim 7 is characterized in that, if only utilize the said control of said acquiescence control style configuration, then draws said control through acquiescence Show Styles module.
CN2008101095215A 2008-05-28 2008-05-28 Subject management system and method for mobile terminal Expired - Fee Related CN101287220B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2008101095215A CN101287220B (en) 2008-05-28 2008-05-28 Subject management system and method for mobile terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2008101095215A CN101287220B (en) 2008-05-28 2008-05-28 Subject management system and method for mobile terminal

Publications (2)

Publication Number Publication Date
CN101287220A CN101287220A (en) 2008-10-15
CN101287220B true CN101287220B (en) 2012-07-04

Family

ID=40059138

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2008101095215A Expired - Fee Related CN101287220B (en) 2008-05-28 2008-05-28 Subject management system and method for mobile terminal

Country Status (1)

Country Link
CN (1) CN101287220B (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101866287A (en) * 2010-06-09 2010-10-20 中兴通讯股份有限公司 Widget system appearance setting method and device
CN102207872B (en) * 2011-06-04 2014-08-06 中国移动通信集团内蒙古有限公司 Method and system for customizing Web UI (User Interface) control according to user requirements
CN102646038B (en) * 2012-02-28 2015-02-18 广州市动景计算机科技有限公司 Control content display method, control content display device and mobile terminal
CN110110073B (en) * 2018-01-26 2021-07-23 北京高德云图科技有限公司 Character display method and device

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1357820A (en) * 2000-12-15 2002-07-10 无敌科技(西安)有限公司 Program interface converting method
CN1758794A (en) * 2005-02-07 2006-04-12 中国联合通信有限公司 Method and system for generating interface of mobile terminal
CN1851687A (en) * 2005-04-22 2006-10-25 英华达(上海)电子有限公司 Mobile phone functional menu individual customization method

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1357820A (en) * 2000-12-15 2002-07-10 无敌科技(西安)有限公司 Program interface converting method
CN1758794A (en) * 2005-02-07 2006-04-12 中国联合通信有限公司 Method and system for generating interface of mobile terminal
CN1851687A (en) * 2005-04-22 2006-10-25 英华达(上海)电子有限公司 Mobile phone functional menu individual customization method

Also Published As

Publication number Publication date
CN101287220A (en) 2008-10-15

Similar Documents

Publication Publication Date Title
US20210216700A1 (en) Information Processing Method and System
CN109445784B (en) Method and device for processing structure data, storage medium and electronic equipment
CN102043618B (en) Method and device for controlling display style of window object
CN103237083B (en) A kind of mobile information service resource paradigmatic system and method
CN111045655A (en) Page rendering method and device, rendering server and storage medium
CN101477461A (en) Dynamic generation apparatus and method for application program interface
CN101287220B (en) Subject management system and method for mobile terminal
CN111290753B (en) Method, device, equipment and storage medium for building front-end development environment
Heo et al. IoT-MAP: IoT mashup application platform for the flexible IoT ecosystem
US20140033208A1 (en) Method and device for loading application program
CN102830959B (en) A kind of built-in browser interface dynamic expansion method and system
CN101788906A (en) Resource management method and system thereof
CN115964131B (en) Simulation model management system supporting multiple simulation engines and simulation model scheduling method
CN107818588A (en) The apparatus and method that android system calls Qt drawing based on JNI multithreadings
CN110580174A (en) application component generation method, server and terminal
CN108153533B (en) Method and device for making installation program, and method and device for installing program
CN102193806A (en) Method and device for updating animation
CN110187944A (en) A method of based on the fast quick change skin of Android system
CN102999371A (en) Lua script-based human-computer interface development method and system
US20110270946A1 (en) Service providing apparatus, service providing system, service providing method, and storage medium
CN101986662B (en) Widget instance operation method and system
CN105354016A (en) Application topic management system and method
CN105760147A (en) Software page display construction method and system
CN110045997B (en) Object initialization method, device, equipment and storage medium of basic function module
CN110825373A (en) Dynamic method and device for mobile terminal

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
C17 Cessation of patent right
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20120704

Termination date: 20130528