CN103488686B - The device of generation displaying class component and the method for generation displaying class component - Google Patents

The device of generation displaying class component and the method for generation displaying class component Download PDF

Info

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

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 kind of method that device for generating displaying class component and a kind of generation show class component, wherein, the device of the generation displaying class component includes:Info conversion module, for according to default information entity structure, each data message at least one data message to be shown being converted into corresponding information entity;Parsing module, for each information entity at least one described information entity to be resolved at least one basic display unit;Load-on module, for loading described at least one basic display unit successively, to complete the loading to each information entity;Component generation module, after carrying out loading completion for each information entity at least one information entity, generates the displaying class component.By technical scheme, the entity structure of the data message of separate sources can be unified, facilitate the maintenance in later stage, while also achieving flexible conversion of the data message between various exhibition methods.

Description

The device of generation displaying class component and the method for generation displaying class component
Technical field
The present invention relates to field of computer technology, in particular to a kind of device and one kind for generating displaying class component The method of generation displaying class component.
Background technology
At present, internet has incorporated people's life, and the simple stiff page is increasingly difficult to meet wanting for people, The internet page that everyone is intended to oneself operation meets the operating habit of oneself, the characteristic with oneself, or even wishes it It is unique.In order to solve this problem, website design personnel and code development personnel have found a kind of the thinking of user of allowing Method come true based on WSRP(Web Services for Remote Portlets)Door development technique.
With the development of door development technique, the displaying class Portlet components of substantial amounts are developed, and they are Developed by different developers and served different websites.By then for the otherness demand for meeting user Exploitation, so their form of expression is various, functional independence, logical construction dispersion and it is complicated, it is difficult to carry out unified specification And management.
There is problems with to showing the processing mode of class Portlet components in correlation technique:
1)The displaying of displaying class Portlet components is all the displaying of partial information attribute, the unified information reality of neither one Body Model, causing the specific display form of Portlet components can not carry out flexible configuration;
2)The information value logical sum displaying logical hybrid of Portlet components is together, it is impossible to different data messages Source is flexibly configured;
3)Lack unified Content Organizing mechanism, because early development lacks unified specification, cause later maintenance to work Amount is very big, it is difficult to which change according to circumstances is flexibly adjusted.
The content of the invention
The present invention is based at least one above-mentioned technical problem, it is proposed that a kind of side of new generation displaying class component Case, can unify to the entity structure of the data message of separate sources, facilitate the maintenance in later stage, while also achieving number It is believed that flexible conversion of the breath between various exhibition methods.
In view of this, the present invention proposes a kind of device for generating displaying class component, including:Info conversion module, is used for According to default information entity structure, each data message at least one data message to be shown is converted to accordingly Information entity;Parsing module, for each information entity at least one described information entity to be resolved at least one base This display unit;Load-on module, for loading described at least one basic display unit successively, with complete to it is described each The loading of information entity;Component generation module, is loaded for each information entity at least one information entity After completion, the displaying class component is generated.
In the technical scheme, by default information entity structure, data message to be shown is converted to accordingly Information entity structure so that the data message of separate sources is provided with unified information entity structure, so that multiple different The data message in source can be parsed easily, to generate basic display unit to be shown.By by multiple information Each information entity in entity resolves at least one basic display unit so that opened up to each information entity When showing, at least one basic display unit of the information entity can be carried out neatly according to the final bandwagon effect for needing Configuration, so as to realize mutual conversion of each information entity between various exhibition methods.Further, since multiple data message tools There is unified information entity, therefore be also convenient for the maintenance in later stage.
In the above-mentioned technical solutions, it is preferable that also include:Unit sort module, after being parsed to the parsing module At least one basic display unit classified, whether to determine in described at least one basic display unit comprising weight Want element;The load-on module is additionally operable to:When important element is included in judging at least one basic display unit, The important element is loaded;And at least one basic display unit is judged not comprising important element or After the loading to the important element is completed, the insignificant unit in described at least one basic display unit is loaded successively Element, to complete the loading to each information entity.
In the technical scheme, important element is the display unit for needing to focus on, prominent, uniqueness shows, insignificant element It is the other display unit in addition to important element, can be included in the display unit after the parsing of each information entity important Element, and important element only exists one, it is also possible to only comprising insignificant element.After being parsed to each information entity extremely Whether the judgement of important element is included in a few basic display unit, and when comprising important element, preferentially to important Element is loaded, and can be made for the important element in the information entity to be different from insignificant element and is loaded and shown, with The exhibition method of prominent important element.
In the above-mentioned technical solutions, it is preferable that the insignificant element in described at least one basic display unit includes: Common element and space elements, the load-on module are additionally operable to:The common element and the space elements are handed over successively Fork loading.
In the technical scheme, common element is standard, the display unit without special displaying, and space elements are displayings Display unit between multiple common elements, and space elements can directly invoke the exhibition method of common element and be opened up Show in other words, do not have strict differentiation between space elements and common element, when being shown, can be by interval unit Element is shown as common element, that is, think in information entity by the multiple display units after parsing and between not existing Every element, only when needing to make a distinction displaying to common element, just think there are space elements.Specifically, to one When multiple display units of individual information entity carry out branch's display, it is believed that exist in multiple display units of the information entity Common element and space elements, and common element and space elements is respectively displayed on odd-numbered line and even number line(Or show respectively Show in even number line and odd-numbered line), shown so as to multiple display units of the information entity are carried out into branch, if the information entity Multiple display units need not carry out branch and show, then without be made a distinction to common element and space elements.
In sum, in a multiple display units for information entity, important element and space elements are not necessarily Exist, and common element is then certainly existed, certainly, in an information entity only one of which display unit, the display Unit can be that important element can also insignificant element.
In the above-mentioned technical solutions, it is preferable that the load-on module includes:Start tag creation module, for creating State the beginning label of display unit;Content creation module, the content for creating the display unit;End-tag creates mould Block, the end-tag for creating the display unit.
Containing the display unit in the technical scheme, in the beginning label of display unit will be opened up in which way Show, the content of display unit then contains the specific display form of display unit, and the end-tag of display unit is the display list The mark that unit's loading is completed, after confirming that display unit loading is completed, to continue to load other display units.
In the above-mentioned technical solutions, it is preferable that the beginning tag creation module is additionally operable to:Successively loading described at least Before one basic display unit, the beginning label of described information entity is created;The end-tag creation module, is additionally operable to After described at least one basic display unit is loaded successively, the end-tag of described information entity is created.
In the technical scheme, the beginning label of information entity contains the form that whole information entity will show, right Each display unit is loaded in the information entity, is that the content of the information entity is loaded, the end of information entity Label is the mark that information entity loading is completed, after confirming that information entity loading is completed, to continue loading Other information entities.
Preferably, before load information entity, the beginning label of displaying class component, whole displaying for confirmation are first created The display form of class component, such as scrolling display, list display etc., after loading is completed to all of information entity, can be with The end-tag of displaying class component is created again, is identified with creating completion to the displaying class component.
According to another aspect of the present invention, it is also proposed that it is a kind of generate displaying class component method, including:Step 202, root According to default information entity structure, each data message at least one data message to be shown is converted into corresponding letter Breath entity;Step 204, at least one basic display is resolved to by each information entity at least one described information entity Unit;Step 206, loads described at least one basic display unit successively, to complete to add described each information entity Carry;Step 208, loads, by each information entity at least one information entity to generate the displaying class Component.
In the technical scheme, by default information entity structure, data message to be shown is converted to accordingly Information entity structure so that the data message of separate sources is provided with unified information entity structure, so that multiple different The data message in source can be parsed easily, to generate basic display unit to be shown.By by multiple information Each information entity in entity resolves at least one basic display unit so that opened up to each information entity When showing, at least one basic display unit of the information entity can be carried out neatly according to the final bandwagon effect for needing Configuration, so as to realize mutual conversion of each information entity between various exhibition methods.Further, since multiple data message tools There is unified information entity, therefore be also convenient for the maintenance in later stage.
In the above-mentioned technical solutions, it is preferable that the step 204 also includes, basic at least one after the parsing Display unit classified, whether to determine in described at least one basic display unit comprising important element;The step Rapid 206 also include, when important element is included in judging at least one basic display unit, to the important element Loaded;And not comprising important element or completed to described heavy at least one basic display unit is judged Want after the loading of element, the insignificant element in described at least one basic display unit is loaded successively, to complete to institute State the loading of each information entity.
In the technical scheme, important element is the display unit for needing to focus on, prominent, uniqueness shows, insignificant element It is the other display unit in addition to important element, can be included in the display unit after the parsing of each information entity important Element, and important element only exists one, it is also possible to only comprising insignificant element.After being parsed to each information entity extremely Whether the judgement of important element is included in a few basic display unit, and when comprising important element, preferentially to important Element is loaded, and can be made for the important element in the information entity to be different from insignificant element and is loaded and shown, with The exhibition method of prominent important element.
In the above-mentioned technical solutions, it is preferable that the insignificant element in described at least one basic display unit includes: Common element and space elements, the step 206 also include:The common element and the space elements are intersected successively Loading.
In the technical scheme, common element is standard, the display unit without special displaying, and space elements are displayings Display unit between multiple common elements, the exhibition method that space elements can directly invoke common element is shown, In other words, do not have strict differentiation between space elements and common element, when being shown, space elements can be worked as It is shown as common element, that is, thinks, in multiple display units of information entity and in the absence of space elements, only needing When making a distinction displaying to common element, just think there are space elements.Specifically, to a multiple for information entity When display unit carries out branch's display, it is believed that there is common element and interval unit in multiple display units of the information entity Element, and common element and space elements is respectively displayed on odd-numbered line and even number line(Or it is respectively displayed on even number line and odd number OK), shown so as to multiple display units of the information entity are carried out into branch, if multiple display units of the information entity are not Needs carry out branch and show, then without being made a distinction to common element and space elements.
In sum, in a multiple display units for information entity, important element and space elements are not necessarily Exist, and common element is then certainly existed, certainly, in an information entity only one of which display unit, the display Unit can be that important element can also insignificant element.
In the above-mentioned technical solutions, it is preferable that the step of loading at least one basic display unit includes:Create The content for starting label, creating the display unit of the display unit, the end-tag of the establishment display unit.
Containing the display unit in the technical scheme, in the beginning label of display unit will be opened up in which way Show, the content of display unit then contains the specific display form of display unit, and the end-tag of display unit is the display list The mark that unit's loading is completed, after confirming that display unit loading is completed, to continue to load other display units.
In the above-mentioned technical solutions, it is preferable that before the step 206, also include:Create described each information entity Beginning label;And after being loaded successively to described at least one basic display unit, also include:Create it is described each The end-tag of information entity.
In the technical scheme, the beginning label of information entity contains the form that whole information entity will show, right Each display unit is loaded in the information entity, is that the content of the information entity is loaded, the end of information entity Label is the mark that information entity loading is completed, after confirming that information entity loading is completed, to continue loading Other information entities.
Preferably, before load information entity, the beginning label of displaying class component, whole displaying for confirmation are first created The display form of class component, such as scrolling display, list display etc., after loading is completed to all of information entity, can be with The end-tag of displaying class component is created again, is identified with creating completion to the displaying class component.
By above technical scheme, the entity structure of the data message of separate sources can be unified, after facilitating The maintenance of phase, while also achieving flexible conversion of the data message between various exhibition methods.
Brief description of the drawings
Fig. 1 shows the schematic block diagram of the device of generation displaying class component according to an embodiment of the invention;
Fig. 2 shows the schematic flow diagram of the method for generation displaying class component according to an embodiment of the invention;
Fig. 3 shows the schematic diagram of multiple display units of information entity according to an embodiment of the invention;
Fig. 4 shows the schematic flow diagram of the method for generation displaying class component according to still another embodiment of the invention.
Specific embodiment
It is below in conjunction with the accompanying drawings and specific real in order to be more clearly understood that the above objects, features and advantages of the present invention Mode is applied to be further described in detail the present invention.It should be noted that in the case where not conflicting, the implementation of the application Feature in example and embodiment can be mutually combined.
Many details are elaborated in the following description in order to fully understand the present invention, but, the present invention may be used also Implemented with being different from other modes described here using other, therefore, protection scope of the present invention is not by described below Specific embodiment limitation.
Fig. 1 shows the schematic block diagram of the device of generation displaying class component according to an embodiment of the invention.
As shown in figure 1, generation shows the device 100 of class component according to an embodiment of the invention, including:Information modulus of conversion Block 102, for according to default information entity structure, each data message at least one data message to be shown being turned It is changed to corresponding information entity;Parsing module 104, for each information entity at least one described information entity to be parsed It is at least one basic display unit;Load-on module 106, for loading described at least one basic display unit successively, To complete the loading to each information entity;Component generation module 108, for every at least one information entity Individual information entity is carried out after loading completion, generates the displaying class component.
In the technical scheme, by default information entity structure, data message to be shown is converted to accordingly Information entity structure so that the data message of separate sources is provided with unified information entity structure, so that multiple different The data message in source can be parsed easily, to generate basic display unit to be shown.By by multiple information Each information entity in entity resolves at least one basic display unit so that opened up to each information entity When showing, at least one basic display unit of the information entity can be carried out neatly according to the final bandwagon effect for needing Configuration, so as to realize mutual conversion of each information entity between various exhibition methods.Further, since multiple data message tools There is unified information entity, therefore be also convenient for the maintenance in later stage.
Specifically, default information entity structure can be as shown in table 1:
Information attribute Attribute type Description
Major key Character string
Title Character string
Author Character string
Keyword Character string
Issuing time DateTime Date+time
Description of content Character string 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 extension
Extended attribute 2 Character string For extension
Extended attribute 3 Character string For extension
Extended attribute 4 Character string For extension
Extended attribute 5 Character string For extension
Table 1
By definition information entity structure, the data structure of the data message of separate sources is converted into unified information reality Body structure, facilitates and the data message of separate sources is processed, and the later stage maintenance work.
In the above-mentioned technical solutions, it is preferable that also include:Unit sort module 110, for the parsing module 104 At least one basic display unit after parsing is classified, with determine in described at least one basic display unit whether Comprising important element;The load-on module 106 is additionally operable to:Include weight at least one basic display unit is judged When wanting element, the important element is loaded;And do not include at least one basic display unit is judged Important element or after loading to the important element is completed, in loading described at least one basic display unit successively Insignificant element, to complete the loading to each information entity.
In the technical scheme, important element is the display unit for needing to focus on, prominent, uniqueness shows, insignificant element It is the other display unit in addition to important element, can be included in the display unit after the parsing of each information entity important Element, and important element only exists one, it is also possible to only comprising insignificant element.After being parsed to each information entity extremely Whether the judgement of important element is included in a few basic display unit, and when comprising important element, preferentially to important Element is loaded, and can be made for the important element in the information entity to be different from insignificant element and is loaded and shown, with The exhibition method of prominent important element.
In the above-mentioned technical solutions, it is preferable that the insignificant element in described at least one basic display unit includes: Common element and space elements, the load-on module 106 are additionally operable to:The common element and the space elements are carried out successively Intersect loading.
In the technical scheme, common element is standard, the display unit without special displaying, and space elements are displayings Display unit between multiple common elements, the exhibition method that space elements can directly invoke common element is shown, In other words, do not have strict differentiation between space elements and common element, when being shown, space elements can be worked as It is shown as common element, that is, thinks, in multiple display units of information entity and in the absence of space elements, only needing When making a distinction displaying to common element, just think there are space elements.Specifically, to a multiple for information entity When display unit carries out branch's display, it is believed that there is common element and interval unit in multiple display units of the information entity Element, and common element and space elements is respectively displayed on odd-numbered line and even number line(Or it is respectively displayed on even number line and odd number OK), shown so as to multiple display units of the information entity are carried out into branch, if multiple display units of the information entity are not Needs carry out branch and show, then without being made a distinction to common element and space elements.
In sum, in a multiple display units for information entity, important element and space elements are not necessarily Exist, and common element is then certainly existed, certainly, in an information entity only one of which display unit, the display Unit can be that important element can also insignificant element.
In the above-mentioned technical solutions, it is preferable that the load-on module 106 includes:Start tag creation module 1062, be used for Create the beginning label of the display unit;Content creation module 1064, the content for creating the display unit;Terminate mark Sign creation module 1066, the end-tag for creating the display unit.
Containing the display unit in the technical scheme, in the beginning label of display unit will be opened up in which way Show, the content of display unit then contains the specific display form of display unit, and the end-tag of display unit is the display list The mark that unit's loading is completed, after confirming that display unit loading is completed, to continue to load other display units.
In the above-mentioned technical solutions, it is preferable that the beginning tag creation module 1062 is additionally operable to:It is described loading successively Before at least one basic display unit, the beginning label of described information entity is created;End-tag creation module 1066, also For after described at least one basic display unit is loaded successively, creating the end-tag of described information entity.
In the technical scheme, the beginning label of information entity contains the form that whole information entity will show, right Each display unit is loaded in the information entity, is that the content of the information entity is loaded, the end of information entity Label is the mark that information entity loading is completed, after confirming that information entity loading is completed, to continue loading Other information entities.
Preferably, before load information entity, the beginning label of displaying class component, whole displaying for confirmation are first created The display form of class component, such as scrolling display, list display etc., after loading is completed to all of information entity, can be with The end-tag of displaying class component is created again, is identified with creating completion to the displaying class component.
Fig. 2 shows the schematic flow diagram of the method for generation displaying class component according to an embodiment of the invention.
As shown in Fig. 2 the method that generation shows class component according to an embodiment of the invention, including:Step 202, according to Default information entity structure, corresponding information is converted to by each data message at least one data message to be shown Entity;Step 204, at least one basic display list is resolved to by each information entity at least one described information entity Unit;Step 206, loads described at least one basic display unit successively, to complete the loading to each information entity; Step 208, loads by each information entity at least one information entity, to generate the displaying class group Part.
In the technical scheme, by default information entity structure, data message to be shown is converted to accordingly Information entity structure so that the data message of separate sources is provided with unified information entity structure, so that multiple different The data message in source can be parsed easily, to generate basic display unit to be shown.By by multiple information Each information entity in entity resolves at least one basic display unit so that opened up to each information entity When showing, at least one basic display unit of the information entity can be carried out neatly according to the final bandwagon effect for needing Configuration, so as to realize mutual conversion of each information entity between various exhibition methods.Further, since multiple data message tools There is unified information entity, therefore be also convenient for the maintenance in later stage.
In the above-mentioned technical solutions, it is preferable that the step 204 also includes, basic at least one after the parsing Display unit classified, whether to determine in described at least one basic display unit comprising important element;The step Rapid 206 also include, when important element is included in judging at least one basic display unit, to the important element Loaded;And not comprising important element or completed to described heavy at least one basic display unit is judged Want after the loading of element, the insignificant element in described at least one basic display unit is loaded successively, to complete to institute State the loading of each information entity.
In the technical scheme, important element is the display unit for needing to focus on, prominent, uniqueness shows, insignificant element It is the other display unit in addition to important element, can be included in the display unit after the parsing of each information entity important Element, and important element only exists one, it is also possible to only comprising insignificant element.After being parsed to each information entity extremely Whether the judgement of important element is included in a few basic display unit, and when comprising important element, preferentially to important Element is loaded, and can be made for the important element in the information entity to be different from insignificant element and is loaded and shown, with The exhibition method of prominent important element.
In the above-mentioned technical solutions, it is preferable that the insignificant element in described at least one basic display unit includes: Common element and space elements, the step 206 also include:The common element and the space elements are intersected successively Loading.
In the technical scheme, common element is standard, the display unit without special displaying, and space elements are displayings Display unit between multiple common elements, the exhibition method that space elements can directly invoke common element is shown, In other words, do not have strict differentiation between space elements and common element, when being shown, space elements can be worked as It is shown as common element, that is, thinks, in multiple display units of information entity and in the absence of space elements, only needing When making a distinction displaying to common element, just think there are space elements.Specifically, to a multiple for information entity When display unit carries out branch's display, it is believed that there is common element and interval unit in multiple display units of the information entity Element, and common element and space elements is respectively displayed on odd-numbered line and even number line(Or it is respectively displayed on even number line and odd number OK), shown so as to multiple display units of the information entity are carried out into branch, if multiple display units of the information entity are not Needs carry out branch and show, then without being made a distinction to common element and space elements.In sum, in information entity In multiple display units, what important element and space elements were not necessarily present, and common element is then certainly existed, when So, in an information entity only one of which display unit, the display unit can be that important element can also insignificant element.
As shown in figure 3, the displaying class component of weather forecast of the invention, the displaying class component contains an information Entity, information entity obtains five display units by parsing, and wherein display unit 302 is the display for needing to be highlighted Unit, therefore, it can display unit 302 as important element, and display unit 304, display unit 306, display unit 308th, display unit 310 need not be highlighted, and be therefore, it can display unit 304, display unit 306, display unit 308th, display unit 310 is all as common element, naturally it is also possible to using display unit 304 and display unit 308 as common unit Element, and multiple common elements are made a distinction into display by display unit 306 and display unit 310 as space elements.
In the above-mentioned technical solutions, it is preferable that the step of loading at least one basic display unit includes:Create The content for starting label, creating the display unit of the display unit, the end-tag of the establishment display unit.
Containing the display unit in the technical scheme, in the beginning label of display unit will be opened up in which way Show, the content of display unit then contains the specific display form of display unit, and the end-tag of display unit is the display list The mark that unit's loading is completed, after confirming that display unit loading is completed, to continue to load other display units.
In the above-mentioned technical solutions, it is preferable that before the step 206, also include:Create described each information entity Beginning label;And after being loaded successively to described at least one basic display unit, also include:Create it is described each The end-tag of information entity.
In the technical scheme, the beginning label of information entity contains the form that whole information entity will show, right Each display unit is loaded in the information entity, is that the content of the information entity is loaded, the end of information entity Label is the mark that information entity loading is completed, after confirming that information entity loading is completed, to continue loading Other information entities.
Preferably, before load information entity, the beginning label of displaying class component, whole displaying for confirmation are first created The display form of class component, such as scrolling display, list display etc., after loading is completed to all of information entity, can be with The end-tag of displaying class component is created again, is identified with creating completion to the displaying class component.
Fig. 4 shows the schematic flow diagram of the method for generation displaying class component according to still another embodiment of the invention.
As shown in figure 4, the method for generation displaying class component according to still another embodiment of the invention, including:
Step 402, creates displaying class component and starts label, the display form of whole displaying class component for confirmation, such as Scrolling display, list display etc..
Step 404, judges whether information entity loads completion, if judging, information entity loading is completed, and performs step 434, otherwise, perform step 406.An information entity can be only included in showing class component at one, it is also possible to comprising multiple Information entity, if comprising multiple information entities, after all of information entity all loads completion, judging displaying class component Loading is completed.
Step 406, when judging that information entity does not load completion, creates information entity and starts label, starts to create letter Breath entity.
Step 408, judges whether information entity includes important element by the display unit after parsing, if so, then Step 410 is performed, step 416 is otherwise performed.
Step 410, when in judging information entity by the display unit after parsing comprising important element, creates important Element starts label, to determine that the important element is shown in which way.
Step 412, creates important element content, and the specific display form of important element is contained in important element content.
Step 414, creates important element end-tag, and the end-tag of important element is the mark that important element loading is completed Know, in order to after confirming that important element loading is completed, continue other operations.
Step 416, judges whether information entity loads completion by the insignificant element in the display unit after parsing, If it is determined that when insignificant element loading is completed, performing step 432, otherwise, step 418 is performed.
Step 418, the insignificant element for judging to need loading is common element or space elements, and what is if desired loaded is Space elements, then perform step 426, if common element, then performs step 420.
Step 420, when judging that it is common element to need the insignificant element for loading, creates common element and starts label, To determine that the common element is shown in which way.
Step 422, creates common element content, and the specific display form of common element is contained in common element content.
Step 424, creates common element end-tag, and the end-tag of common element is the mark that common element loading is completed Know, in order to after confirming that common element loading is completed, continue other operations.
Step 426, when judging that it is space elements to need the insignificant element for loading, creates space elements and starts label, To determine that the space elements are shown in which way.
Step 428, creates space elements content, and the specific display form of space elements is contained in space elements content.
Step 430, creates space elements end-tag, and the end-tag of space elements is the mark that space elements loading is completed Know, after being completed in the loading of acknowledgement interval element, continue other operations.
Step 432, after judging that insignificant element loading is completed, creates information entity end-tag, to identify the letter Breath entity loading is completed.
Step 434, after judging that all of information entity all loads completion, creates displaying class component end-tag, with Identify the displaying class component and create completion.
Step 436, will create the displaying class component for completing and injects JS(JavaScript is a kind of based on object and time Drive and the client-side scripting language with relative safety)And/or CSS(Cascading Style Sheet, cascade pattern Table)In.
Technical scheme is described in detail above in association with accompanying drawing, it is contemplated that the form of expression of displaying class component is more Sample, functional independence, logical construction dispersion and it is complicated, it is difficult to carry out unified specification and management.Therefore, the present invention proposes one kind The method of new generation displaying class component, can unify, after facilitating to the entity structure of the data message of separate sources The maintenance of phase, while also achieving flexible conversion of the data message between various exhibition methods.
The preferred embodiments of the present invention are the foregoing is only, is not intended to limit the invention, for the skill of this area For art personnel, the present invention can have various modifications and variations.It is all within the spirit and principles in the present invention, made any repair Change, equivalent, improvement etc., should be included within the scope of the present invention.

Claims (4)

1. it is a kind of to generate the device for showing class component, it is characterised in that including:
Info conversion module, for according to default information entity structure, will be every at least one data message to be shown Individual data message is converted to corresponding information entity;
Parsing module, it is basic aobvious for each information entity at least one described information entity to be resolved at least one Show unit;
Load-on module, for loading described at least one basic display unit successively, to complete to described each information entity Loading;
Component generation module, it is raw after carrying out loading completion for each information entity at least one information entity Into the displaying class component;
The load-on module includes:
Start tag creation module, the beginning label for creating the display unit;
Content creation module, the content for creating the display unit;
End-tag creation module, the end-tag for creating the display unit;
Containing the display unit in the beginning label of the display unit will be shown in which way, display unit Content then contains the specific display form of display unit, and the end-tag of display unit is the mark that display unit loading is completed Know;
Also include:Unit sort module, is carried out at least one basic display unit after being parsed to the parsing module Classification, whether to determine in described at least one basic display unit comprising important element;
The load-on module is additionally operable to:
When important element is included in judging at least one basic display unit, the important element is added Carry;And
Not comprising important element or in completion to the important element at least one basic display unit is judged After loading, the insignificant element in described at least one basic display unit is loaded successively, to complete to described each letter Cease the loading of entity;
Insignificant element in described at least one basic display unit includes:Common element and space elements, the loading Module is additionally operable to:
Intersection loading is carried out to the common element and the space elements successively.
2. generation according to claim 1 shows the device of class component, it is characterised in that the beginning tag creation module It is additionally operable to:Before described at least one basic display unit is loaded successively, the beginning label of described information entity is created;
The end-tag creation module, is additionally operable to after described at least one basic display unit is loaded successively, creates The end-tag of described information entity.
3. it is a kind of to generate the method for showing class component, it is characterised in that including:
Step 202, according to default information entity structure, by each data message at least one data message to be shown Be converted to corresponding information entity;
Step 204, at least one basic display list is resolved to by each information entity at least one described information entity Unit;
Step 206, loads described at least one basic display unit successively, to complete to add described each information entity Carry;
Step 208, loads, by each information entity at least one information entity to generate the displaying class Component;
The step of loading described at least one basic display unit includes:
Create starting label, creating the content of the display unit, create the end of the display unit for the display unit Label;
Containing the display unit in the beginning label of the display unit will be shown in which way, display unit Content then contains the specific display form of display unit, and the end-tag of display unit is the mark that display unit loading is completed Know;
The step 204 also includes that the display unit basic at least one after the parsing is classified, described to determine Whether important element is included at least one basic display unit;
The step 206 also includes, when important element is included in judging at least one basic display unit, to institute Important element is stated to be loaded;And
Not comprising important element or in completion to the important element at least one basic display unit is judged After loading, the insignificant element in described at least one basic display unit is loaded successively, to complete to described each letter Cease the loading of entity;
The insignificant element stated at least one basic display unit includes:Common element and space elements, the step 206 Also include:
Intersection loading is carried out to the common element and the space elements successively.
4. the method that generation according to claim 3 shows class component, it is characterised in that before the step 206, also Including:
Create the beginning label of each information entity;
And after being loaded successively to described at least one basic display unit, also include:Create described each information reality The end-tag of body.
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 CN103488686A (en) 2014-01-01
CN103488686B true 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)

Families Citing this family (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
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

Citations (4)

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

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2009003281A1 (en) * 2007-07-03 2009-01-08 Tlg Partnership System, method, and data structure for providing access to interrelated sources of information

Patent Citations (4)

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

Also Published As

Publication number Publication date
CN103488686A (en) 2014-01-01

Similar Documents

Publication Publication Date Title
Akpınar et al. Vision based page segmentation algorithm: Extended and perceived success
US20050198202A1 (en) Method for causing server to provide client computers with annotation functions for enabling users of the client computers to view object-based documents with annotations
CN103309806B (en) The device and method of a kind of quick development and testing
US20050198567A1 (en) Web navigation method and system
CN103608802B (en) The method and system of Choose for user between the file and source file fetched
US20130145241A1 (en) Automated augmentation of text, web and physical environments using multimedia content
WO2015047920A1 (en) Title and body extraction from web page
CN106469047A (en) A kind of list implementation method and device
JP2006178982A (en) Computer processing method and device
CN104081393B (en) Network application content map
CN105426508A (en) Webpage generation method and apparatus
JP5002729B2 (en) Data viewer management
CN103970820A (en) Method and device for visualization of Web multimedia resource open annotation data
CN102902673A (en) Method and device for dynamically generating web pages
CN103488686B (en) The device of generation displaying class component and the method for generation displaying class component
CN106462933A (en) Using content structure to socially connect users
CN104166545B (en) The sniff method and device of a kind of web page resources
US20150248385A1 (en) Semantic Network Establishing System and Establishing Method Thereof
US9690834B2 (en) Representation, comparison, and troubleshooting of native data between environments
Cameron Wired collections—the next generation
Ayuba et al. Evaluation of page response time between partial and full rendering in a web-based catalog system
Swezey et al. Intelligent page recommender agents: real-time content delivery for articles and pages related to similar topics
Lechevalier et al. NIST ontological visualization interface for standards: User’s guide
Morris A framework for XML schema naming and design rules development tools
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