Specific embodiment
Referring to Fig. 1, Fig. 1 is the process of the methods of exhibiting of the flow content in one kind of multiple sources provided in an embodiment of the present invention
Figure, as described in Figure, the methods of exhibiting of the flow content in a variety of sources of the present embodiment the following steps are included:
S101: user interface is divided by multiple content module views according to the source of flow content, wherein multiple contents
Module view is mutually independent.
User interface (User Interface, UI) in the embodiment of the present invention refers to the system of application and between user
The medium with information exchange is interacted, realizes that the internal form of application message and the mankind can receive the conversion between form.
Content module view refers to the module for showing particular content, provides the view framework of an entirety for view
It shows and uses.The content module view can be with the more pre-loaded template shown for view, such as layout template, display form
Template, displaying style template etc..Each content module view can load same template, can also load different moulds
Plate.
User interface is divided into multiple content module views according to the source of flow content by the embodiment of the present invention, and multiple
It is mutually indepedent between content module view.That is, its institute of displaying independent between each content module view
The flow content in corresponding source also only needs to update its corresponding content module when the flow content in wherein a certain source has update
Content in view, other content module view are unaffected.
The source of flow content refers to the source side of content-data, that is, provides the data providing of flow content.For example it washes in a pan
The main interface of Baoying County, the content of display may include the promotion message of different businessmans, such as the bargain goods of businessman A, B, C, D
Information, then the bargain goods information of businessman A, B, C, D are the flow content of separate sources, and businessman A, B, C, D are flow content
Source.So user interface can be divided into tetra- content module views of A, B, C, D according to businessman A, B, C, D by server, with
For showing the bargain goods information of businessman A, B, C, D respectively.
Wherein, multiple content module views can be by List View or in the form of rolling view in user interface presentation.
S102: the flow content of separate sources is obtained respectively according to source.
Server is to flow content source side request data, to obtain the flow content of separate sources respectively.It needs to illustrate
It is that the S102 step and S101 step do not distinguish sequencing strictly, in some instances it may even be possible to be synchronous realize.For example it can be clothes
Business device gets the flow content of separate sources first, and user interface is then divided into multiple contents according to the source of flow content
Module view.It is also possible to the number that server gets flow content source first, then according to the number in source by user circle
Face is divided into multiple content module views, then obtains the flow content of separate sources.The present invention is to the specific successive of two steps
Sequence does not do considered critical.
S103: the flow content of separate sources is respectively correspondingly shown in the content module view corresponding to it, with
The flow content of separate sources is respectively correspondingly shown in multiple content module views.
The flow content of separate sources is respectively correspondingly shown in the content module view corresponding to it, as a kind of tool
The implementation of body can be the flow content according to separate sources, determine corresponding view styles and pattern, thus by corresponding
View styles and pattern load be in content module view corresponding to it, according to view styles and pattern to the stream of separate sources
Content is packaged typesetting respectively, then again by encapsulate typesetting after multiple content module views carry out permutation and combination after in user
Showing interface.
Multiple content module views after encapsulation typesetting, which can be, carries out permutation and combination according to scheduled arrangement mode, can also
Being shown after the request based on data source side carries out permutation and combination or the combination of server random alignment.
The concrete mode of displaying can be to be shown in the form of view list, or is opened up in a manner of rolling view
Show.
As a specific implementation manner, the embodiment of the present invention serves as modular container with List View, specifically
The content module view needed for display can be managed and created by Remote configuration.Such as shown in Fig. 2, each module
Container provides the environment of a creation List View, wherein the conventional display template for showing view is provided, by directly adding
Carry the displaying that particular content data realize oneself module contents.By the way that the function of abundant view is carried out modularization batch production singleton
Change, the displaying for each specific flow content provides conventional display template, to realize that the displaying of each content is independent of each other, in stream
Hold design and exploitation that provider need to only be absorbed in flow content itself, without the concern for the specific display form and reality of streaming content
Existing means, to save the development time.
It is the one of the displaying of the flow content provided in an embodiment of the present invention for carrying out a variety of sources further referring to Fig. 3, Fig. 3
The flow chart of kind specific implementation.
It should be noted that in specific implementation shown in Fig. 3, particular by factory method pattern (FACTORY
METHOD the displaying of the flow content of separate sources) is realized.So-called factory method pattern is a kind of common Object Creation type design
Mode, the core spirit of this mode are to encapsulate part constant in class, and extracting wherein personalized part apt to change is separate class, are led to
Dependence injection is crossed to achieve the purpose that decoupling, be multiplexed and later maintenance is facilitated to expand.It is to define a wound that it, which implements meaning,
The factor interface for building product object postpones till actual creation work in subclass.Core factory class is no longer responsible for the wound of product
It builds, such core classes become an abstract factory role, are merely responsible for the interface that specific factory's subclass must be realized, further in this way
The benefit of abstract is that factory method pattern is allowed to introduce system in the case where not modifying specific factory role newly
Product.In simple terms, just it is to provide a frame, which provides the preset parameter that normal view is shown, for different stream
Content, it is only necessary to change its specific flow content, carry out weight without need for the preset parameter that other normal views are shown
The operations such as new setting load.For example need to show a bargain goods information, it is only necessary to provide bargain goods letter to server
Cease data, without the concern for how typesetting, how display problem, server can based on created content module view
Figure to carry out typesetting displaying automatically.
As shown in figure 3, server shows request or when receiving the flow content for specifically needing to show receiving data,
Content switch is opened, to the corresponding content module view (module factory) of modular container request creation to be used to show flow content,
Modular container creation generates new module factory, the preset parameter of module factory requests normal view displaying or template etc., load
To form corresponding content module view, by showing flow content in content module view, container is then adjusted back, will be shown
There are multiple content module views of the flow content of separate sources to be shown on screen, to complete the exhibition of the flow content of separate sources
Show.
Referring to Fig. 4, Fig. 4 is the showing interface schematic diagram realized using the above method of the invention, YY as shown in Figure 4
The discovery interface of voice, " fresh cutting edge of a knife or a sword list " " 1931 " " square Bao Zhao " " discussion bar " " crowd raises " " application is recommended " etc. are from not cocurrent flow
The source of content, the above method through the invention, thus will be seen that main interface divides for different content module views, point
The flow content of separate sources is not shown in content module view herein.
Based on the above method of the invention, since multiple content module views are mutually indepedent, single content module view
The programming of module can not influence the function of other content module view in the same interface.Referring to Fig. 5, the present invention is real
It applies example and further provides for the flow chart that the flow content when there is content update is shown, as shown in Figure 5, comprising the following steps:
S11: the new flow content in the first source is obtained.
When the first source has new content to need to show, new flow content is sent to server, server obtains first
The new flow content in source.Here the first source, which refers to, has new content to need the information source method that shows, can be it is above-mentioned not
With any one of source or multiple.
S12: first content module view corresponding with the first source is found.
Content module view corresponding with the source is found according to source.That is, from multiple interior in user interface
Hold the content module view found in module view for showing the flow content in first source.
S13: accordingly updating first content module view with the new flow content in the first source, to regard in first content module
The new flow content in the first source is shown in figure.
By the corresponding update first content module view of the new flow content in the first source, i.e., by the new flow content in the first source
Flow content in the current first content module view of some or all of substitution, to show the in first content module view
The new flow content in one source.
It should be noted that here by the flow content in the first source is corresponding be shown in first content module view after,
It can further request as needed or according to flow content source side, to the other content module view and the in user interface
The arranged opposite combination of one content module view is adjusted, and shows multiple content module views adjusted.Such as the
It requests by the current forward displaying of new content, then by the position of first content module view and other content module view in one source
It is adjusted, so that the position of first content module view is adjusted to by front position, thus showing first by front position
The new flow content in source.And so on.It certainly, in specific implementation, can be according to specific need and to each content module view
Display form be adjusted, the present embodiment is not illustrated one by one.
The method of the above embodiment of the present invention can be to multiple contents by mutually independent multiple content module views
The preset corresponding normal view presentation parameter of module view and template, to guarantee the uniformity and code specification of development
Property, convenient for optimization and maintenance in the future.And such mode, by (providing abstraction interface to normal view presentation parameter
And template interface) with specific different content show specific implementation separate, content module view can be according to the template of load
It acts foolishly and carries out the occupy-place typesetting of flow content, by voluntarily realizing the typesetting and displaying of UI and content inside each content module view,
Specific flow content need to be only provided as flow content provider.And such mode is not needed when newly increasing content
Modify the new content of the i.e. renewable display of original client code.
Meanwhile because mutually indepedent between each content module view, the programming nothing of single content module views module
Method influences the function of other content module view in the same interface.Therefore, content module view, which also can have, remotely may be used
Layout type, can manage and maintain each content module view by Remote configuration, it is online for application version after because of burst
Content module view mistake caused by problem, can also be closed by way of Remote configuration the content module view from without
Patch is sent out again to solve the problems, such as.
Detailed description by the embodiments of the present invention to the methods of exhibiting of the flow content in a variety of sources, it will be understood that
User interface is divided into multiple content module views according to the source of flow content by the present invention, between each content module view that
This is mutually indepedent, and the flow content of separate sources is obtained according to source, and the flow content of separate sources is accordingly shown to its institute
In corresponding content module, to realize that the different content module contents of user interface respectively corresponds in the stream for showing separate sources
Hold.In this way, the displaying of the flow content in each source is mutually indepedent, is independent of each other, to facilitate separate sources
The displaying of flow content, it is also more convenient simultaneously for managing and maintaining for different content module view.
Referring to Fig. 6, Fig. 6 is a kind of structural schematic diagram of application server provided in an embodiment of the present invention, the present embodiment
Application server for executing method shown in the embodiments of the present invention.As shown, the application server of the present embodiment
100 include division module 11, acquisition module 12 and display module 13, in which:
Division module 11 is used for the source according to flow content and user interface is divided into multiple content module views,
In, multiple content module views are mutually independent.
User interface (User Interface, UI) in the embodiment of the present invention refers to the system of application and between user
The medium with information exchange is interacted, realizes that the internal form of application message and the mankind can receive the conversion between form.
Content module view refers to the module for showing particular content, provides the view framework of an entirety for view
It shows and uses.The content module view can be with the more pre-loaded template shown for view, such as layout template, display form
Template, displaying style template etc..Each content module view can load same template, can also load different moulds
Plate.
User interface is divided into multiple content module views according to the source of flow content by division module 11, and multiple interior
It is mutually indepedent between appearance module view.That is, independent between each content module view show that its institute is right
The flow content for answering source also only needs to update its corresponding content module view when the flow content in wherein a certain source has update
Content in figure, other content module view are unaffected.
The source of flow content refers to the source side of content-data, that is, provides the data providing of flow content.For example it washes in a pan
The main interface of Baoying County, the content of display may include the promotion message of different businessmans, such as the bargain goods of businessman A, B, C, D
Information, then the bargain goods information of businessman A, B, C, D are the flow content of separate sources, and businessman A, B, C, D are flow content
Source.So user interface can be divided into tetra- content module views of A, B, C, D according to businessman A, B, C, D by server, with
For showing the bargain goods information of businessman A, B, C, D respectively.
Wherein, multiple content module views can be by List View or in the form of rolling view in user interface presentation.
Obtain the flow content that module 12 is used to obtain separate sources respectively according to source.
Module 12 is obtained to flow content source side request data, to obtain the flow content of separate sources respectively.
Display module 13 is for respectively correspondingly showing the flow content of separate sources in its corresponding content module view
It is interior, respectively correspondingly to show the flow content of separate sources in multiple content module views.
Display module 13 respectively correspondingly shows the flow content of separate sources in the content module view corresponding to it,
As a specific implementation manner, further referring to Fig. 7, the display module 13 of the present embodiment further comprises typesetting unit
131 and display unit 132, wherein content module view corresponding to flow content of the typesetting unit 131 according to separate sources
Template is packaged typesetting to the flow content of separate sources respectively.
Typesetting unit 131 can be the flow content according to separate sources, determine to the template for being applied to show flow content, than
Such as layout template, display form template and displaying style template, so that template is loaded the interior molar corresponding to it
In block view, it is packaged typesetting respectively according to flow content of the template to separate sources.Each content module view can load
Same template can also load different templates.
Display unit 132 is used to encapsulate after the progress permutation and combination of multiple content module views after typesetting in user interface
It is shown.
Display unit 132 will encapsulate typesetting after multiple content module views carry out permutation and combination after in user interface exhibition
Show.
Multiple content module views after encapsulation typesetting, which can be, carries out permutation and combination according to scheduled arrangement mode, can also
Being shown after the request based on data source side carries out permutation and combination or the combination of server random alignment.
Wherein, multiple content module views after encapsulating typesetting, which can be, carries out arrangement group according to scheduled arrangement mode
It closes, is also possible to show after the request based on data source side carries out permutation and combination or the combination of server random alignment.
The concrete mode of displaying can be to be shown in the form of view list, or is opened up in a manner of rolling view
Show.
Based on method of the invention, since multiple content module views are mutually indepedent, single content module view mould
The programming of block can not influence the function of other content module view in the same interface.When there is content update, this implementation
The acquisition module 12 of example is also used to obtain the new content in the first source.
When the first source has new content to need to show, new flow content is sent to server, module 12 is obtained and obtains
The new flow content in the first source.Here the first source refers to the information source method for having new content to need to show, can be
State any one of separate sources or multiple.
Display module 13 is for finding first content module view corresponding with the first source, in the new stream in the first source
Hold and accordingly update first content module view, to show the new flow content in the first source in first content module view.
Display module 13 finds content module view corresponding with the source according to source.That is, from user interface
In multiple content module views in find content module view for showing the flow content in first source.
Display module 13 is by the corresponding update first content module view of the new flow content in the first source, i.e., by the first source
The current first content module view of some or all of substitution of new flow content in flow content, to be regarded in first content module
The new flow content in the first source is shown in figure.
It should be noted that here by the flow content in the first source is corresponding be shown in first content module view after,
It can further request as needed or according to flow content source side, to the other content module view and the in user interface
The arranged opposite combination of one content module view is adjusted, and shows multiple content module views adjusted.Such as the
It requests by the current forward displaying of new content, then by the position of first content module view and other content module view in one source
It is adjusted, so that the position of first content module view is adjusted to by front position, thus showing first by front position
The new flow content in source.And so on.It certainly, in specific implementation, can be according to specific need and to each content module view
Display form be adjusted, the present embodiment is not illustrated one by one.
The method and server of the above embodiment of the present invention can be right by mutually independent multiple content module views
The preset corresponding normal view presentation parameter of multiple content module views and template, to guarantee uniformity and the generation of development
Code is normative, convenient for optimization and maintenance in the future.And such mode, by (providing abstraction interface to normal view exhibition
Show parameter and template interface) with specific different content show specific implementation separate, content module view can be according to load
Template act foolishly and carry out the occupy-place typesetting of flow content, by voluntarily realized inside each content module view UI and content typesetting and
It shows, need to only provide specific flow content as flow content provider.And such mode, thus newly increasing content
When, it does not need to modify the new content of the i.e. renewable display of original client code.
Meanwhile because mutually indepedent between each content module view, the programming nothing of single content module views module
Method influences the function of other content module view in the same interface.Therefore, content module view, which also can have, remotely may be used
Layout type, can manage and maintain each content module view by Remote configuration, it is online for application version after because of burst
Content module view mistake caused by problem, can also be closed by way of Remote configuration the content module view from without
Patch is sent out again to solve the problems, such as.
Detailed description by the embodiments of the present invention to the methods of exhibiting and server of the flow content in a variety of sources, can
To understand, user interface is divided into multiple content module views, each content module view according to the source of flow content by the present invention
It is mutually independent between figure, the flow content of separate sources is obtained according to source, and the flow content of separate sources is accordingly shown
Show in the content module corresponding to it, so that it is different next to realize that the different content module contents of user interface respectively corresponds displaying
The flow content in source.In this way, the displaying of the flow content in each source is mutually indepedent, is independent of each other, thus conveniently not
It is also more convenient simultaneously for managing and maintaining for different content module view with the displaying of the flow content in source.
In several embodiments provided by the present invention, it should be understood that disclosed system, device and method can be with
It realizes by another way.For example, the apparatus embodiments described above are merely exemplary, for example, the module or
The division of unit, only a kind of logical function partition, there may be another division manner in actual implementation, such as multiple units
Or component can be combined or can be integrated into another system, or some features can be ignored or not executed.Another point, institute
Display or the mutual coupling, direct-coupling or communication connection discussed can be through some interfaces, device or unit
Indirect coupling or communication connection can be electrical property, mechanical or other forms.
The unit as illustrated by the separation member may or may not be physically separated, aobvious as unit
The component shown may or may not be physical unit, it can and it is in one place, or may be distributed over multiple
In network unit.It can select some or all of unit therein according to the actual needs to realize the mesh of this embodiment scheme
's.
It, can also be in addition, the functional units in various embodiments of the present invention may be integrated into one processing unit
It is that each unit physically exists alone, can also be integrated in one unit with two or more units.Above-mentioned integrated list
Member both can take the form of hardware realization, can also realize in the form of software functional units.
If the integrated unit is realized in the form of SFU software functional unit and sells or use as independent product
When, it can store in a computer readable storage medium.Based on this understanding, technical solution of the present invention is substantially
The all or part of the part that contributes to existing technology or the technical solution can be in the form of software products in other words
It embodies, which is stored in a storage medium, including some instructions are used so that a computer
It is each that equipment (can be personal computer, server or the network equipment etc.) or processor (processor) execute the present invention
The all or part of the steps of embodiment the method.And storage medium above-mentioned includes: USB flash disk, mobile hard disk, read-only memory
(ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), magnetic or disk
Etc. the various media that can store program code.
The above description is only an embodiment of the present invention, is not intended to limit the scope of the invention, all to utilize this hair
Equivalent structure or equivalent flow shift made by bright specification and accompanying drawing content is applied directly or indirectly in other relevant skills
Art field, is included within the scope of the present invention.