CN102646038B - Control content display method, control content display device and mobile terminal - Google Patents

Control content display method, control content display device and mobile terminal Download PDF

Info

Publication number
CN102646038B
CN102646038B CN201210049001.6A CN201210049001A CN102646038B CN 102646038 B CN102646038 B CN 102646038B CN 201210049001 A CN201210049001 A CN 201210049001A CN 102646038 B CN102646038 B CN 102646038B
Authority
CN
China
Prior art keywords
control
content
basic
control content
basic control
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
CN201210049001.6A
Other languages
Chinese (zh)
Other versions
CN102646038A (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.)
Alibaba China Co Ltd
Original Assignee
Guangzhou Dongjing Computer 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 Guangzhou Dongjing Computer Technology Co Ltd filed Critical Guangzhou Dongjing Computer Technology Co Ltd
Priority to CN201210049001.6A priority Critical patent/CN102646038B/en
Publication of CN102646038A publication Critical patent/CN102646038A/en
Application granted granted Critical
Publication of CN102646038B publication Critical patent/CN102646038B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The invention provides a control content display method, which comprises the steps that: a control content to be displayed is analyzed, and the basic control attribute information of the control content or the relevance information of the basic control attribute information is obtained; a style object corresponding to the obtained basic control attribute information or the relevance information is obtained from a style object management unit on the basis of the obtained basic control attribute information or the relevance information; and a basic control in the control content is drawn for displaying on the basis of the obtained style object, wherein the style object is generated by analyzing a loaded style configuration file during starting and is stored with the basic control attribute information or the relevance information in the style object management unit in an associated way. When the method is used, during the control content display, only the corresponding style object is taken back from a stored style object database for drawing, and basic component codes do not need to be edited and compiled again.

Description

Control content display method, control content revealing device and mobile terminal
Technical field
The present invention relates to moving communicating field, more specifically, relate to a kind of control content display method for representing browser control part content, control content revealing device and there is the mobile terminal of this control content revealing device.
Background technology
Along with the development of development of Mobile Internet technology, utilize mobile terminal to browse the news in the portal websites such as such as Sina to become a kind of trend gradually.Current browser of mobile terminal adopts graphic user interface (GUI) usually.Fig. 1 is the example schematic diagram of the graphic user interface of a popular browser of mobile terminal.The display and control of each control on the browser of mobile terminal shown in Fig. 1 normally performs code building compiled in advance.Each basic control has a set of mapping logic code voluntarily, and the drawing flow process of each basic control is independent of other basic controls.That is, each basic control draws based on the mapping logic code of oneself, and can not share mapping logic code with other basic control.
Obviously, there is many technological deficiencies in above-mentioned browser control part content revealing scheme:
First, difficult management, learning cost is high.In above-mentioned control content revealing scheme, even if two basic control similarities are higher, these two basic controls also eachly must have independently mapping logic, thus make code reuse degree low.In addition, the mapping logic of each basic control is dispersed in each basic control, not manageability.In addition, calculate and geometric transformation because mapping logic relates to a large amount of coordinates, simultaneously doped with the code of service logic, thus make the non-constant of code legibility, require that programming personnel is familiar with the drawing code of each basic control thus.Because in above-mentioned control content revealing scheme, code disperses and repeats, so the learning cost of programming personnel is very high.
In addition, the non-constant of extendability.When basic control needs to revise its content displaying time, need to modify to the code of each basic control, this amendment is wasted time and energy and is easily made mistakes very much.Meanwhile, because the content display of control and control to be compiled in advance in code, program cannot accomplish not revise the pattern that code just changes control after issuing, therefore cannot the switching at runtime of optimized integration control pattern, such as, realizes browser skin switching at runtime.
Finally, reduce the speed of program development, be unfavorable for the division of labor in developing.Because the content display of control writes in code in advance, each amendment reveal codes all needs to re-start compiling.And the code details of interface display is numerous and diverse, there is a large amount of fine setting work, each amendment all needs to recompilate, a large amount of code compile time of loss.In addition, the adjustment of GUI code needs programming personnel to participate in, and can not, by interface personnel complete independently, owing to needing to interdepend, pin down when many people assist, thus cause work efficiency low, reduces program development speed.
Summary of the invention
In view of the above problems, the object of this invention is to provide a kind of control content display method for representing browser control part content.
In addition, another object of the present invention is to provide a kind of control content revealing device for representing browser control part content and has the mobile terminal of above-mentioned control content revealing device.
According to an aspect of the present invention, provide a kind of control content display method, comprising: the control content that represent is analyzed, obtain the basic control property information of this control content or the related information of this basic control property information; Based on the related information of obtained basic control property information or this basic control property information, from styled objects administrative unit, obtain the styled objects corresponding with obtained basic control property information or related information; And based on obtained styled objects, the basic control drawn in described control content represents, wherein, described styled objects is resolved loaded sample configuration file when starting and is generated, and is stored in explicitly in described styled objects administrative unit with the related information of basic control property information or basic control property information.
In one or more examples in above-mentioned, the related information of described basic control property information can be the styled objects title corresponding with described basic control property information.
In one or more examples in above-mentioned, the related information of described basic control property information or this basic control property information can be by analyzing rear acquisition to the source code of described control content.
In one or more examples in above-mentioned, when the control content that will represent comprises multiple control, based on obtained styled objects, the step that the basic control drawn in described control content carries out representing can also comprise: analyze the source code of the control content that will represent, to obtain the hierarchical relationship information of multiple control; And based on the styled objects of the hierarchical relationship information of obtained multiple controls and the basic control of multiple control, each the basic control in the control content that will represent described in drawing represents.
In one or more examples in above-mentioned, when described control content also comprises dedicated controls content, described method can also comprise: after the drafting completing the basic control in described control content, based on the dedicated controls content information obtained when analyzing described control content, utilize the special mapping logic code worked out, dedicated controls content is drawn on the basis of described basic control.
In one or more examples in above-mentioned, when the content of the part control in the current control content represented changes, then only again obtain the styled objects of the control that content changes, and utilize the styled objects again obtained to repaint the control changed.
In one or more examples in above-mentioned, described styled objects is skin styled objects.
According to a further aspect in the invention, providing a kind of control content revealing device, comprising: analytic unit, for analyzing the control content that will represent, obtaining the basic control property information of this control content or the related information of this basic control property information; Styled objects generation unit, for resolving the sample configuration file loaded when starting, generates styled objects; Styled objects administrative unit, for storing the related information of generated styled objects and basic control property information or basic control property information explicitly; Acquiring unit, for the related information based on obtained basic control property information or this basic control property information, obtains the styled objects corresponding with obtained basic control property information or related information from styled objects administrative unit; And basic ActiveX drafting unit, for based on obtained styled objects, the basic control drawn in described control content represents.
In one or more examples in above-mentioned, the related information of described basic control property information or this basic control property information is by analyzing rear acquisition to the source code of described control content.
In one or more examples in above-mentioned, when the control content that will represent comprises multiple control, described control content revealing device can also comprise: hierarchical relationship acquiring unit, for analyzing the source code of the control content that will represent, to obtain the hierarchical relationship information of multiple control, wherein said basic ActiveX drafting unit is based on the styled objects of the hierarchical relationship information of obtained multiple controls and the basic control of multiple control, and each the basic control in the control content that will represent described in drawing represents.
In one or more examples in above-mentioned, when described control content also comprises dedicated controls content, described control content revealing device can also comprise: dedicated controls content drawing unit, after completing the drafting of the basic control in described control content in described basic control element, based on the dedicated controls content information obtained when analyzing described control content, utilize the special mapping logic code worked out, dedicated controls content is drawn on the basis of described basic control.
According to a further aspect in the invention, provide a kind of mobile terminal, comprise control content revealing device as above.
Utilize above-mentioned according to control content revealing method of the present invention and control content revealing device, can basis of formation component mapping logic the styled objects of formation base component is kept in styled objects database in advance, thus make when carrying out control content revealing, only need from stored styled objects database, obtain corresponding styled objects to draw, and regroup basic component code without the need to programming personnel and recompilate code when drawing basics component, thus save the development time.
In addition, according to control content display method of the present invention, if the part control comprised in the control content that will show of multiple control changes, then can adjust for the control changed, and without the need to adjusting or regroup code to whole control content, thus enhance extendability.
In addition, when control content has dedicated controls content, programming personnel only needs the code of the dedicated controls content worked out in control content, and without the need to the code of compiling foundation control content, namely, programming personnel only needs the displaying flow process understanding dedicated controls content and whole control, thus reduces learning cost.
In order to realize above-mentioned and relevant object, will describe in detail and the feature particularly pointed out in the claims after one or more aspect of the present invention comprises.Explanation below and accompanying drawing describe some illustrative aspects of the present invention in detail.But what these aspects indicated is only some modes that can use in the various modes of principle of the present invention.In addition, the present invention is intended to comprise all these aspects and their equivalent.
Accompanying drawing explanation
According to following detailed description of carrying out with reference to accompanying drawing, above and other object of the present invention, feature and advantage will become more apparent.In the accompanying drawings:
Fig. 1 shows the example schematic diagram of the graphic user interface of existing browser of mobile terminal;
Fig. 2 shows according to an embodiment of the invention for representing the process flow diagram of the control content display method of browser control part content;
The schematic diagram of the example of the interface dialog box that Fig. 3 draws exemplified with control content display method according to the present invention;
Fig. 4 A and 4B illustrate respectively and utilize control content display method of the present invention to carry out the interface before pattern switching and the interface after pattern switching;
Fig. 5 shows according to an embodiment of the invention for representing the block diagram of the control content revealing device of browser control part content; With
Fig. 6 shows the block diagram of the mobile terminal with control content revealing device.
Label identical in all of the figs indicates similar or corresponding feature or function.
Embodiment
Below with reference to accompanying drawing, specific embodiments of the invention are described in detail.
Before each embodiment of the present invention is described, first the several concepts related in the present invention are simply illustrated.
Term " basic control content " refers to the control content that a certain class control content is common.
Term " dedicated controls content " refers to control content specific to individual control content, and this control content is different from other control content.
Term " style configuration file " refers to the file for storage control pictorial information, comprises the execution sequence of drawing for order, layout information, the resource name needed for drawing and resource path etc.
Term " styled objects " refers to the code mapping of style configuration file, that is, is the codes implement of style configuration file.
Fig. 2 shows according to an embodiment of the invention for representing the process flow diagram of the control content display method of browser control part content.
As shown in Figure 2, first, in step S210, the control content that represent is analyzed, obtain the basic control property information of this control content or the related information of this basic control property information.Particularly, in one example, the source code of the control content that represent is analyzed, to obtain the attribute information of the control content that will represent.In addition, in another example, in the control content that will represent except basic control content, also comprise dedicated controls content, that is, control content specific to this control, when analyzing the control content that will represent, also obtain the dedicated controls attribute information of this control content.In addition, when the control content that will represent comprises multiple control, when analyzing source code, except the basic control property information that obtains each control and/or dedicated controls attribute information, also comprise the hierarchical relationship information obtained between each control, usually, described hierarchical relationship information is such as nestedly comprise information, that is, the mutually nested relation between each control.In addition, the related information of described basic control property information can be such as sample object title corresponding to control property information basic with this.
Described style configuration file is usually prepared in advance according to the control property information preset and be stored in style configuration file storage unit with the form of style configuration document data bank.Described sample configuration file and basic control configuration information or its related information are stored in style configuration document data bank explicitly.Described style configuration file is generally XML (eXtensible Markup Language, extending mark language) file.Extended-boundary-condition method is that a kind of simple data store language, use a series of simple mark data of description, and these data can use form easily to set up.By using XML format, style configuration file can be write by special XML file keymake, and meanwhile, style configuration file is also provided with the advantage that XML itself brings, and as easily write, has very strong extendability and versatility.In addition, described style configuration file also can be json (JavaScript Object Notation) file
After obtaining the basic control property information of control content or the related information of this basic control property information that will represent, in step S220, based on the related information of obtained basic control property information or this basic control property information, from styled objects administrative unit, obtain the styled objects corresponding with obtained basic control property information or related information; Wherein, described styled objects is resolved loaded style configuration file when starting and is generated, and is stored in explicitly in described styled objects administrative unit with the related information of basic control property information or basic control property information.
Then, in step S230, based on fetched styled objects, the basic control drawn in described control content represents.
In addition, in a preferred exemplary, when described control content also comprises dedicated controls content, in step S240, after the drafting completing the basic control in described control content, the special mapping logic code worked out in the source code of the control content utilizing this to represent, dedicated controls content is drawn on the basis of described basic control.
In addition, in another preferred exemplary, when the control content that will represent comprises multiple control, based on generated styled objects, the step that the basic control drawn in described control content carries out the step S230 represented also comprises: analyze the source code of the control content that will represent, to obtain the hierarchical relationship information of multiple control, then, based on the styled objects of the hierarchical relationship information of obtained multiple controls and the basic control of multiple control, each the basic control in the control content that will represent described in drawing represents.
The schematic diagram of the example of the interface dialog box that Fig. 3 draws exemplified with control content display method according to the present invention, this example only includes a basic control content for control content, i.e. message box.
The style configuration file of the dialog box shown in Fig. 3 is MessageDialog.xml.The attribute information of some basic controls is comprised in MessageDialog.xml, mainly: dialog box background picture, dialog box topic icon, caption text font, color, dialog box message body character script, font color, the background of button, button face, font color etc.
The one of MessageDialog.xml realizes can be as follows:
When creating dialog box in code, the attribute Style of the name of style configuration file and its control self can be bound:
The partial code that C++ realizes is as follows:
1, when control carries out initialization:
2, when dialog box is about to show time, style of loading configuration file can be carried out by Style attribute, loaded style configuration file is resolved, thus generate styled objects, and be stored in styled objects administrative unit:
3, based on the basic control property information of control content or the related information of this basic control property information, such as, the title of styled objects or style configuration file, after obtaining styled objects from styled objects administrative unit, styled objects and self handle are given pattern engine (such as by control, drawing unit), utilize drawing unit to draw:
4, after pattern engine (that is, drawing unit) is completed, dialog box can be shown.
Fig. 4 A and 4B illustrate respectively and utilize control content display method of the present invention to carry out the interface before pattern switching and the interface after pattern switching.In the example shown in Fig. 4 A and Fig. 4 B, shown interface all includes multiple control content, and compared with Fig. 4 A, the difference of Fig. 4 B is only different from the skin of control, and what that is relate in Fig. 4 is skin styled objects handoff procedure.Here, for the control needing to realize changing skin, need to prepare many increments formula configuration file; And for not needing the control realizing changing skin, only need to prepare a default pattern file.
The corresponding style configuration file set at the interface shown in Fig. 4 A is the corresponding style configuration file set at the interface shown in DefaultTheme.xml, Fig. 4 B is BlackboardTheme.xml.DefaultTheme.xml compiles in program installation kit, and BlackboardTheme.xml is then by the memory device of the Internet download to mobile terminal.The form of DefaultTheme.xml and BlackboardTheme.xml is closely similar, and all comprise header and several independently style configuration files, one of them possible implementation is as follows:
1, when user triggers the event switching pattern (that is, the skin of the control in interface), browser can empty the styled objects in current styled objects administrative unit.
Here, can there are two kinds of implementations in the renewal of styled objects administrative unit.The first situation is, when carrying out pattern switching, disposablely can empty original whole pattern, reloading new pattern.What this situation was corresponding is the situation of carrying out pattern switching for whole pattern.In this case, because the pattern of UC browser switches for whole pattern, therefore when realizing, whole pattern can be emptied.That is, the switching of pattern is for least unit with a whole set of pattern.But above-mentioned is only a kind of implementation of the present invention.In the second situation (namely, another implementation) under, when carrying out pattern switching, can load in new pattern file processes, the styled objects had for novel type file carries out replacement and upgrades, for novel type do not have but the styled objects of default style, then can remain unchanged, that is, the styled objects in modality management unit is not all emptied.That is, pattern switching can be carried out by interphase, in other words, only the pattern on an interface is switched, or the part format on an interface is switched, in this case, styled objects corresponding with the part format at this interface or this interface in current styled objects administrative unit is only emptied.
As can be seen from the above, the difference of these two kinds of modes is, when style configuration file is searched in reading, if method 1 can not find relevant pattern file in novel type, can remove default style ff; Method 2 then can not.
2, then, for not being the interface (that is, not needing to carry out the interface of skin switching) shown, owing to not needing to carry out skin switching, so pattern switches for these interfaces without any impact, these interfaces do not need to switch pattern to do any response yet thus.That is, for not having vicissitudinous control, not needing again to obtain styled objects and drawing.This corresponds to the situation that interphase carries out pattern switching.
3, for the interface shown (namely, need the interface of carrying out skin switching, in other words, need the control carrying out skin switching), can trigger the event of an onThemeChange, the resource of onThemeChange primary responsibility pattern engine is reloaded and refreshes drawing, that is, again obtain the mapping logic (that is, styled objects) at this interface (control content), the execution of this event is as follows:
In other words, in superincumbent step, for needing to carry out the interface of skin switching (namely, the control revised), revise and store the style configuration file of the control in this interface, then generate styled objects set by carrying out resolving in amended style configuration files loading to internal memory, and the styled objects of generation is stored in styled objects administrative unit.The step being noted that here be carry out pattern switching before the step that performs.That is, before carrying out pattern switching, just amendment completed to style configuration file and stored, and having obtained amended styled objects when starting by resolving loaded amended style configuration file, and being stored in styled objects administrative unit.Like this, when carrying out pattern and switching, corresponding styled objects can just be obtained simply from styled objects administrative unit.
4, interface upgrades current styled objects after onThemeChange method performs, and then the styled objects after renewal is passed to pattern engine (drawing unit) and repaints, and refreshes, and again shows, thus complete the switching at runtime of pattern.Here, the step 4 in Fig. 4 is corresponding with the step 3 in Fig. 3.Step 3 in Fig. 4 is corresponding with the step 2 in Fig. 3, generate and store, but the opportunity that both styled objects load is different for loading.Step 2 in Fig. 3 corresponds to the process that dialog box is grown out of nothing, and it loads before display a moment; And the step 3 of Fig. 4 corresponds to the process of the interface shown being carried out to the switching of skin pattern, it loads when inspiring and changing skin.
As can be seen from the above, when again representing for the control content comprising multiple control represented, content iff part control changes, such as, above-mentioned changes skin change, then only need the styled objects again obtaining the control that content changes, and utilize the styled objects obtained to carry out ActiveX drafting by original drawing unit.In this case, without the need to not having vicissitudinous control to carry out any process, and the drafting code of original drawing unit also can not change.
As above describe control content display method of the present invention with reference to figs. 2 to Fig. 4 B, above-mentioned control content display method of the present invention, can adopt software simulating, also can adopt hardware implementing, or adopts the mode of software and hardware combination to realize.
Fig. 5 shows according to an embodiment of the invention for representing the block diagram of the control content revealing device 500 of browser control part content.
As shown in Figure 5, control content revealing device 500 comprises analytic unit 510, acquiring unit 520, basic ActiveX drafting unit 530, styled objects generation unit 540 and styled objects administrative unit 550.
Analytic unit 510, for analyzing the control content that will represent, obtains the basic control property information of this control content or the related information of this basic control property information.Styled objects generation unit 540, for resolving the style configuration file loaded when starting, generates styled objects.Styled objects administrative unit 550 is for storing the related information of generated styled objects and basic control property information or basic control property information explicitly.
Acquiring unit 520, for the related information based on obtained basic control property information or this basic control property information, obtains the styled objects corresponding with obtained basic control property information or related information from styled objects administrative unit.Basis ActiveX drafting unit 530 is for based on obtained styled objects, and the basic control drawn in described control content represents.
In another example, when the control content that will represent comprises multiple control, described control content revealing device 500 can also comprise hierarchical relationship acquiring unit (not shown), for analyzing the source code of the control content that will represent, to obtain the hierarchical relationship information of multiple control.Described basic ActiveX drafting unit 530 is based on the styled objects of the hierarchical relationship information of obtained multiple controls and the basic control of multiple control, and each the basic control in the control content that will represent described in drawing represents.
In addition, in another example, when described control content also comprises dedicated controls content, described control content revealing device 500 can also comprise dedicated controls content drawing unit (not shown), after completing the drafting of the basic control in described control content in described basic control element 530, based on described analytic unit 510 to the dedicated controls content information obtained during described control content analysis, utilize the special mapping logic code worked out, dedicated controls content is drawn on the basis of described basic control.
In the present invention, when browser starts, style of loading configuration file is also resolved loaded style configuration file, generates styled objects, and unification is stored in styled objects administrative unit.Then, when control needs to be shown to user interface, first according to the Attribute domain of self, the styled objects name namely used, finds corresponding styled objects at pattern to administrative unit.After finding corresponding styled objects, styled objects and the handle of self are passed to drawing unit, after drawing unit obtains styled objects and control handle, mapping operation is carried out according to contents of object, after drawing completes, result is returned to control by control handle, and program is performed control returns to control in the lump.Get control at control, after completing drawing operation bidirectional and surplus lines logic, enter the drawing event loop of system, in mapping operation once refreshes, can by above ActiveX drafting to display device.Utilize control content display method of the present invention and device, basis of formation component mapping logic the styled objects of formation base component is kept in styled objects database in advance, thus make when carrying out control content revealing, only need from stored styled objects database, fetch corresponding styled objects to draw, and regroup basic component code without the need to programming personnel and recompilate code when drawing basics component, thus save the development time.In addition, according to control content display method of the present invention, if the part control comprised in the control content that will show of multiple control changes, then can adjust for the control changed, and without the need to adjusting or regroup code to whole control content, thus enhance extendability.In addition, when control content has dedicated controls content, programming personnel only needs the code of the dedicated controls content worked out in control content, and without the need to the code of compiling foundation control content, namely, programming personnel only needs the displaying flow process understanding dedicated controls content and whole control, thus reduces learning cost.
As can be seen from the above, mapping logic (that is, styled objects) by dynamic creation in advance, and to be unifiedly stored in styled objects administrative unit.In this case, mapping logic is separated with corresponding control, when drawing control content, only need understand the incidence relation of mapping logic and control, just can find corresponding mapping logic and then draw out this control, and without the need to being familiar with the drawing code of this control, thus the learning cost of technician is reduced.
In addition, in the present invention, mapping logic is separated with drawing code.Thus, when mapping logic changes, the styled objects of control can be revised by amendment style configuration file, and then utilize amended styled objects to draw out the control after change, and without the need to after mapping logic changes, regroup and compile drawing code.
Fig. 6 is the block diagram of the mobile terminal 10 had according to control content revealing device 500 of the present invention.As shown in Figure 6, mobile terminal 10 comprises control content revealing device 500 as above.Obviously, the control content revealing device in Fig. 6 also can comprise the various modification of the control content revealing device 500 shown in Fig. 5.
In addition, typically, mobile terminal of the present invention can be various hand-held terminal device, such as mobile phone, personal digital assistant (PDA) etc., and therefore protection scope of the present invention should not be defined as the mobile terminal of certain particular type.
In addition, the computer program performed by CPU can also be implemented as according to method of the present invention.When this computer program is performed by CPU, perform the above-mentioned functions limited in method of the present invention.
In addition, said method step and system unit also can utilize controller (such as, processor) and realize for storing the computer readable storage devices making controller realize the computer program of above-mentioned steps or Elementary Function.
In addition, it is to be understood that computer readable storage devices as herein described (such as, storer) can be volatile memory or nonvolatile memory, or volatile memory and nonvolatile memory can be comprised.Nonrestrictive as an example, nonvolatile memory can comprise ROM (read-only memory) (ROM), programming ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM) or flash memory.Volatile memory can comprise random access memory (RAM), and this RAM can serve as external cache.Nonrestrictive as an example, RAM can obtain in a variety of forms, such as synchronous random access memory (DRAM), dynamic ram (DRAM), synchronous dram (SDRAM), double data rate SDRAM (DDR SDRAM), enhancing SDRAM (ESDRAM), synchronization link DRAM (SLDRAM) and direct RambusRAM (DRRAM).The memory device of disclosed aspect is intended to the storer including but not limited to these and other suitable type.
Those skilled in the art will also understand is that, may be implemented as electronic hardware, computer software or both combinations in conjunction with various illustrative logical blocks, module, circuit and the algorithm steps described by disclosure herein.In order to this interchangeability of hardware and software is clearly described, the function with regard to various exemplary components, square, module, circuit and step has carried out general description to it.This function is implemented as software or is implemented as hardware and depends on embody rule and be applied to the design constraint of whole system.Those skilled in the art can realize described function in every way for often kind of embody rule, but this realization determines should not be interpreted as causing departing from the scope of the present invention.
The following parts being designed to perform function described here can be utilized to realize or perform in conjunction with various illustrative logical blocks, module and the circuit described by disclosure herein: any combination of general processor, digital signal processor (DSP), special IC (ASIC), field programmable gate array (FPGA) or other programmable logic device (PLD), discrete gate or transistor logic, discrete nextport hardware component NextPort or these parts.General processor can be microprocessor, but alternatively, processor can be any conventional processors, controller, microcontroller or state machine.Processor also may be implemented as the combination of computing equipment, and such as, the combination of DSP and microprocessor, multi-microprocessor, one or more microprocessor are in conjunction with DSP core or other this configuration any.
In the software module that step in conjunction with the method described by disclosure herein or algorithm can directly comprise within hardware, performed by processor or in the combination of both.Software module can reside in the storage medium of RAM storer, flash memory, ROM storer, eprom memory, eeprom memory, register, hard disk, removable dish, CD-ROM or other form any known in the art.Exemplary storage medium is coupled to processor, make processor can from this storage medium reading information or to this storage medium written information.In an alternative, described storage medium can be integral to the processor together.Processor and storage medium can reside in ASIC.ASIC can be in the user terminal resident.In an alternative, processor and storage medium can be in the user terminal resident as discrete assembly.
Describe in an illustrative manner according to embodiments of the invention above with reference to accompanying drawing.But, it will be appreciated by those skilled in the art that for the above embodiment of the present invention, various improvement can also be made on the basis not departing from content of the present invention.Therefore, protection scope of the present invention should be determined by the content of appending claims.

Claims (6)

1. a control content display method, comprising:
The control content that browser of mobile terminal will represent is analyzed, obtains the basic control property information of this control content or the related information of this basic control property information;
Based on the related information of obtained basic control property information or this basic control property information, from styled objects administrative unit, obtain the styled objects corresponding with obtained basic control property information or related information; And
Based on obtained styled objects, the basic control drawn in described control content represents,
Wherein, described styled objects is resolved loaded style configuration file when browser of mobile terminal starts and is generated, and be stored in described styled objects administrative unit explicitly with the related information of basic control property information or basic control property information, and described style configuration file stores with the form of style configuration document data bank, and pass through the Internet download, described styled objects is separated with corresponding control, the styled objects of control is revised by amendment style configuration file, utilize amended styled objects to draw out the control after change, and
Wherein, when the control content that will represent comprises multiple control, based on obtained styled objects, draw the step that the basic control in described control content carries out representing and also comprise:
Analyze the source code of the control content that will represent, to obtain the hierarchical relationship information of multiple control, described hierarchical relationship information comprises the mutually nested relation between each control; And
Based on the styled objects of the hierarchical relationship information of obtained multiple controls and the basic control of multiple control, each the basic control in the control content that will represent described in drawing represents;
Wherein, when described control content also comprises dedicated controls content, described method also comprises:
After the drafting completing the basic control in described control content, based on the dedicated controls content information obtained when analyzing described control content, utilize the special mapping logic code worked out in the source code of described control content, dedicated controls content is drawn on the basis of described basic control.
2. the method for claim 1, wherein, the related information of described basic control property information or this basic control property information is by analyzing rear acquisition to the source code of described control content, and the related information of described basic control property information is the styled objects title corresponding with described basic control property information.
3. method as claimed in claim 2, wherein, when the content of the part control in the current control content represented changes, then only again obtain the styled objects of the control that content changes, and utilize the styled objects again obtained to repaint the control changed.
4. method as claimed in claim 3, wherein, described styled objects is skin styled objects.
5. a control content revealing device, comprising:
Analytic unit, for analyzing the control content that browser of mobile terminal will represent, obtains the basic control property information of this control content or the related information of this basic control property information;
Styled objects generation unit, the style configuration file loaded during for starting browser of mobile terminal is resolved, generate styled objects, wherein, described style configuration file stores with the form of style configuration document data bank, and by the Internet download, described styled objects is separated with corresponding control, revised the styled objects of control by amendment style configuration file, utilize amended styled objects to draw out the control after change;
Styled objects administrative unit, for storing the related information of generated styled objects and basic control property information or basic control property information explicitly;
Acquiring unit, for the related information based on obtained basic control property information or this basic control property information, obtains the styled objects corresponding with obtained basic control property information or related information from styled objects administrative unit; And
Basis ActiveX drafting unit, for based on obtained styled objects, the basic control drawn in described control content represents,
Wherein, when the control content that will represent comprises multiple control, described control content revealing device also comprises: hierarchical relationship acquiring unit, for analyzing the source code of the control content that will represent, to obtain the hierarchical relationship information of multiple control, described hierarchical relationship information comprises the mutually nested relation between each control
Described basic ActiveX drafting unit is based on the styled objects of the hierarchical relationship information of obtained multiple controls and the basic control of multiple control, and each the basic control in the control content that will represent described in drawing represents;
When described control content also comprises dedicated controls content, described control content revealing device also comprises: dedicated controls content drawing unit, after completing the drafting of the basic control in described control content in described basic control element, based on the dedicated controls content information obtained when analyzing described control content, utilize the special mapping logic code worked out in the source code of described control content, dedicated controls content is drawn on the basis of described basic control.
6. control content revealing device as claimed in claim 5, wherein, the related information of described basic control property information or this basic control property information is that described analytic unit is by analyzing rear acquisition to the source code of described control content.
CN201210049001.6A 2012-02-28 2012-02-28 Control content display method, control content display device and mobile terminal Active CN102646038B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201210049001.6A CN102646038B (en) 2012-02-28 2012-02-28 Control content display method, control content display device and mobile terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201210049001.6A CN102646038B (en) 2012-02-28 2012-02-28 Control content display method, control content display device and mobile terminal

Publications (2)

Publication Number Publication Date
CN102646038A CN102646038A (en) 2012-08-22
CN102646038B true CN102646038B (en) 2015-02-18

Family

ID=46658868

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201210049001.6A Active CN102646038B (en) 2012-02-28 2012-02-28 Control content display method, control content display device and mobile terminal

Country Status (1)

Country Link
CN (1) CN102646038B (en)

Families Citing this family (17)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103440127A (en) * 2013-08-19 2013-12-11 中国电子科技集团公司第十五研究所 Software graphical interface drawing method and system
CN104182214A (en) * 2014-02-26 2014-12-03 无锡天脉聚源传媒科技有限公司 Rolling shaft customizing method and rolling shaft customizing device
CN105094769B (en) * 2014-05-06 2018-07-13 北大方正集团有限公司 The treating method and apparatus of user interface
CN104267954B (en) * 2014-09-26 2018-02-16 青岛海信电器股份有限公司 The generation method and device of a kind of part included in user interface
CN105117219B (en) * 2015-08-13 2019-05-28 浪潮(北京)电子信息产业有限公司 A kind of method and system of customized Graphics Control
CN105204907B (en) * 2015-09-28 2019-02-12 北京奇虎科技有限公司 Browser starts method and apparatus
CN110110073B (en) * 2018-01-26 2021-07-23 北京高德云图科技有限公司 Character display method and device
CN108628646B (en) * 2018-05-07 2021-06-25 海信视像科技股份有限公司 Method and device for loading data for display equipment
CN108920496B (en) * 2018-05-23 2021-05-25 北京奇艺世纪科技有限公司 Rendering method and device
CN110727482B (en) * 2018-07-16 2023-05-12 阿里巴巴集团控股有限公司 Interface updating method and device
CN109634490B (en) * 2018-12-14 2020-05-12 北京字节跳动网络技术有限公司 List display method, device, equipment and storage medium
CN112015497B (en) * 2019-05-13 2022-04-29 华为技术有限公司 Skin changing method and device
CN110413277B (en) * 2019-06-24 2022-08-26 厦门雷霆互动网络有限公司 Method and system for generating UI (user interface)
CN110865799A (en) * 2019-10-31 2020-03-06 爱钱进(北京)信息科技有限公司 Control information display method and device and storage medium
CN112035188A (en) * 2020-09-28 2020-12-04 中移(杭州)信息技术有限公司 Control generation method and device, network equipment and storage medium
CN112949268A (en) * 2021-03-25 2021-06-11 苍穹数码技术股份有限公司 Form management method, device, equipment and computer readable storage medium
CN114237799B (en) * 2021-12-20 2024-01-16 湖南快乐阳光互动娱乐传媒有限公司 Graying method and device for designated area of page

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1253788C (en) * 2002-11-11 2006-04-26 华为技术有限公司 Method for creating interface and generation system based on description
CN1869925A (en) * 2006-06-23 2006-11-29 上海科泰世纪科技有限公司 Method for setting controller style in computer graphic system
CN101287220B (en) * 2008-05-28 2012-07-04 中兴通讯股份有限公司 Subject management system and method for mobile terminal
CN102043618B (en) * 2009-10-22 2013-05-22 北大方正集团有限公司 Method and device for controlling display style of window object
CN102236544B (en) * 2010-04-21 2014-06-18 腾讯科技(深圳)有限公司 Method and device for designing skins

Also Published As

Publication number Publication date
CN102646038A (en) 2012-08-22

Similar Documents

Publication Publication Date Title
CN102646038B (en) Control content display method, control content display device and mobile terminal
CN107844299B (en) Method for implementing Web application development tool
Bostock et al. Protovis: A graphical toolkit for visualization
US7124398B2 (en) Rapid GUI refacing of a legacy application
RU2390832C2 (en) Method of viewing web-pages using external program themes
CN113094037A (en) Interaction method, development platform, equipment and storage medium for forms and workflows
KR101494844B1 (en) System for Transforming Chart Using Metadata and Method thereof
US6282539B1 (en) Method and system for database publishing
CN105094832A (en) WYSIWYG method and system for dynamically generating user interface
US10049095B2 (en) In-context editing of output presentations via automatic pattern detection
CN104657384A (en) Dynamic allocation report data processing method based on two-dimension relationship
CN111596911A (en) Method and device for generating control, computer equipment and storage medium
CN117093316A (en) Cross-platform page rendering system, electronic equipment and storage medium
CN105159673A (en) Method and device for setting control style
JP2004094487A (en) Support system for preparing document
CN110516333A (en) Device layout methods, device, equipment and readable storage medium storing program for executing in a kind of PCB
CN115994517A (en) Information processing method, apparatus, storage medium, device, and program product
CN112905931B (en) Page information display method and device, electronic equipment and storage medium
KR100902193B1 (en) A System For Composing Report, A Method ? A System For Providing A Made-To-Order Report, And A Storage Medium
CN112966481B (en) Data form display method and device
US8566734B1 (en) System and method for providing visual component layout input in alternate forms
CN113568608A (en) Component information display method, device, equipment and storage medium
CN112989752B (en) Simulation method, simulation device, terminal equipment and medium for power supply scheme
CN111694723B (en) Method for editing nodes and components when product runs under H5 and storage medium
Tallis et al. The Briefing Associate: A Role for COTS applications in the Semantic Web.

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

Effective date of registration: 20200630

Address after: 310052 room 508, floor 5, building 4, No. 699, Wangshang Road, Changhe street, Binjiang District, Hangzhou City, Zhejiang Province

Patentee after: Alibaba (China) Co.,Ltd.

Address before: 2, 16, 301 rooms, 510665 Yun Yun Road, Tianhe District, Guangdong, Guangzhou

Patentee before: GUANGZHOU UCWEB COMPUTER TECHNOLOGY Co.,Ltd.

TR01 Transfer of patent right