Summary of the invention
Embodiment of the present invention technical matters to be solved is, the generation method of user interface forms and the generation equipment of user interface forms are provided, solve in prior art because the code realizing arranging for often kind of sight the UI forms that each specific transactions is correlated with lacks dirigibility and changeability, bring huge repetitive operation to client software developer, add the technical matters of cost of development.
In order to solve the problems of the technologies described above, embodiment of the present invention first aspect discloses a kind of generation method of user interface forms, comprises
Create at least two user interface sub-window module, described user interface sub-window module is for generating user interface Main form;
Obtain user profile data, need the user interface sub-window module called according to described user profile data analysis;
Generate the user interface child form for showing User Interface according to the described user interface sub-window module called, and described user interface child form is merged into described user interface Main form.
In conjunction with first aspect, in the implementation that the first is possible, each user interface sub-window module of establishment comprises each self-corresponding content parameters; Describedly the user interface sub-window module called is needed to comprise according to described user profile data analysis:
Analyze the content of described user profile data;
Judge the content parameters that the content of described user profile data is corresponding, using user interface sub-window module corresponding for the content parameters judged as the user interface sub-window module needing to call.
In conjunction with first aspect, in the implementation that the second is possible, described user profile data comprise the default information being used to indicate invoke user interface sub-window module; Describedly the user interface sub-window module called is needed to comprise according to described user profile data analysis:
According to the information of described instruction invoke user interface sub-window module, analyze the user interface sub-window module needing to call.
In conjunction with first aspect, in the implementation that the third is possible, described acquisition user profile data comprise:
Obtain the user profile data of client local cache; Or
By sending the solicited message of Query Database to server, receive the user profile data that described server returns according to described request information.
In conjunction with first aspect, or the first possible implementation of first aspect, or the implementation that the second of first aspect is possible, or the third possible implementation of first aspect, in the 4th kind of possible implementation, each user interface sub-window module of establishment comprises each self-corresponding user interface bulk properties; The user interface sub-window module called described in described basis generates and comprises for the user interface child form showing User Interface:
The user interface bulk properties corresponding according to the described user interface sub-window module called, generates the user interface child form for showing User Interface.
In conjunction with the 4th kind of possible implementation of first aspect, in the 5th kind of possible implementation, after described establishment at least two user interface sub-window module, also comprise:
The user interface bulk properties that the described user interface sub-window module that amendment creates is corresponding.
Embodiment of the present invention second aspect discloses a kind of generation equipment of user interface forms, comprising:
Creation module, for creating at least two user interface sub-window module, described user interface sub-window module is for generating user interface Main form;
Obtaining analysis module, for obtaining user profile data, needing the user interface sub-window module called according to described user profile data analysis;
Generate and merge module, the user interface sub-window module for calling described in basis generates the user interface child form for showing User Interface, and described user interface child form is merged into described user interface Main form.
In conjunction with second aspect, in the implementation that the first is possible, each user interface sub-window module of establishment comprises each self-corresponding content parameters; Described acquisition analysis module comprises:
First acquiring unit, for obtaining user profile data;
Analytic unit, for analyzing the content of described user profile data;
Judging unit, for judging the content parameters that the content of described user profile data is corresponding, using user interface sub-window module corresponding for the content parameters judged as the user interface sub-window module needing to call.
In conjunction with second aspect, in the implementation that the second is possible, described user profile data comprise the default information being used to indicate invoke user interface sub-window module; Described acquisition analysis module specifically for: obtain user profile data, and according to the information of described instruction invoke user interface sub-window module, analyze the user interface sub-window module needing to call.
In conjunction with second aspect, in the implementation that the third is possible, described acquisition analysis module comprises:
Second acquisition unit, for obtaining the user profile data of client local cache; Or
Receiving element, for the solicited message by sending Query Database to server, receives the user profile data that described server returns according to described request information.
In conjunction with second aspect, or the first possible implementation of second aspect, or the implementation that the second of second aspect is possible, or the third possible implementation of second aspect, in the 4th kind of possible implementation, each user interface sub-window module of establishment comprises each self-corresponding user interface bulk properties; Described generation to merge module specifically for the user interface bulk properties corresponding according to the described user interface sub-window module called, generate the user interface child form for showing User Interface, and described user interface child form is merged into described user interface Main form.
In conjunction with the 4th kind of possible implementation of second aspect, in the 5th kind of possible implementation, also comprise:
Forms characteristic modified module, after creating at least two user interface sub-window module in described creation module, the user interface bulk properties that the described user interface sub-window module that amendment creates is corresponding.
The embodiment of the present invention third aspect discloses a kind of computer-readable storage medium, described computer-readable storage medium has program stored therein, described program comprises the embodiment of the present invention first aspect when performing, or the first possible implementation of first aspect, or the implementation that the second of first aspect is possible, or the third possible implementation of first aspect, or the 4th of first aspect the kind of possible implementation, or the Overall Steps of the generation method of user interface forms disclosed in the 5th of first aspect the kind of possible implementation.
Implement the embodiment of the present invention, there is following beneficial effect:
By implementing the embodiment of the present invention, by creating at least two user interface sub-window module, need the user interface sub-window module called according to user profile data analysis; Then the user interface child form for showing User Interface is generated according to the user interface sub-window module called, and user interface child form is merged into user interface Main form, solve in prior art the code realizing arranging for often kind of sight the UI forms that each specific transactions is correlated with and lack dirigibility and changeability, huge repetitive operation is brought to client software developer, add the technical matters of cost of development, improve the dirigibility of code; And when having the forms amendment of denominator between needing multiple user interface Main form, the user interface sub-window module that only need create this is modified the amendment that can realize multiple user interface Main form, avoid in prior art and need all user interface Main forms to having these characteristic forms all will make separately corresponding amendment, reduce further the repetitive operation of client software developer, enhance dirigibility and the alterability of the UI window design possessing general character.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, be clearly and completely described the technical scheme in the embodiment of the present invention, obviously, described embodiment is only the present invention's part embodiment, instead of whole embodiments.Based on the embodiment in the present invention, those of ordinary skill in the art, not making the every other embodiment obtained under creative work prerequisite, belong to the scope of protection of the invention.
See Fig. 1, be the schematic flow sheet of the generation method of user interface forms provided by the invention, the method comprises:
Step S100: create at least two user interface sub-window module, described user interface sub-window module is for generating user interface Main form;
Particularly, the user interface Main form in the embodiment of the present invention includes but not limited to for mutual interface widgets between user and equipment, and such as, when user's access of instant communicating software and good friend chat, the chat forms of displaying are user interface Main form; Polytype information is comprised for mutual interface widgets between this user and equipment, as different types of information such as user's heading message, user's head image informations, so the interface widgets comprising polytype information is referred to as user interface Main form by the embodiment of the present invention;
Can by analyzing the user interface bulk properties of multiple user interface Main form in step S100, namely the characteristic between multiple user interface Main form and general character is analyzed, find out between the plurality of user interface Main form and there is common user interface bulk properties, so just can create user interface sub-window module for this common user interface bulk properties, namely this user interface sub-window module created out is to there being this user interface bulk properties, and the user interface sub-window module created out is for generating user interface Main form.Such as there are three user interface Main forms, first user interface Main form comprises user's heading message, identity information and class information, second user interface Main form comprises user's heading message and car exhibition information, and third party interface Main form comprises user's heading message and honor information; So analyze and show that the common user interface forms characteristic had between these three user interface Main forms is user's heading message; Create user interface sub-window module for this co-user heading message, the user interface sub-window module that this creates out is namely for generating user's heading message.
Will be understood that, the user interface child form in the embodiment of the present invention is not often shown separately, but is generated by combined user interface child form face and show user interface Main form; If when only need call 1 user interface sub-window module according to user profile data analysis in step S102 below, so generate and show that namely user interface Main form comprises 1 user interface child form.
Step S102: obtain user profile data, need the user interface sub-window module called according to described user profile data analysis;
Particularly, can by obtaining the user profile data of client local cache; Also by sending the solicited message of Query Database to server, the user profile data that this server returns according to this solicited message can be received; Then go out to need to call which user interface sub-window module according to this user profile data analysis and generate user interface Main form.That is, the user interface sub-window module created in step S100 can be called to generate user interface Main form according to concrete use scenes, and a user interface sub-window module can be called to generate different user interface Main forms.
Step S104: generate the user interface child form for showing User Interface according to the described user interface sub-window module called, and described user interface child form is merged into described user interface Main form.
Particularly, such as invoked user interface sub-window module comprises 3, be respectively first user interface sub-window module, the second user interface sub-window module and the 3rd user interface sub-window module, so according to these 3 user interface sub-window module, generating 3 user interface child forms for showing User Interface respectively, then these 3 user interface child forms being merged into user interface Main form;
Further, can in conjunction with the schematic flow sheet of another embodiment of the generation method of user interface forms provided by the invention as shown in Figure 2, illustrate to describe in detail and how need according to user profile data analysis the user interface sub-window module called, the method comprises:
Step S200: create at least two user interface sub-window module;
Particularly, with reference to the step in above-mentioned Fig. 1 embodiment, can repeat no more here.Such as, the schematic diagram of user interface Main form provided by the invention as shown in Figure 3, user logs in amusement platform this user backward and illustrates user interface Main form, comprise identity information, image information, car show and medal information etc., the user interface Main form that multiple user shows after logging in amusement platform by analysis all jointly has some user interface bulk properties, so software developer can start for common user interface bulk properties and build user interface sub-window module, each user interface sub-window module created comprises each self-corresponding content parameters, the schematic diagram of establishment user interface sub-window module provided by the invention as shown in Figure 4, according to common user interface bulk properties, the user interface Main form in Fig. 3 is created out 4 user interface sub-window module, such as be respectively " title module ", " business card module ", " car exhibition module " and " medal module ", so " title module " is to having title content parameter, " business card module " to having image parameter, " car exhibition module " corresponding lordship parameter, and " medal module " corresponding medal parameter etc.
Will be understood that, the user interface sub-window module of the establishment in each embodiment of the present invention is not limited to the user interface sub-window module in Fig. 4, and content parameters corresponding to each user interface sub-window module is also not limited to the content parameters enumerated in Fig. 4.
Step S202: obtain user profile data, analyze the content of described user profile data;
Particularly, the user profile data content that these user profile data can be arranged for the individual subscriber preserved when user logs in this amusement platform, comprises identity information, whether is provided with image, whether contain medal information etc., by analyzing the content drawing these user profile data.
Step S204: judge the content parameters that the content of described user profile data is corresponding, using user interface sub-window module corresponding for the content parameters judged as the user interface sub-window module needing to call;
Particularly, the corresponding meaningful parameter of content of these user profile data, for Fig. 4, the lordship information of user profile data may correspond to the lordship parameter in " car exhibition module ", the image information of user profile data may correspond to the image parameter in " business card module ", and the medal information of user profile data may correspond to medal parameter in " medal module " etc.; By the content parameters that the content of user profile data is corresponding, using user interface sub-window module corresponding for the content parameters judged as the user interface sub-window module needing to call, such as judge that the user profile data of certain user only have lordship, there is no image information and medal information, so can judge only need call " title module " and " car exhibition module "; And for example judge that the user profile data of certain user are singer's identity and containing image information and medal information, so can judge to call " title module ", " business card module " and " medal module ".
Step S206: generate the user interface child form for showing User Interface according to the described user interface sub-window module called, and described user interface child form is merged into described user interface Main form.
Particularly, the invention provides the schematic diagram of the user interface Main form of generation as shown in Figure 5, if step S204 judges only to call " title module " and " car exhibition module " these two user interface sub-window module, so call this two user interface sub-window module, and according to user profile data genaration for showing the user interface child form of User Interface, then these two user interface child forms are merged into user interface Main form; The invention provides again the schematic diagram of another embodiment of the user interface Main form of generation as shown in Figure 6, if step S204 judges to call " title module ", " business card module " and " medal module " these three user interface sub-window module, so call this three user interface sub-window module, and according to user profile data genaration for showing the user interface child form of User Interface, then these three user interface child forms are merged into user interface Main form.
Further, the user interface Main form generated in the embodiment of the present invention can show user by the mode playing window, thus more intuitively User Interface can be showed user, such as more can dazzle the identity combinations that more effectively displaying user has, inspire user and develop oneself.
Will be understood that, Fig. 5 and Fig. 6 is two kinds of embodiments of the embodiment of the present invention, the invention is not restricted to the user interface Main form that Fig. 5 and Fig. 6 generates;
It should be noted that, user profile data in the embodiment of the present invention are also not limited to above-mentioned identity information, whether be provided with image, whether contain medal information etc., user profile data can not corresponding meaningful parameter, but comprises the default information being used to indicate invoke user interface sub-window module, namely, the user profile data content that individual subscriber is arranged directly can comprise calling which user interface sub-window module, can be which user interface sub-window module the instruction that system default is arranged calls, also can be which user interface sub-window module user calls according to the self-defining instruction of self-demand, the step of the user interface sub-window module called so is needed to comprise according to user profile data analysis: according to the information of this instruction invoke user interface sub-window module, analyze the user interface sub-window module needing to call, then directly above-mentioned steps S206 is performed.
Again further, each user interface sub-window module created in each embodiment of the present invention comprises each self-corresponding user interface bulk properties; This user interface bulk properties can comprise the size of user interface child form, such as length, width and height parameter, the shape of user interface child form, such as rectangle, trapezoidal or ellipse etc., the characteristics such as the color of user interface child form.The step that the user interface sub-window module called described in basis in the embodiment of the present invention generates for the user interface child form showing User Interface specifically comprises: the user interface bulk properties corresponding according to the user interface sub-window module called generates the user interface child form for showing User Interface.
Again further, the present invention, after establishment at least two user interface sub-window module, can also comprise: the user interface bulk properties that the described user interface sub-window module that amendment creates is corresponding.
Particularly, software developer or user can revise user interface bulk properties corresponding to user interface sub-window module according to self needing, by the generation method of the user interface forms in the embodiment of the present invention, a user interface sub-window module can be called to generate different user interface Main forms, therefore corresponding to the user interface sub-window module created user interface bulk properties is once revised and namely be may be used in different user interface Main forms, the change tend avoiding certain UI forms characteristic in prior art causes having the forms having this characteristic all will make corresponding amendment more, huge repetitive operation is brought to client software developer, add the technical matters of cost of development, substantially increase the dirigibility of code.
By implementing the embodiment of the present invention, by creating at least two user interface sub-window module, need the user interface sub-window module called according to user profile data analysis; Then the user interface child form for showing User Interface is generated according to the user interface sub-window module called, and user interface child form is merged into user interface Main form, solve in prior art the code realizing arranging for often kind of sight the UI forms that each specific transactions is correlated with and lack dirigibility and changeability, huge repetitive operation is brought to client software developer, add the technical matters of cost of development, improve the dirigibility of code; And when having the forms amendment of denominator between needing multiple user interface Main form, the user interface sub-window module that only need create this is modified the amendment that can realize multiple user interface Main form, avoid in prior art and need all user interface Main forms to having these characteristic forms all will make separately corresponding amendment, reduce further the repetitive operation of client software developer, enhance dirigibility and the alterability of the UI window design possessing general character.
For the ease of implementing the such scheme of the embodiment of the present invention better, the present invention is the corresponding generation equipment providing a kind of user interface forms also, the structural representation of the generation equipment of user interface forms provided by the invention as shown in Figure 7, the generation equipment 70 of user interface forms can comprise: creation module 700, acquisition analysis module 702 and generation merge module 704, wherein
Creation module 700 is for creating at least two user interface sub-window module, and described user interface sub-window module is for generating user interface Main form;
Obtaining analysis module 702 for obtaining user profile data, needing the user interface sub-window module called according to described user profile data analysis;
Generate and merge the user interface sub-window module generation user interface child form for show User Interface of module 704 for calling described in basis, and described user interface child form is merged into described user interface Main form.
Particularly, each user interface sub-window module that creation module 700 creates comprises each self-corresponding content parameters; The structural representation of acquisition analysis module provided by the invention as shown in Figure 8, obtaining analysis module 702 can comprise: the first acquiring unit 7020, analytic unit 7022 and judging unit 7024, wherein
First acquiring unit 7020 is for obtaining user profile data;
Analytic unit 7022 is for analyzing the content of described user profile data;
Judging unit 7024 for judging the content parameters that the content of described user profile data is corresponding, using user interface sub-window module corresponding for the content parameters judged as needing the user interface sub-window module called.
Further, the user profile data in the embodiment of the present invention can comprise the default information being used to indicate invoke user interface sub-window module; So obtaining analysis module 702 can be specifically for: obtain user profile data, and according to the information of described instruction invoke user interface sub-window module, analyzes the user interface sub-window module needing to call.
Again further, the structural representation of another embodiment of acquisition analysis module provided by the invention as shown in Figure 9, obtaining analysis module 702 comprises outside the first acquiring unit 7020, analytic unit 7022 and judging unit 7024, second acquisition unit 7026 or receiving element 7028 can also be comprised, all to comprise second acquisition unit 7026 and receiving element 7028 is described in Fig. 9, wherein
Second acquisition unit 7026 is for obtaining the user profile data of client local cache; Or
Receiving element 7028, for the solicited message by sending Query Database to server, receives the user profile data that described server returns according to described request information.
Again further, each user interface sub-window module that creation module 700 creates comprises each self-corresponding user interface bulk properties; Generate merge module 704 can be specifically for: the user interface bulk properties corresponding according to the described user interface sub-window module called, generate the user interface child form for showing User Interface, and described user interface child form is merged into described user interface Main form.
Again further, the structural representation of another embodiment of the generation equipment of user interface forms provided by the invention as shown in Figure 10, the generation equipment 70 of user interface forms comprises: creation module 700, acquisition analysis module 702 and generation merge outside module 704, forms characteristic modified module 706 can also be comprised, after creating at least two user interface sub-window module in creation module 700, the user interface bulk properties that the described user interface sub-window module that amendment creates is corresponding.
It should be noted that, the generation equipment 70 of the user interface forms in the embodiment of the present invention can be personal computer, panel computer, personal digital assistant, intelligent mobile terminal or other electronic equipment etc.;
Will be understood that, the function of each functional module of the generation equipment 70 of the user interface forms in the embodiment of the present invention can according to the method specific implementation in said method embodiment, its specific implementation process with reference to the associated description of said method embodiment, can repeat no more herein.
Refer to Figure 11, Figure 11 is the structural representation of another embodiment of the generation equipment of user interface forms provided by the invention.Wherein, as shown in figure 11, the generation equipment 110 of user interface forms can comprise: at least one processor 1101, such as CPU, at least one network interface 1104, user interface 1103, storer 1105, at least one communication bus 1102 and display screen 1106.Wherein, communication bus 1102 is for realizing the connection communication between these assemblies.Wherein, user interface 1103 can comprise display screen (Display) 11, and optional user interface 1103 can also comprise wireline interface, the wave point of standard.Network interface 1104 optionally can comprise wireline interface, the wave point (as WI-FI interface) of standard.Storer 1105 can be high-speed RAM storer, also can be non-labile storer (non-volatile memory), such as at least one magnetic disk memory.Storer 1105 can also be optionally that at least one is positioned at the memory storage away from aforementioned processor 1101.As shown in figure 11, as the generator program that can comprise operating system, network communication module, Subscriber Interface Module SIM and user interface forms in a kind of storer 1105 of computer-readable storage medium.
In the generation equipment 110 of the user interface forms shown in Figure 11, this network interface 1104 is mainly used in connection server, carries out data communication with server; And processor 1101 may be used for calling the generator program of the user interface forms stored in storer 1105, and perform following operation:
Create at least two user interface sub-window module, described user interface sub-window module is for generating user interface Main form;
Obtain user profile data, need the user interface sub-window module called according to described user profile data analysis;
Generate the user interface child form for showing User Interface according to the described user interface sub-window module called, and described user interface child form is merged into described user interface Main form.
Particularly, each user interface sub-window module of establishment comprises each self-corresponding content parameters; Processor 1101 needs the user interface sub-window module called to comprise according to described user profile data analysis:
Analyze the content of described user profile data;
Judge the content parameters that the content of described user profile data is corresponding, using user interface sub-window module corresponding for the content parameters judged as the user interface sub-window module needing to call.
Particularly, described user profile data comprise the default information being used to indicate invoke user interface sub-window module; Processor 1101 needs the user interface sub-window module called to comprise according to described user profile data analysis:
According to the information of described instruction invoke user interface sub-window module, analyze the user interface sub-window module needing to call.
Particularly, processor 1101 obtains user profile data and can comprise:
Obtain the user profile data of client local cache; Or
By sending the solicited message of Query Database to server, receive the user profile data that described server returns according to described request information.
Particularly, each user interface sub-window module of establishment comprises each self-corresponding user interface bulk properties; Processor 1101 generates according to the described user interface sub-window module called and can comprise for the user interface child form showing User Interface:
The user interface bulk properties corresponding according to the described user interface sub-window module called, generates the user interface child form for showing User Interface.
Particularly, processor 1101 can also perform after creating at least two user interface sub-window module:
The user interface bulk properties that the described user interface sub-window module that amendment creates is corresponding.
Will be understood that, the function of each functional module of the generation equipment 110 of the user interface forms in the embodiment of the present invention can according to the method specific implementation in said method embodiment, its specific implementation process with reference to the associated description of said method embodiment, can repeat no more herein.
In sum, by implementing the embodiment of the present invention, by creating at least two user interface sub-window module, the user interface sub-window module called is needed according to user profile data analysis; Then the user interface child form for showing User Interface is generated according to the user interface sub-window module called, and user interface child form is merged into user interface Main form, solve in prior art the code realizing arranging for often kind of sight the UI forms that each specific transactions is correlated with and lack dirigibility and changeability, huge repetitive operation is brought to client software developer, add the technical matters of cost of development, improve the dirigibility of code; And when having the forms amendment of denominator between needing multiple user interface Main form, the user interface sub-window module that only need create this is modified the amendment that can realize multiple user interface Main form, avoid in prior art and need all user interface Main forms to having these characteristic forms all will make separately corresponding amendment, reduce further the repetitive operation of client software developer, enhance dirigibility and the alterability of the UI window design possessing general character.
One of ordinary skill in the art will appreciate that all or part of flow process realized in above-described embodiment method, that the hardware that can carry out instruction relevant by computer program has come, described program can be stored in a computer read/write memory medium, this program, when performing, can comprise the flow process of the embodiment as above-mentioned each side method.Wherein, described storage medium can be magnetic disc, CD, read-only store-memory body (Read-Only Memory, ROM) or random store-memory body (Random Access Memory, RAM) etc.
Above disclosedly be only present pre-ferred embodiments, certainly can not limit the interest field of the present invention with this, therefore according to the equivalent variations that the claims in the present invention are done, still belong to the scope that the present invention is contained.