CN105956145B - The realization method and system of the mashed up load of different style contents in a kind of list - Google Patents

The realization method and system of the mashed up load of different style contents in a kind of list Download PDF

Info

Publication number
CN105956145B
CN105956145B CN201610315938.1A CN201610315938A CN105956145B CN 105956145 B CN105956145 B CN 105956145B CN 201610315938 A CN201610315938 A CN 201610315938A CN 105956145 B CN105956145 B CN 105956145B
Authority
CN
China
Prior art keywords
data
association
view
resolver
data view
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
CN201610315938.1A
Other languages
Chinese (zh)
Other versions
CN105956145A (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.)
Wuhan Douyu Network Technology Co Ltd
Original Assignee
Wuhan Douyu 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 Wuhan Douyu Network Technology Co Ltd filed Critical Wuhan Douyu Network Technology Co Ltd
Priority to CN201610315938.1A priority Critical patent/CN105956145B/en
Publication of CN105956145A publication Critical patent/CN105956145A/en
Application granted granted Critical
Publication of CN105956145B publication Critical patent/CN105956145B/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/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/24Querying
    • G06F16/248Presentation of query results

Abstract

The invention discloses a kind of realization method and systems of the mashed up load of different style contents in list, are related to the mashed up loading technique field of list style in Android system.This method comprises: building Data View association caching;According to different patterns, corresponding data type, Data View and Data View container are write;Corresponding association resolver is write for every kind of pattern, the association resolver write is added to one by one in Data View association caching, and specify the Hash codes for being designated as its data type under it;Take out every data one by one when list will show various data, after one data of every taking-up, corresponding association resolver is obtained according to the data type Hash codes of data, Data View, Data View container are successively created using association resolver, and data are inserted in the view container of creation and shown.The present invention can greatly simplify size of code, promote development efficiency and operational efficiency, reduce the error rate of mashed up load while the mashed up load of the different style contents of realization.

Description

The realization method and system of the mashed up load of different style contents in a kind of list
Technical field
It is specifically different in a kind of list the present invention relates to the mashed up loading technique field of list style in Android system The realization method and system of the mashed up load of style content.
Background technique
All there is original list in the major applications program in Android system, original list can arrange a plurality of data of display. As shown in Figure 1, an original list can show 7 datas in a manner of arranging from top to bottom.
List is a kind of common controls, is made of List View, list adapter, Data View and Data View container. Wherein, List View is a kind of view container, it obtains data from list adapter, and data are inserted after creating Data View Wherein, then Data View arrangement it is shown in itself, if Data View is excessive, not exclusively, user can pass through touching for display Slide is touched to slide up and down list, shows more Data Views.List adapter is a kind of array, its stored list will Data to be shown.Data View is a kind of view that developer writes, for showing data.Data View container is and list The associated control routine of view, such as: what is stored in list adapter is picture network address, then Data View should be picture view, List gives Data View container after reading picture network address in adapter, and Data View container access network Loads Image Binary data is refilled and is shown into picture view decoding.
Currently, the List View that Android system carries is commonly used to show the data of single pattern, as shown in Figure 1.But it is false The blended data (as shown in Figure 2) that complicated pattern is such as shown in the same list then needs a large amount of additional by writing Code realizes following operation:
1, correspond to a kind of data type for each pattern, as there is 3 kinds of difference patterns in Fig. 2: " magic lantern ", " thumbnail " and " summary " then needs corresponding three kinds of data types;
2, a kind of Data View is corresponded to for each data type;
3, a kind of Data View container is corresponded to for each Data View;
4, the storage sequence because of patterns different in adapter is unknown, needs to judge one by one the class of each data Type;
5, because data type be it is unfixed, need to create corresponding Data View according to different types of data;
6, because Data View be it is unfixed, need to create corresponding Data View according to different Data View and hold Device;
7, because Data View container be it is unfixed, need different data to be packed into corresponding data capsule view Figure.
In aforesaid operations, step 1 must all be realized into all list loading methods of step 3, written in code It is opposite to be easier to.But step 4 is very cumbersome to step 7, and the operation for needing to loop to determine data type is more (as shown in Figure 3).It opens It needs to judge one by one using if/else or switch sentence when originator voluntarily writes code, when due to judging data type, and needs Want the pattern of mashed up load more, carry out data type judgement size of code will exponentially as increase.This undoubtedly leads to code Amount is excessively huge, and compiling procedure is cumbersome, reduces development efficiency and operational efficiency;And since excessive data type judges behaviour Make, also adds error probability when the mashed up load of content.
Summary of the invention
The purpose of the invention is to overcome the shortcomings of above-mentioned background technique, it is mixed to provide different style contents in a kind of list The realization method and system of load is taken, size of code can be greatly simplified while the mashed up load of the different style contents of realization, be promoted Development efficiency and operational efficiency reduce the error rate of mashed up load.
To achieve the above objectives, the present invention provides a kind of implementation method of the mashed up load of different style contents in list, packet Include following steps:
A, the Data View association caching for storing various association resolvers is constructed;
B, according to different patterns, corresponding data type, Data View and Data View container are write;The difference pattern Specifically include three kinds of patterns: " magic lantern " pattern, " thumbnail " pattern and " summary " pattern;
C, corresponding association resolver is write for every kind of pattern;The association resolver write is added to the number one by one According to the Hash codes for being designated as its data type in view association caching, and under specified associations resolver, the Hash of the data type Code has unique numeric in memory;
When writing the corresponding association resolver of " magic lantern " pattern, following correlation rule is write for the association resolver: " unreal The data type of lamp " pattern is " character string ", Data View is " picture view ", Data View container is that " picture load is held Device ", Data View container behavior are " loading data to picture from network ";
When writing the corresponding association resolver of " thumbnail " pattern, following correlation rule is write for the association resolver: The data type of " thumbnail " pattern is the corresponding Java object of thumbnail, and Data View is " compound picture, textual view ", counts It is " clad vessel " according to view container, Data View container behavior is " in taking out thumbnail pictures network address from Java object and allowing The picture view in portion loads data to local picture from network, and thumbnail is taken out from Java object and describes and inserts internal text This view ";
When writing the corresponding association resolver of " summary " pattern, following correlation rule is write for the association resolver: " general Want " data type of pattern is the corresponding Java object of summary, Data View is " compound picture, textual view ", Data View Container is " clad vessel ", and Data View container behavior is " to take out summary picture network address from Java object and allow internal figure Piece view loads data to local picture from network, and summary title is taken out from Java object and inserts internal text view ";
D, when list will show various data, every data is taken out one by one from list adapter;One number of every taking-up According to rear, corresponding association resolver is obtained according to the Hash codes of the data type of the data, using obtaining association resolver successively Data View, Data View container are created, and the data is inserted in the Data View container of creation and shown.
Based on the above technical solution, the association resolver is used to derive associated data according to data type View and Data View container.
Based on the above technical solution, step D specifically includes following operation: D1, judge in list adapter whether There are data to be shown, if so, being transferred to step D2;Otherwise, terminate;D2, a data is sequentially taken out from list adapter;It is logical Calling system Java function hashcode () is crossed, the Hash codes of the data type of the data are obtained;According to the Hash codes from Association resolver corresponding with the data is obtained in Data View association caching, is transferred to step D3;D3, the association using acquisition Resolver directly creates Data View, is transferred to step D4;D4, Data View appearance is directly created using the association resolver of acquisition Device is transferred to step D5;D5, the data is inserted in the Data View container of creation and is shown using the association resolver of acquisition Show, return step D1.
The present invention also provides a kind of realization systems of the mashed up load of different style contents in list, including Data View association Caching construction unit, data parameters write unit, association resolver writes unit and the mashed up loading unit of content;The data view Figure association caching construction unit is used for: building Data View association caching, Data View association caching are different for storing It is associated with resolver;The data parameters are write unit and are used for: according to three kinds of different patterns: " magic lantern " pattern, " thumbnail " pattern " summary " pattern writes corresponding data type, Data View and Data View container;The association resolver writes unit For: corresponding association resolver is write for every kind of pattern;The association resolver write is added to the data view one by one The Hash codes of its data type are designated as in figure association caching, and under specified associations resolver, the Hash codes of the data type exist There is unique numeric in memory;When writing the corresponding association resolver of " magic lantern " pattern, association resolver write unit be should Association resolver writes following correlation rule: the data type of " magic lantern " pattern is " character string ", Data View is " picture view Figure ", Data View container are " picture load vessel ", and Data View container behavior is " loading data to picture from network ";When When writing the corresponding association resolver of " thumbnail " pattern, it is that the association resolver is write with ShiShimonoseki that association resolver, which writes unit, Connection rule: the data type of " thumbnail " pattern is the corresponding Java object of thumbnail, and Data View is " compound picture, text View ", Data View container are " clad vessel ", and Data View container behavior is " thumbnail pictures net to be taken out from Java object Location simultaneously allows internal picture view to load data to local picture from network, takes out thumbnail from Java object and describes and insert Internal text view ";When writing the corresponding association resolver of " summary " pattern, it is the association that association resolver, which writes unit, Resolver writes following correlation rule: the data type of " summary " pattern is the corresponding Java object of summary, and Data View is " multiple Conjunction picture, textual view ", Data View container are " clad vessel ", and Data View container behavior is " to take out from Java object Summary picture network address simultaneously allows internal picture view to load data to local picture from network, and summary mark is taken out from Java object It inscribes and inserts internal text view ";The mashed up loading unit of content is used for: when list will show various data, from column Every data is taken out in table adapter one by one;After one data of every taking-up, obtained according to the Hash codes of the data type of the data Corresponding association resolver successively creates Data View, Data View container using association resolver is obtained, and by the data It inserts in the Data View container of creation and shows.
Based on the above technical solution, the association resolver writes the association resolver that unit is write and is used for basis Data type derives associated Data View and Data View container.
Based on the above technical solution, the mashed up loading unit of the content includes data judgment sub-unit, association solution Parser selects subelement, Data View creation subelement, Data View container creation subelement and data to show subelement;
The data judgment sub-unit is used for: when list will show various data or after receiving and judging signal, judging to arrange Whether to be shown data are had in table adapter, if so, sending selection signal to association resolver selection subelement;Otherwise, it ties Beam;
The association resolver selection subelement is used for: after receiving selection signal, sequentially taking out one from list adapter Data;By calling system Java function hashcode (), the Hash codes of the data type of the data are obtained;According to institute It states Hash codes and obtains association resolver corresponding with the data from Data View association caching, it is single to create son to Data View Member sends Data View and creates signal;
The Data View creation subelement is used for: after receiving Data View creation signal, utilizing the association resolver The association resolver that selection subelement obtains directly creates Data View, and sends data to Data View container creation subelement View container creates signal;
The Data View container creation subelement is used for: after receiving Data View container creation signal, utilizing acquisition Association resolver directly creates Data View container, and shows that subelement sends display signal to data;
The data show that subelement is used for: after receiving display signal, using the association resolver of acquisition by the data It inserts in the Data View container of creation and shows, judge signal to the transmission of data judgment sub-unit.
The beneficial effects of the present invention are:
In the present invention, write corresponding association resolver for the different patterns in list, the association resolver energy according to Data type direct derivation goes out associated Data View and Data View container, and then realizes quickly creation view, view container, And data is inserted to the purpose in the view container of creation and shown.Also, the association resolver is added to Data View pass When connection caching, the Hash codes that its data type is designated as under it can be specified, the Hash codes of the data type have uniquely in memory Numerical value;When list will show the data of various different patterns, can quickly be obtained according to the data type Hash codes of every data Corresponding association resolver realizes the mashed up loaded and displayed of different style contents in list using association resolver.
Compared with prior art, the present invention directly passes through the number of access data when showing the data of various different patterns Can be mapped to corresponding association resolver according to the Hash codes of type, without pass through as the prior art if/else or Switch sentence is judged that speed is exceedingly fast to the type of every data one by one;In addition it is realized in list using association resolver The mashed up loaded and displayed of different style contents can greatly simplify size of code, promote development efficiency and operational efficiency, and then reduce not Error rate when load mashed up with content.
Detailed description of the invention
Fig. 1 is the schematic diagram that single pattern is shown in list;
Fig. 2 is the schematic diagram that mixed pattern is shown in list;
Fig. 3 is the flow chart of existing list loading method;
Fig. 4 is the flow chart of the implementation method of the mashed up load of different style contents in list in the embodiment of the present invention;
Fig. 5 is the structural block diagram of the realization system of the mashed up load of different style contents in list in the embodiment of the present invention.
Specific embodiment
With reference to the accompanying drawing and specific embodiment the present invention is described in further detail.
Shown in Figure 4, the embodiment of the present invention provides a kind of implementation method of the mashed up load of different style contents in list, The following steps are included:
Step S1: one Data View association caching of building, Data View association caching is for storing different associations Resolver is transferred to step S2.
It is understood that association resolver is a kind of abstract entities of similar flow chart, it can be by various things strings Connection gets up, and indicates a clearly process.For example, it is desired to (((extremely comprising C0 comprising B0 to B9), C comprising A0 to A9), B from A C9) in three kinds of different classifications, three things are obtained respectively;Because there are 10 things under every kind of classification, 30 differences are shared Things, cause select branch it is various.Now an association resolver is created, it is specified that result is (A0 → B1 → C2), then basis This resolver, tri- things of A0, B1, C2 are interrelated, from A0, B1, C2 any one things can derive it is associated its His two things.
For the present invention, data type is described as A, Data View are as B, the behavior of Data View container are such as C Associated Data View and Data View container can be gone out according to data type with direct derivation by being associated with resolver.
Step S2: according to different patterns, corresponding data type, Data View and Data View container is write, that is, is write The respective code of data type, Data View and Data View container is transferred to step S3.In the embodiment of the present invention, carry out mashed up The different patterns of load have altogether there are three types of: " magic lantern ", " thumbnail " and " summary ", every kind of pattern be required to correspondence write it is independent Data View and Data View container.
Step S3: corresponding association resolver is write for every kind of pattern, is transferred to step S4.When practical operation, in step S3 The concrete operations for writing corresponding association resolver for every kind of pattern are as follows:
When writing the corresponding association resolver of " magic lantern " pattern, following correlation rule is write for the association resolver: " unreal The data type of lamp " pattern is " character string ", Data View is " picture view ", Data View container is that " picture load is held Device ", Data View container behavior are " loading data to picture from network ";
When writing the corresponding association resolver of " thumbnail " pattern, following correlation rule is write for the association resolver: " contracting The data type of sketch map " pattern is the corresponding Java object of thumbnail, and Data View is " compound picture, textual view ", data View container is " clad vessel ", and Data View container behavior is " to take out thumbnail pictures network address from Java object and allow inside Picture view load data to local picture from network, the text that thumbnail describe and inserts inside is taken out from Java object View ";
When writing the corresponding association resolver of " summary " pattern, following correlation rule is write for the association resolver: " general Want " data type of pattern is the corresponding Java object of summary, Data View is " compound picture, textual view ", Data View Container is " clad vessel ", and Data View container behavior is " to take out summary picture network address from Java object and allow internal figure Piece view loads data to local picture from network, and summary title is taken out from Java object and inserts internal text view ".
Step S4: the association resolver write is added to one by one in the Data View association caching, and specified pass It is designated as the Hash codes of its data type under connection resolver, is transferred to step S5.It is understood that the Hash codes of data type exist There is unique numeric, therefore, regardless of data content, as long as data type is identical, Hash codes are centainly identical in memory. Data type can be quickly judged by the Hash codes.
Step S5: when list will show various data, first judging whether there are data to be shown in list adapter, if It is to be transferred to step S6;Otherwise, terminate.
Step S6: a data is sequentially taken out from list adapter;By calling system Java function hashcode (), Obtain the Hash codes of the data type of the data;It directly obtains and is somebody's turn to do from Data View association caching according to Hash codes The corresponding association resolver of data, is transferred to step S7.
Step S7: directly creating Data View using the association resolver of acquisition, that is, create the entity object of Data View, It no longer needs to do any judgement in relation to type at this time, is transferred to step S8.When specific operation, it is assumed that taken out from list adapter The pattern of data is " magic lantern ", then according to the association resolver of " magic lantern ", Data View must be " picture view ", then directly Create picture view.Other style types similarly, do not repeat herein.
Step S8: Data View container is directly created using the association resolver obtained, that is, creates Data View container Entity object no longer needs to do any judgement in relation to type at this time, is transferred to step S9.When specific operation, it is assumed that be adapted to from list The pattern for the data taken out in device is " magic lantern ", then according to the association resolver of " magic lantern ", Data View container is simultaneously set to " figure Piece load vessel " then directly creates picture load vessel.Other style types similarly, do not repeat herein.
Step S9: inserting the data in the Data View container of creation and show using the association resolver of acquisition, It no longer needs to do any judgement in relation to type at this time, return step S5 carries out the display of next data, until all to be shown Data all show and finish, terminate.When specific operation, it is assumed that the pattern for the data taken out from list adapter is " magic lantern ", Then according to the association resolver of " magic lantern ", the behavior of Data View container must be " loading data to picture from network ", then directly It connects and is directly called according to the behavior.Other style types similarly, do not repeat herein.
Shown in Figure 5, the embodiment of the present invention also provides a kind of realization system of the mashed up load of different style contents in list System, including Data View association caches construction unit, data parameters write unit, association resolver writes unit and content is mashed up Loading unit.
Wherein, the Data View association caching construction unit is used for: building Data View association caching, the Data View Association caching is for storing different association resolvers.
The data parameters are write unit and are used for: according to different patterns, writing corresponding data type, Data View sum number According to view container.
The association resolver is write unit and is used for: writing corresponding association resolver for every kind of pattern;By what is write Association resolver is added to one by one in the Data View association caching, and is designated as its data type under specified associations resolver Hash codes, the Hash codes of the data type have unique numeric in memory.
The mashed up loading unit of content is used for: when list will show various data, being taken one by one from list adapter Every data out;After one data of every taking-up, corresponding association resolver is obtained according to the Hash codes of the data type of the data, Data View, Data View container are successively created using association resolver is obtained, and the data of data filling creation are regarded In figure container and show.
Further, shown in Figure 5, the mashed up loading unit of content includes data judgment sub-unit, association parsing Device selects subelement, Data View creation subelement, Data View container creation subelement and data to show subelement.
The data judgment sub-unit is used for: when list will show various data or after receiving and judging signal, judging to arrange Whether to be shown data are had in table adapter, if so, sending selection signal to association resolver selection subelement;Otherwise, it ties Beam.
The association resolver selection subelement is used for: after receiving selection signal, sequentially taking out one from list adapter Data;By calling system Java function hashcode (), the Hash codes of the data type of the data are obtained;According to institute It states Hash codes and obtains association resolver corresponding with the data from Data View association caching, it is single to create son to Data View Member sends Data View and creates signal.
The Data View creation subelement is used for: after receiving Data View creation signal, utilizing the association resolver The association resolver that selection subelement obtains directly creates Data View, and sends data to Data View container creation subelement View container creates signal.
The Data View container creation subelement is used for: after receiving Data View container creation signal, utilizing acquisition Association resolver directly creates Data View container, and shows that subelement sends display signal to data.
The data show that subelement is used for: after receiving display signal, using the association resolver of acquisition by the data It inserts in the Data View container of creation and shows, judge signal to the transmission of data judgment sub-unit.
It should be understood that in list provided by the above embodiment the different mashed up loads of style content realization system into Row mashed up load when, only the example of the division of the above functional modules, in practical application, can according to need and incite somebody to action Above-mentioned function distribution is completed by different functional modules, i.e., the internal structure of system is divided into different functional modules, with complete At all or part of function described above.
The present invention is not limited to the above-described embodiments, for those skilled in the art, is not departing from Under the premise of the principle of the invention, several improvements and modifications can also be made, these improvements and modifications are also considered as protection of the invention Within the scope of.The content being not described in detail in this specification belongs to the prior art well known to professional and technical personnel in the field.

Claims (6)

1. the implementation method of the mashed up load of different style contents in a kind of list, which comprises the following steps:
A, the Data View association caching for storing various association resolvers is constructed;
B, according to different patterns, corresponding data type, Data View and Data View container are write, the difference pattern is specific Including three kinds of patterns: " magic lantern " pattern, " thumbnail " pattern and " summary " pattern;
C, corresponding association resolver is write for every kind of pattern;The association resolver write is added to the data view one by one The Hash codes of its data type are designated as in figure association caching, and under specified associations resolver, the Hash codes of the data type exist There is unique numeric in memory;
When writing the corresponding association resolver of " magic lantern " pattern, following correlation rule is write for the association resolver: " magic lantern " The data type of pattern is " character string ", Data View is " picture view ", Data View container is " picture load vessel ", number It is " loading data to picture from network " according to view container behavior;
When writing the corresponding association resolver of " thumbnail " pattern, following correlation rule: " breviary is write for the association resolver The data type of figure " pattern is the corresponding Java object of thumbnail, and Data View is " compound picture, textual view ", data regard Figure container is " clad vessel ", and Data View container behavior is " to take out thumbnail pictures network address from Java object and allow inside Picture view loads data to local picture from network, and thumbnail is taken out from Java object and describes and inserts internal text view Figure ";
When writing the corresponding association resolver of " summary " pattern, following correlation rule is write for the association resolver: " summary " The data type of pattern is the corresponding Java object of summary, and Data View is " compound picture, textual view ", Data View container For " clad vessel ", Data View container behavior is " to take out summary picture network address from Java object and internal picture is allowed to regard Figure loads data to local picture from network, and summary title is taken out from Java object and inserts internal text view ";
D, when list will show various data, every data is taken out one by one from list adapter;After one data of every taking-up, Corresponding association resolver is obtained according to the Hash codes of the data type of the data, successively creates number using association resolver is obtained It inserts in the Data View container of creation and shows according to view, Data View container, and by the data.
2. the implementation method of the mashed up load of different style contents in list as described in claim 1, it is characterised in that: the pass Connection resolver is used to derive associated Data View and Data View container according to data type.
3. the implementation method of the mashed up load of different style contents in list as described in claim 1, which is characterized in that step D Specifically include following operation:
D1, judge whether there are data to be shown in list adapter, if so, being transferred to step D2;Otherwise, terminate;
D2, a data is sequentially taken out from list adapter;By calling system Java function hashcode (), this is obtained The Hash codes of the data type of data;It is obtained from Data View association caching according to the Hash codes corresponding with the data It is associated with resolver, is transferred to step D3;
D3, Data View is directly created using the association resolver of acquisition, is transferred to step D4;
D4, Data View container is directly created using the association resolver of acquisition, is transferred to step D5;
D5, the data is inserted in the Data View container of creation and is shown, return step using the association resolver of acquisition D1。
4. the realization system of the mashed up load of different style contents in a kind of list, it is characterised in that: the system includes Data View Association caching construction unit, data parameters write unit, association resolver writes unit and the mashed up loading unit of content;
The Data View association caching construction unit is used for: building Data View association caching, Data View association caching For storing different association resolvers;
The data parameters are write unit and are used for: according to three kinds of different patterns: " magic lantern " pattern, " thumbnail " pattern and " summary " Pattern writes corresponding data type, Data View and Data View container;
The association resolver is write unit and is used for: writing corresponding association resolver for every kind of pattern;The association that will be write Resolver is added to one by one in the Data View association caching, and the Kazakhstan of its data type is designated as under specified associations resolver Uncommon code, the Hash codes of the data type have unique numeric in memory;
When writing the corresponding association resolver of " magic lantern " pattern, following correlation rule is write for the association resolver: " magic lantern " The data type of pattern is " character string ", Data View is " picture view ", Data View container is " picture load vessel ", number It is " loading data to picture from network " according to view container behavior;
When writing the corresponding association resolver of " thumbnail " pattern, following correlation rule: " breviary is write for the association resolver The data type of figure " pattern is the corresponding Java object of thumbnail, and Data View is " compound picture, textual view ", data regard Figure container is " clad vessel ", and Data View container behavior is " to take out thumbnail pictures network address from Java object and allow inside Picture view loads data to local picture from network, and thumbnail is taken out from Java object and describes and inserts internal text view Figure ";
When writing the corresponding association resolver of " summary " pattern, following correlation rule is write for the association resolver: " summary " The data type of pattern is the corresponding Java object of summary, and Data View is " compound picture, textual view ", Data View container For " clad vessel ", Data View container behavior is " to take out summary picture network address from Java object and internal picture is allowed to regard Figure loads data to local picture from network, and summary title is taken out from Java object and inserts internal text view ";
The mashed up loading unit of content is used for: when list will show various data, being taken out one by one from list adapter every Data;After one data of every taking-up, corresponding association resolver is obtained according to the Hash codes of the data type of the data, is utilized It obtains association resolver and successively creates Data View, Data View container, and the Data View container that data filling is created In and show.
5. the realization system of the mashed up load of different style contents in list as claimed in claim 4, it is characterised in that: the pass Connection resolver is used to derive associated Data View and Data View container according to data type.
6. the realization system of the mashed up load of different style contents in list as claimed in claim 4, it is characterised in that: in described Holding mashed up loading unit includes data judgment sub-unit, association resolver selection subelement, Data View creation subelement, data View container creates subelement and data show subelement;
The data judgment sub-unit is used for: when list will show various data or after receiving and judging signal, judging that list is suitable Whether to be shown data are had in orchestration, if so, sending selection signal to association resolver selection subelement;Otherwise, terminate;
The association resolver selection subelement is used for: after receiving selection signal, a number is sequentially taken out from list adapter According to;By calling system Java function hashcode (), the Hash codes of the data type of the data are obtained;According to the Kazakhstan Uncommon code obtains association resolver corresponding with the data from Data View association caching, to Data View creation subelement hair Data View is sent to create signal;
The Data View creation subelement is used for: after receiving Data View creation signal, being selected using the association resolver The association resolver that subelement obtains directly creates Data View, and sends Data View to Data View container creation subelement Container creates signal;
The Data View container creation subelement is used for: after receiving Data View container creation signal, utilizing the association of acquisition Resolver directly creates Data View container, and shows that subelement sends display signal to data;
The data show that subelement is used for: after receiving display signal, being inserted the data using the association resolver of acquisition It in the Data View container of creation and shows, judges signal to the transmission of data judgment sub-unit.
CN201610315938.1A 2016-05-12 2016-05-12 The realization method and system of the mashed up load of different style contents in a kind of list Active CN105956145B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610315938.1A CN105956145B (en) 2016-05-12 2016-05-12 The realization method and system of the mashed up load of different style contents in a kind of list

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610315938.1A CN105956145B (en) 2016-05-12 2016-05-12 The realization method and system of the mashed up load of different style contents in a kind of list

Publications (2)

Publication Number Publication Date
CN105956145A CN105956145A (en) 2016-09-21
CN105956145B true CN105956145B (en) 2019-05-17

Family

ID=56912801

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610315938.1A Active CN105956145B (en) 2016-05-12 2016-05-12 The realization method and system of the mashed up load of different style contents in a kind of list

Country Status (1)

Country Link
CN (1) CN105956145B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109190068A (en) * 2018-07-12 2019-01-11 北京猫眼文化传媒有限公司 A kind of data processing method and device
CN109240792A (en) * 2018-09-27 2019-01-18 武汉华中时讯科技有限责任公司 Device, method and the storage medium of data are shown using composite data type

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101377806A (en) * 2008-07-24 2009-03-04 江苏大学 Information flow analysis method based on system source code searching concealed channel
CN101452486A (en) * 2008-12-31 2009-06-10 中国建设银行股份有限公司 System data management method for [inscriptions on bones or tortoise shells and apparatus thereof
CN101611399A (en) * 2007-02-16 2009-12-23 罗凡 Webpage, website modeling and generation
CN101861580A (en) * 2007-09-28 2010-10-13 埃克斯里昂股份公司 Network operating system
CN102915319A (en) * 2011-03-28 2013-02-06 微软公司 Techniques for electronic aggregation of information
CN103607414A (en) * 2013-12-05 2014-02-26 用友软件股份有限公司 Mobile forepart service display system and mobile forepart service display method
CN104704489A (en) * 2012-08-16 2015-06-10 高通股份有限公司 Predicting the usage of document resources

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10146830B2 (en) * 2013-10-18 2018-12-04 Apple Inc. Cross application framework for aggregating data relating to people, locations, and entities
US20150120766A1 (en) * 2013-10-30 2015-04-30 Twofold Ip Pty Ltd Method and Apparatus for Delivering Search Results

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101611399A (en) * 2007-02-16 2009-12-23 罗凡 Webpage, website modeling and generation
CN101861580A (en) * 2007-09-28 2010-10-13 埃克斯里昂股份公司 Network operating system
CN101377806A (en) * 2008-07-24 2009-03-04 江苏大学 Information flow analysis method based on system source code searching concealed channel
CN101452486A (en) * 2008-12-31 2009-06-10 中国建设银行股份有限公司 System data management method for [inscriptions on bones or tortoise shells and apparatus thereof
CN102915319A (en) * 2011-03-28 2013-02-06 微软公司 Techniques for electronic aggregation of information
CN104704489A (en) * 2012-08-16 2015-06-10 高通股份有限公司 Predicting the usage of document resources
CN103607414A (en) * 2013-12-05 2014-02-26 用友软件股份有限公司 Mobile forepart service display system and mobile forepart service display method

Also Published As

Publication number Publication date
CN105956145A (en) 2016-09-21

Similar Documents

Publication Publication Date Title
CN107341262B (en) Serialization and deserialization method and device for object type column in database
US4922417A (en) Method and apparatus for data hashing using selection from a table of random numbers in combination with folding and bit manipulation of the selected random numbers
US5119465A (en) System for selectively converting plurality of source data structures through corresponding source intermediate structures, and target intermediate structures into selected target structure
JP3913762B2 (en) Modified buddy system to manage disk space
US20020010713A1 (en) Graphical environment for managing and developing applications
US7844422B2 (en) Method and system for changing a description for a state transition function of a state machine engine
CN106155755A (en) Program compiling method and compiler
US8037039B2 (en) Runtime class database operation
CN111209000B (en) Processing method and device of custom control, electronic equipment and storage medium
US20080040664A1 (en) Listing and Modifying Groups of Blocks in the Editing of a Document
CN105956145B (en) The realization method and system of the mashed up load of different style contents in a kind of list
US6714946B1 (en) Data management system using a plurality of data operating modules
CN108509199A (en) Automatically generate the method, apparatus, equipment and storage medium of Chinese annotation
WO2013130108A1 (en) Shiftable memory supporting bimodal storage
JPS5939784B2 (en) variable field storage system
KR101224684B1 (en) Method and system for mapping between components of a packaging model and features of a physical representation of a package
CN112394928A (en) Method for constructing multilevel menu in embedded system and computer storage medium
CN110309214A (en) A kind of instruction executing method and its equipment, storage medium, server
CN117348935A (en) Instruction processing method, apparatus, computer device and storage medium
WO2002103573A1 (en) A flexible virtual database system including a hierarchical application parameter repository
CN106991116A (en) The optimization method and device of database executive plan
CN115629763A (en) Target code generation method and NPU instruction display method and device
CN106610860A (en) Operating method of semiconductor device and semiconductor system
CN110333860A (en) A kind of method and relevant apparatus removing view object
CN109760044A (en) A kind of data processing method and device

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant