CN103488686A - Device for generating display components and method for generating display components - Google Patents

Device for generating display components and method for generating display components Download PDF

Info

Publication number
CN103488686A
CN103488686A CN201310392174.2A CN201310392174A CN103488686A CN 103488686 A CN103488686 A CN 103488686A CN 201310392174 A CN201310392174 A CN 201310392174A CN 103488686 A CN103488686 A CN 103488686A
Authority
CN
China
Prior art keywords
display unit
information entity
important element
basic display
loading
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201310392174.2A
Other languages
Chinese (zh)
Other versions
CN103488686B (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.)
Yonyou Software Co Ltd
Original Assignee
Yonyou Software 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 Yonyou Software Co Ltd filed Critical Yonyou Software Co Ltd
Priority to CN201310392174.2A priority Critical patent/CN103488686B/en
Publication of CN103488686A publication Critical patent/CN103488686A/en
Application granted granted Critical
Publication of CN103488686B publication Critical patent/CN103488686B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/957Browsing optimisation, e.g. caching or content distillation
    • G06F16/9577Optimising the visualization of content, e.g. distillation of HTML documents
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/958Organisation or management of web site content, e.g. publishing, maintaining pages or automatic linking
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating
    • G06F9/44521Dynamic linking or loading; Link editing at or after load time, e.g. Java class loading
    • G06F9/44526Plug-ins; Add-ons

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Software Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Data Mining & Analysis (AREA)
  • Information Transfer Between Computers (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The invention provides a device for generating display components and a method for generating the display components, wherein the device for generating the display components comprises an information converting module, an analyzing module, a loading module and an component generating module; the information converting module is used for converting each piece of data information in at least one piece of to-be-displayed data information into a corresponding information entity according to a preset information entity structure; the analyzing module is used for analyzing each information entity in the at least one information entity into at least one basic display unit; the loading module is used for sequentially loading the at least one basic display unit to finish the loading of each information entity; the component generating module is used for generating the display components after each information entity in the at least one information entity is loaded. According to the technical scheme, the entity structures of the data information with different sources can be unified, the later maintenance is convenient, and meanwhile, the flexible convention of the data information among multiple display modes can be realized.

Description

Generate the device of showing class component and generate the method for showing class component
Technical field
The present invention relates to field of computer technology, in particular to a kind of a kind of device and method of showing class component that generates of showing class component that generate.
Background technology
At present, internet has incorporated people's life, and the simple stiff page more and more is difficult to meet will wanting of people, and everyone wishes that the internet page oneself operated meets the operating habit of oneself, has the characteristic of oneself, even wishes that it is unique.In order to address this problem, website design personnel and code development personnel found a kind of user's of allowing idea to come true based on WSRP(Web Services for Remote Portlets) the door development technique.
Along with the development of door development technique, the huge displaying class Portlet assembly of quantity has been developed out, and they are to develop and serve different websites by different developers.Owing to being that otherness demand in order to meet the user is developed, so their form of expression is various, functional independence, logical organization is disperseed and complicated, is difficult to carry out unified standard and management.
In correlation technique, the processing mode of showing class Portlet assembly is existed to following problem:
1) displaying of displaying class Portlet assembly is all the displaying of partial information attribute, and the information entity model that neither one is unified, cause the concrete display form of Portlet assembly can not carry out flexible configuration;
2) the information value logic of Portlet assembly, together with the displaying logical hybrid, can not configure flexibly to different data message sources;
3) lack unified Content Organizing mechanism, because early development lacks unified standard, cause the later maintenance workload very large, the variation be difficult to is according to circumstances adjusted flexibly.
Summary of the invention
The present invention just is being based on above-mentioned technical matters one of at least, the scheme that class component is showed in a kind of new generation has been proposed, can be unified the entity structure of the data message of separate sources, facilitate the maintenance in later stage, also realized the flexible conversion of data message between multiple exhibition method simultaneously.
In view of this, the present invention proposes a kind of device of showing class component that generates, comprising: the information modular converter, for the information entity structure according to default, each data message by least one in data message to be shown is converted to corresponding information entity; Parsing module, resolve at least one basic display unit for each information entity by least one described information entity; Load-on module, for loading successively described at least one basic display unit, to complete the loading to described each information entity; The assembly generation module, for after described each information entity of at least one information entity has loaded, generate described displaying class component.
In this technical scheme, by default information entity structure, data message to be shown is converted to corresponding information entity structure, make the data message of separate sources there is unified information entity structure, thereby make the data message of a plurality of separate sources to be resolved easily, to generate basic display unit to be shown.Resolve at least one basic display unit by each information entity by a plurality of information entities, make when each information entity is showed, can configure neatly by least one the basic display unit to this information entity according to the bandwagon effect of final needs, thereby realize the mutual conversion of each information entity between multiple exhibition method.In addition, because a plurality of data messages have unified information entity, therefore also facilitated the maintenance in later stage.
In technique scheme, preferably, also comprise: the unit sort module, at least one the basic display unit after described parsing module is resolved, classified, to determine in described at least one basic display unit whether comprise important element; Described load-on module also for: when judging that described at least one basic display unit includes important element, described important element is loaded; And after not comprising important element or complete the loading to described important element in judging described at least one basic display unit, load successively the non-important element in described at least one basic display unit, to complete the loading to described each information entity.
In this technical scheme, important element is to need the display unit of focusing on, outstanding, uniqueness is showed, non-important element is other display units except important element, can comprise important element in display unit after each information entity is resolved, and only there is one in important element, also can only comprise non-important element.By whether comprising the judgement of important element at least one the basic display unit after each information entity is resolved, and when comprising important element, preferentially important element is loaded, can make that the important element in this information entity is different to non-important element and load and show, to give prominence to the exhibition method of important element.
In technique scheme, preferably, the non-important element in described at least one basic display unit comprises: common element and space elements, described load-on module also for: successively described common element and described space elements are intersected to loading.
In this technical scheme, common element is standard, display unit without special displaying, space elements is the display unit be illustrated between a plurality of common elements, and space elements can directly be called the exhibition method of common element and be showed, in other words, do not have strict differentiation between space elements and common element, when being showed, space elements can be used as to common element is showed, think and pass through in a plurality of display units after resolving and do not have space elements at information entity, only when needs are distinguished displaying to common element, just think and have space elements.Specifically, carry out branch while showing at a plurality of display units to an information entity, can think in a plurality of display units of this information entity and have common element and space elements, and make common element and space elements be presented at respectively odd-numbered line and even number line (or being presented at respectively even number line and odd-numbered line), thereby a plurality of display units of this information entity are carried out to branch to be shown, if not needing to carry out branch, a plurality of display units of this information entity do not show, without common element and space elements are distinguished.
In sum, in a plurality of display units of an information entity, important element and space elements are not certain existence, common element is certain existence, certainly, when an information entity only has a display unit, this display unit can be that important element also can non-important element.
In technique scheme, preferably, described load-on module comprises: start the label creation module, for creating the beginning label of described display unit; Content creation module, for creating the content of described display unit; The end-tag creation module, for creating the end-tag of described display unit.
In this technical scheme, having comprised this display unit in the beginning label of display unit will be showed in which way, the content of display unit has comprised the concrete display form of display unit, the end-tag of display unit is the sign that this display unit has loaded, so that after confirming that this display unit has loaded, can continue to load other display unit.
In technique scheme, preferably, described beginning label creation module also for: before loading successively described at least one basic display unit, create the beginning label of described information entity; Described end-tag creation module, also, for after loading successively described at least one basic display unit, create the end-tag of described information entity.
In this technical scheme, the beginning label of information entity has comprised the form that whole information entity will be showed, it is that content to this information entity is loaded that each display unit in this information entity is loaded, the end-tag of information entity is the sign that this information entity has loaded, so that after confirming that this information entity has loaded, can continue to load other information entity.
Preferably, before the load information entity, first create the beginning label of showing class component, the display form of whole displaying class component for confirmation, such as roll display, list demonstration etc., after the information entity to all completes loading, can create again the end-tag of showing class component, so that this displaying class component has been created and identified.
According to a further aspect in the invention, also proposed a kind of method of showing class component that generates, having comprised: step 202, according to default information entity structure, each data message by least one in data message to be shown is converted to corresponding information entity; Step 204, resolve at least one basic display unit by each information entity at least one described information entity; Step 206, load described at least one basic display unit, successively to complete the loading to described each information entity; Step 208, by being loaded each information entity in described at least one information entity, to generate described displaying class component.
In this technical scheme, by default information entity structure, data message to be shown is converted to corresponding information entity structure, make the data message of separate sources there is unified information entity structure, thereby make the data message of a plurality of separate sources to be resolved easily, to generate basic display unit to be shown.Resolve at least one basic display unit by each information entity by a plurality of information entities, make when each information entity is showed, can configure neatly by least one the basic display unit to this information entity according to the bandwagon effect of final needs, thereby realize the mutual conversion of each information entity between multiple exhibition method.In addition, because a plurality of data messages have unified information entity, therefore also facilitated the maintenance in later stage.
In technique scheme, preferably, described step 204 also comprises, at least one the basic display unit after described parsing is classified, to determine in described at least one basic display unit whether comprise important element; Described step 206 also comprises, while in judging described at least one basic display unit, including important element, described important element is loaded; And after not comprising important element or complete the loading to described important element in judging described at least one basic display unit, load successively the non-important element in described at least one basic display unit, to complete the loading to described each information entity.
In this technical scheme, important element is to need the display unit of focusing on, outstanding, uniqueness is showed, non-important element is other display units except important element, can comprise important element in display unit after each information entity is resolved, and only there is one in important element, also can only comprise non-important element.By whether comprising the judgement of important element at least one the basic display unit after each information entity is resolved, and when comprising important element, preferentially important element is loaded, can make that the important element in this information entity is different to non-important element and load and show, to give prominence to the exhibition method of important element.
In technique scheme, preferably, the non-important element in described at least one basic display unit comprises: common element and space elements, described step 206 also comprises: successively described common element and described space elements are intersected to loading.
In this technical scheme, common element is standard, display unit without special displaying, space elements is the display unit be illustrated between a plurality of common elements, space elements can directly be called the exhibition method of common element and be showed, in other words, do not have strict differentiation between space elements and common element, when being showed, space elements can be used as to common element is showed, think and do not have space elements in a plurality of display units of information entity, only when needs are distinguished displaying to common element, just think and have space elements.Specifically, carry out branch while showing at a plurality of display units to an information entity, can think in a plurality of display units of this information entity and have common element and space elements, and make common element and space elements be presented at respectively odd-numbered line and even number line (or being presented at respectively even number line and odd-numbered line), thereby a plurality of display units of this information entity are carried out to branch to be shown, if not needing to carry out branch, a plurality of display units of this information entity do not show, without common element and space elements are distinguished.
In sum, in a plurality of display units of an information entity, important element and space elements are not certain existence, common element is certain existence, certainly, when an information entity only has a display unit, this display unit can be that important element also can non-important element.
In technique scheme, preferably, the step that loads described at least one basic display unit comprises: create described display unit the beginning label, create described display unit content, create the end-tag of described display unit.
In this technical scheme, having comprised this display unit in the beginning label of display unit will be showed in which way, the content of display unit has comprised the concrete display form of display unit, the end-tag of display unit is the sign that this display unit has loaded, so that after confirming that this display unit has loaded, can continue to load other display unit.
In technique scheme, preferably, before described step 206, also comprise: the beginning label that creates described each information entity; And, after described at least one basic display unit is loaded successively, also comprise: the end-tag that creates described each information entity.
In this technical scheme, the beginning label of information entity has comprised the form that whole information entity will be showed, it is that content to this information entity is loaded that each display unit in this information entity is loaded, the end-tag of information entity is the sign that this information entity has loaded, so that after confirming that this information entity has loaded, can continue to load other information entity.
Preferably, before the load information entity, first create the beginning label of showing class component, the display form of whole displaying class component for confirmation, such as roll display, list demonstration etc., after the information entity to all completes loading, can create again the end-tag of showing class component, so that this displaying class component has been created and identified.
By above technical scheme, can carry out the entity structure of the data message of separate sources unifiedly, facilitated the maintenance in later stage, also realized the flexible conversion of data message between multiple exhibition method simultaneously.
The accompanying drawing explanation
Fig. 1 shows the schematic block diagram that generates according to an embodiment of the invention the device of showing class component;
Fig. 2 shows the schematic flow diagram that generates according to an embodiment of the invention the method for showing class component;
Fig. 3 shows the schematic diagram of a plurality of display units of information entity according to an embodiment of the invention;
The schematic flow diagram of the method for class component is showed in the generation that Fig. 4 shows according to still another embodiment of the invention.
Embodiment
In order more clearly to understand above-mentioned purpose of the present invention, feature and advantage, below in conjunction with the drawings and specific embodiments, the present invention is further described in detail.It should be noted that, in the situation that do not conflict, the application's embodiment and the feature in embodiment can combine mutually.
A lot of details have been set forth in the following description so that fully understand the present invention; but; the present invention can also adopt other to be different from other modes described here and implement, and therefore, protection scope of the present invention is not subject to the restriction of following public specific embodiment.
Fig. 1 shows the schematic block diagram that generates according to an embodiment of the invention the device of showing class component.
As shown in Figure 1, generate according to an embodiment of the invention the device 100 of showing class component, comprise: information modular converter 102, for the information entity structure according to default, each data message by least one in data message to be shown is converted to corresponding information entity; Parsing module 104, resolve at least one basic display unit for each information entity by least one described information entity; Load-on module 106, for loading successively described at least one basic display unit, to complete the loading to described each information entity; Assembly generation module 108, for after described each information entity of at least one information entity has loaded, generate described displaying class component.
In this technical scheme, by default information entity structure, data message to be shown is converted to corresponding information entity structure, make the data message of separate sources there is unified information entity structure, thereby make the data message of a plurality of separate sources to be resolved easily, to generate basic display unit to be shown.Resolve at least one basic display unit by each information entity by a plurality of information entities, make when each information entity is showed, can configure neatly by least one the basic display unit to this information entity according to the bandwagon effect of final needs, thereby realize the mutual conversion of each information entity between multiple exhibition method.In addition, because a plurality of data messages have unified information entity, therefore also facilitated the maintenance in later stage.
Specifically, default information entity structure can be as shown in table 1:
Information attribute Attribute type Describe
Major key Character string ?
Title Character string ?
The author Character string ?
Key word Character string ?
Issuing time DateTime Date+time
Description of content Character string Be less than 200 words
Subject picture Character string The URL of picture access
Reference address Character string The URL of message reference
Extended attribute 1 Character string For expansion
Extended attribute 2 Character string For expansion
Extended attribute 3 Character string For expansion
Extended attribute 4 Character string For expansion
Extended attribute 5 Character string For expansion
Table 1
By definition information entity structure, the data structure of the data message of separate sources is converted to unified information entity structure, facilitated the data message of separate sources has been processed, and the maintenance work in later stage.
In technique scheme, preferably, also comprise: unit sort module 110, at least one the basic display unit after described parsing module 104 is resolved, classified, to determine in described at least one basic display unit whether comprise important element; Described load-on module 106 also for: when judging that described at least one basic display unit includes important element, described important element is loaded; And after not comprising important element or complete the loading to described important element in judging described at least one basic display unit, load successively the non-important element in described at least one basic display unit, to complete the loading to described each information entity.
In this technical scheme, important element is to need the display unit of focusing on, outstanding, uniqueness is showed, non-important element is other display units except important element, can comprise important element in display unit after each information entity is resolved, and only there is one in important element, also can only comprise non-important element.By whether comprising the judgement of important element at least one the basic display unit after each information entity is resolved, and when comprising important element, preferentially important element is loaded, can make that the important element in this information entity is different to non-important element and load and show, to give prominence to the exhibition method of important element.
In technique scheme, preferably, the non-important element in described at least one basic display unit comprises: common element and space elements, described load-on module 106 also for: successively described common element and described space elements are intersected to loading.
In this technical scheme, common element is standard, display unit without special displaying, space elements is the display unit be illustrated between a plurality of common elements, space elements can directly be called the exhibition method of common element and be showed, in other words, do not have strict differentiation between space elements and common element, when being showed, space elements can be used as to common element is showed, think and do not have space elements in a plurality of display units of information entity, only when needs are distinguished displaying to common element, just think and have space elements.Specifically, carry out branch while showing at a plurality of display units to an information entity, can think in a plurality of display units of this information entity and have common element and space elements, and make common element and space elements be presented at respectively odd-numbered line and even number line (or being presented at respectively even number line and odd-numbered line), thereby a plurality of display units of this information entity are carried out to branch to be shown, if not needing to carry out branch, a plurality of display units of this information entity do not show, without common element and space elements are distinguished.
In sum, in a plurality of display units of an information entity, important element and space elements are not certain existence, common element is certain existence, certainly, when an information entity only has a display unit, this display unit can be that important element also can non-important element.
In technique scheme, preferably, described load-on module 106 comprises: start label creation module 1062, for creating the beginning label of described display unit; Content creation module 1064, for creating the content of described display unit; End-tag creation module 1066, for creating the end-tag of described display unit.
In this technical scheme, having comprised this display unit in the beginning label of display unit will be showed in which way, the content of display unit has comprised the concrete display form of display unit, the end-tag of display unit is the sign that this display unit has loaded, so that after confirming that this display unit has loaded, can continue to load other display unit.
In technique scheme, preferably, described beginning label creation module 1062 also for: before loading successively described at least one basic display unit, create the beginning label of described information entity; End-tag creation module 1066, also, for after loading successively described at least one basic display unit, create the end-tag of described information entity.
In this technical scheme, the beginning label of information entity has comprised the form that whole information entity will be showed, it is that content to this information entity is loaded that each display unit in this information entity is loaded, the end-tag of information entity is the sign that this information entity has loaded, so that after confirming that this information entity has loaded, can continue to load other information entity.
Preferably, before the load information entity, first create the beginning label of showing class component, the display form of whole displaying class component for confirmation, such as roll display, list demonstration etc., after the information entity to all completes loading, can create again the end-tag of showing class component, so that this displaying class component has been created and identified.
Fig. 2 shows the schematic flow diagram that generates according to an embodiment of the invention the method for showing class component.
As shown in Figure 2, generate to show according to an embodiment of the invention the method for class component, comprising: step 202, according to default information entity structure, each data message by least one in data message to be shown is converted to corresponding information entity; Step 204, resolve at least one basic display unit by each information entity at least one described information entity; Step 206, load described at least one basic display unit, successively to complete the loading to described each information entity; Step 208, by being loaded each information entity in described at least one information entity, to generate described displaying class component.
In this technical scheme, by default information entity structure, data message to be shown is converted to corresponding information entity structure, make the data message of separate sources there is unified information entity structure, thereby make the data message of a plurality of separate sources to be resolved easily, to generate basic display unit to be shown.Resolve at least one basic display unit by each information entity by a plurality of information entities, make when each information entity is showed, can configure neatly by least one the basic display unit to this information entity according to the bandwagon effect of final needs, thereby realize the mutual conversion of each information entity between multiple exhibition method.In addition, because a plurality of data messages have unified information entity, therefore also facilitated the maintenance in later stage.
In technique scheme, preferably, described step 204 also comprises, at least one the basic display unit after described parsing is classified, to determine in described at least one basic display unit whether comprise important element; Described step 206 also comprises, while in judging described at least one basic display unit, including important element, described important element is loaded; And after not comprising important element or complete the loading to described important element in judging described at least one basic display unit, load successively the non-important element in described at least one basic display unit, to complete the loading to described each information entity.
In this technical scheme, important element is to need the display unit of focusing on, outstanding, uniqueness is showed, non-important element is other display units except important element, can comprise important element in display unit after each information entity is resolved, and only there is one in important element, also can only comprise non-important element.By whether comprising the judgement of important element at least one the basic display unit after each information entity is resolved, and when comprising important element, preferentially important element is loaded, can make that the important element in this information entity is different to non-important element and load and show, to give prominence to the exhibition method of important element.
In technique scheme, preferably, the non-important element in described at least one basic display unit comprises: common element and space elements, described step 206 also comprises: successively described common element and described space elements are intersected to loading.
In this technical scheme, common element is standard, display unit without special displaying, space elements is the display unit be illustrated between a plurality of common elements, space elements can directly be called the exhibition method of common element and be showed, in other words, do not have strict differentiation between space elements and common element, when being showed, space elements can be used as to common element is showed, think and do not have space elements in a plurality of display units of information entity, only when needs are distinguished displaying to common element, just think and have space elements.Specifically, carry out branch while showing at a plurality of display units to an information entity, can think in a plurality of display units of this information entity and have common element and space elements, and make common element and space elements be presented at respectively odd-numbered line and even number line (or being presented at respectively even number line and odd-numbered line), thereby a plurality of display units of this information entity are carried out to branch to be shown, if not needing to carry out branch, a plurality of display units of this information entity do not show, without common element and space elements are distinguished.In sum, in a plurality of display units of an information entity, important element and space elements are not certain existence, common element is certain existence, certainly, when an information entity only has a display unit, this display unit can be that important element also can non-important element.
As shown in Figure 3, displaying class component according to weather forecast of the present invention, this displaying class component has comprised an information entity, information entity obtains five display units through resolving, wherein display unit 302 is the display units that need to be highlighted, therefore, can be using display unit 302 as important element, and display unit 304, display unit 306, display unit 308, display unit 310 does not need to be highlighted, therefore, can be by display unit 304, display unit 306, display unit 308, display unit 310 is all as common element, can certainly be using display unit 304 and display unit 308 as common element, and using display unit 306 and display unit 310 as space elements, so that a plurality of common elements are carried out to differential display.
In technique scheme, preferably, the step that loads described at least one basic display unit comprises: create described display unit the beginning label, create described display unit content, create the end-tag of described display unit.
In this technical scheme, having comprised this display unit in the beginning label of display unit will be showed in which way, the content of display unit has comprised the concrete display form of display unit, the end-tag of display unit is the sign that this display unit has loaded, so that after confirming that this display unit has loaded, can continue to load other display unit.
In technique scheme, preferably, before described step 206, also comprise: the beginning label that creates described each information entity; And, after described at least one basic display unit is loaded successively, also comprise: the end-tag that creates described each information entity.
In this technical scheme, the beginning label of information entity has comprised the form that whole information entity will be showed, it is that content to this information entity is loaded that each display unit in this information entity is loaded, the end-tag of information entity is the sign that this information entity has loaded, so that after confirming that this information entity has loaded, can continue to load other information entity.
Preferably, before the load information entity, first create the beginning label of showing class component, the display form of whole displaying class component for confirmation, such as roll display, list demonstration etc., after the information entity to all completes loading, can create again the end-tag of showing class component, so that this displaying class component has been created and identified.
The schematic flow diagram of the method for class component is showed in the generation that Fig. 4 shows according to still another embodiment of the invention.
As shown in Figure 4, the method for class component is showed in generation according to still another embodiment of the invention, comprising:
Step 402, create and show that class component starts label, and the display form of whole displaying class component for confirmation, such as roll display, list demonstration etc.
Step 404, judge whether information entity has loaded, if the judgement information entity has loaded, performs step 434, otherwise, perform step 406.Can only comprise an information entity in one is showed class component, also can comprise a plurality of information entities, if comprise a plurality of information entities,, after all information entities have all loaded, judge and show that class component has loaded.
Step 406, when the determination information entity has not loaded, create information entity and start label, starts to create information entity.
Step 408, judge that information entity is through in the display unit after resolving, whether comprising important element, if perform step 410, otherwise perform step 416.
Step 410, while in the display unit after determination information entity process is resolved, comprising important element, create important element and start label, to determine that this important element is showed in which way.
Step 412, create the important element content, comprised the concrete display form of important element in the important element content.
Step 414, create the important element end-tag, and the end-tag of important element is the sign that important element has loaded, so that, after confirming that important element has loaded, continue other operations.
Step 416, judge whether information entity has loaded through the non-important element in the display unit after resolving, if judge when non-important element has loaded, performs step 432, otherwise, perform step 418.
Step 418, it is common element or space elements that judgement needs the non-important element loaded, what if need, load is space elements, performs step 426, if common element performs step 420.
Step 420, when judging that the non-important element that needs loading is common element, create common element and start label, to determine that this common element is showed in which way.
Step 422, create the common element content, comprised the concrete display form of common element in the common element content.
Step 424, create the common element end-tag, and the end-tag of common element is the sign that common element has loaded, so that, after confirming that common element has loaded, continue other operations.
Step 426, when judging that the non-important element that needs loading is space elements, create space elements and start label, to determine that this space elements is showed in which way.
Step 428, create the space elements content, comprised the concrete display form of space elements in the space elements content.
Step 430, create the space elements end-tag, and the end-tag of space elements is the sign that space elements has loaded, so that, after the acknowledgement interval element has loaded, continue other operations.
Step 432, after judging that non-important element has loaded, create the information entity end-tag, to identify this information entity, loaded.
Step 434, after judging that all information entities have all loaded, create and show the class component end-tag, to identify this displaying class component, created.
Step 436, the displaying class component that establishment is completed injects JS(JavaScript, is a kind of client script language that drives and have relative safety based on object and time) and/or CSS(Cascading Style Sheet, Cascading Style Sheet) in.
More than be described with reference to the accompanying drawings technical scheme of the present invention, considered that the form of expression of showing class component is various, functional independence, logical organization is disperseed and complexity, is difficult to carry out unified standard and management.Therefore, the present invention proposes a kind of method that class component is showed in new generation, can carry out the entity structure of the data message of separate sources unifiedly, facilitated the maintenance in later stage, also realized the flexible conversion of data message between multiple exhibition method simultaneously.
The foregoing is only the preferred embodiments of the present invention, be not limited to the present invention, for a person skilled in the art, the present invention can have various modifications and variations.Within the spirit and principles in the present invention all, any modification of doing, be equal to replacement, improvement etc., within all should being included in protection scope of the present invention.

Claims (10)

1. one kind generates the device of showing class component, it is characterized in that, comprising:
The information modular converter, for the information entity structure according to default, each data message by least one in data message to be shown is converted to corresponding information entity;
Parsing module, resolve at least one basic display unit for each information entity by least one described information entity;
Load-on module, for loading successively described at least one basic display unit, to complete the loading to described each information entity;
The assembly generation module, for after described each information entity of at least one information entity has loaded, generate described displaying class component.
2. the device of class component is showed in generation according to claim 1, it is characterized in that, also comprise: the unit sort module, for at least one the basic display unit after described parsing module is resolved, classified, to determine in described at least one basic display unit whether comprise important element;
Described load-on module also for:
While in judging described at least one basic display unit, including important element, described important element is loaded; And
After not comprising important element or complete the loading to described important element in judging described at least one basic display unit, load successively the non-important element in described at least one basic display unit, to complete the loading to described each information entity.
3. the device of class component is showed in generation according to claim 2, it is characterized in that, the non-important element in described at least one basic display unit comprises: common element and space elements, described load-on module also for:
Successively described common element and described space elements are intersected to loading.
4. according to the device of the described generation displaying of any one in claims 1 to 3 class component, it is characterized in that, described load-on module comprises:
Start the label creation module, for creating the beginning label of described display unit;
Content creation module, for creating the content of described display unit;
The end-tag creation module, for creating the end-tag of described display unit.
5. show the device of class component according to the described generation of any one in claims 1 to 3, it is characterized in that, described beginning label creation module also for: before loading successively described at least one basic display unit, create the beginning label of described information entity;
Described end-tag creation module, also, for after loading successively described at least one basic display unit, create the end-tag of described information entity.
6. one kind generates the method for showing class component, it is characterized in that, comprising:
Step 202, according to default information entity structure, each data message by least one in data message to be shown is converted to corresponding information entity;
Step 204, resolve at least one basic display unit by each information entity at least one described information entity;
Step 206, load described at least one basic display unit, successively to complete the loading to described each information entity;
Step 208, by being loaded each information entity in described at least one information entity, to generate described displaying class component.
7. the method for class component is showed in generation according to claim 6, it is characterized in that,
Described step 204 also comprises, at least one the basic display unit after described parsing is classified, to determine in described at least one basic display unit whether comprise important element;
Described step 206 also comprises, while in judging described at least one basic display unit, including important element, described important element is loaded; And
After not comprising important element or complete the loading to described important element in judging described at least one basic display unit, load successively the non-important element in described at least one basic display unit, to complete the loading to described each information entity.
8. the method for class component is showed in generation according to claim 7, it is characterized in that, the non-important element in described at least one basic display unit comprises: common element and space elements, and described step 206 also comprises:
Successively described common element and described space elements are intersected to loading.
9. the method that class component is showed in described generation according to any one in claim 6 to 8, is characterized in that, the step that loads described at least one basic display unit comprises:
Create described display unit the beginning label, create described display unit content, create the end-tag of described display unit.
10. the method that class component is showed in described generation according to any one in claim 6 to 8, is characterized in that, before described step 206, also comprises:
Create the beginning label of described each information entity;
And, after described at least one basic display unit is loaded successively, also comprise: the end-tag that creates described each information entity.
CN201310392174.2A 2013-09-02 2013-09-02 The device of generation displaying class component and the method for generation displaying class component Active CN103488686B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310392174.2A CN103488686B (en) 2013-09-02 2013-09-02 The device of generation displaying class component and the method for generation displaying class component

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310392174.2A CN103488686B (en) 2013-09-02 2013-09-02 The device of generation displaying class component and the method for generation displaying class component

Publications (2)

Publication Number Publication Date
CN103488686A true CN103488686A (en) 2014-01-01
CN103488686B CN103488686B (en) 2017-06-30

Family

ID=49828912

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310392174.2A Active CN103488686B (en) 2013-09-02 2013-09-02 The device of generation displaying class component and the method for generation displaying class component

Country Status (1)

Country Link
CN (1) CN103488686B (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103905445A (en) * 2014-03-31 2014-07-02 广州华多网络科技有限公司 Table data display method and device
CN106371850A (en) * 2016-09-19 2017-02-01 上海葡萄纬度科技有限公司 Method for establishing customizable desktop widget
CN106648572A (en) * 2015-11-03 2017-05-10 阿里巴巴集团控股有限公司 Interface prototype design method and device

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101051268A (en) * 2006-04-03 2007-10-10 国际商业机器公司 System and method for determining whether screen displayed by program satisfies specification
WO2009003281A1 (en) * 2007-07-03 2009-01-08 Tlg Partnership System, method, and data structure for providing access to interrelated sources of information
CN101403967A (en) * 2008-11-12 2009-04-08 恒生电子股份有限公司 Interface preservation and indication method, client terminal and server
CN102541602A (en) * 2011-12-28 2012-07-04 用友软件股份有限公司 Interface preloading device and interface preloading method
CN103257897A (en) * 2013-06-03 2013-08-21 贝壳网际(北京)安全技术有限公司 Starting method and device of mobile terminal browser and mobile terminal

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101051268A (en) * 2006-04-03 2007-10-10 国际商业机器公司 System and method for determining whether screen displayed by program satisfies specification
WO2009003281A1 (en) * 2007-07-03 2009-01-08 Tlg Partnership System, method, and data structure for providing access to interrelated sources of information
CN101403967A (en) * 2008-11-12 2009-04-08 恒生电子股份有限公司 Interface preservation and indication method, client terminal and server
CN102541602A (en) * 2011-12-28 2012-07-04 用友软件股份有限公司 Interface preloading device and interface preloading method
CN103257897A (en) * 2013-06-03 2013-08-21 贝壳网际(北京)安全技术有限公司 Starting method and device of mobile terminal browser and mobile terminal

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103905445A (en) * 2014-03-31 2014-07-02 广州华多网络科技有限公司 Table data display method and device
CN106648572A (en) * 2015-11-03 2017-05-10 阿里巴巴集团控股有限公司 Interface prototype design method and device
CN106648572B (en) * 2015-11-03 2020-11-06 创新先进技术有限公司 Method and apparatus for designing interface prototypes
CN106371850A (en) * 2016-09-19 2017-02-01 上海葡萄纬度科技有限公司 Method for establishing customizable desktop widget

Also Published As

Publication number Publication date
CN103488686B (en) 2017-06-30

Similar Documents

Publication Publication Date Title
CN101122921B (en) Method forming tree-shaped display structure based on ajax and html
CN108196880A (en) Software project knowledge mapping method for automatically constructing and system
CN106469047A (en) A kind of list implementation method and device
CN103608802B (en) The method and system of Choose for user between the file and source file fetched
CN103309806B (en) The device and method of a kind of quick development and testing
CN103761317A (en) Multithreading asynchronous rendering system and method
Glasze et al. " The Same But Not the Same": The Discursive Constitution of Large Housing Estates in Germany, France, and Poland
CN102521230A (en) Result types for conditional data display
CN104081393B (en) Network application content map
CN103970820A (en) Method and device for visualization of Web multimedia resource open annotation data
CN105183450A (en) E-government form model configuration system with foreground and background separation function
Chen et al. Digital inclusion or digital divide for older immigrants? A scoping review
CN105069116A (en) Method and system for converting json string into array
CN103488686A (en) Device for generating display components and method for generating display components
CN101944133B (en) XML metadata objectification analysis method and system
CN106708479B (en) A kind of page rendering method and device
Zosimov et al. Complex internet data management system
Cameron Wired collections—the next generation
CN102004776A (en) Window expression oriented cloud computing window system constructing method
CN102486731A (en) Method, device and system for enhancing visualization of software call stack of software
CN114064033A (en) Front-end component development method and device, electronic equipment and readable storage medium
Harms Research goals for evolving the ‘form’user interface metaphor towards more interactivity
Li et al. A Web application framework for end-user-initiative development with a visual tool
Brown Scaling Up Collaboration Online: Toward a Collaboratory for Research on Canadian Writing
Milan et al. Software tool for automatic population of MLO-AD ontology from accreditation documents

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
CB02 Change of applicant information

Address after: 100094 Haidian District North Road, Beijing, No. 68

Applicant after: Yonyou Network Technology Co., Ltd.

Address before: 100094 Beijing city Haidian District North Road No. 68, UFIDA Software Park

Applicant before: UFIDA Software Co., Ltd.

COR Change of bibliographic data
GR01 Patent grant
GR01 Patent grant