The content of the invention
Technical problem to be solved of the embodiment of the present invention is, there is provided the generation method of user interface forms and user
The generation equipment of interface widgets, solve and each specific transactions correlation is set for every kind of scene due to realizing in the prior art
The code of UI forms lacks flexibility and changeability, and huge repetitive operation is brought to client software developer, increases
The technical problem of development cost.
In order to solve the above-mentioned technical problem, first aspect of the embodiment of the present invention discloses a kind of generation of user interface forms
Method, including
At least two user interface sub-window modules are created, the user interface sub-window module is used to generate user interface
Main form;
User profile data are obtained, the user interface child form mould for needing to call according to the user profile data analysis
Block;
User interface for showing User Interface is generated according to the user interface sub-window module of the calling
Forms, and the user interface child form is merged into the user interface Main form.
With reference in a first aspect, in the first possible implementation, each user interface sub-window module bag of establishment
Include each self-corresponding content parameters;The user interface sub-window module for needing to call according to the user profile data analysis
Including:
Analyze the content of the user profile data;
Judge content parameters corresponding to the content of the user profile data, user corresponding to the content parameters that will determine that out
The user interface sub-window module that interface sub-window module is called as needs.
With reference in a first aspect, in second of possible implementation, the user profile data include default be used for
Indicate the information of calling user interface sub-window module;User circle for needing to call according to the user profile data analysis
Face form module includes:
The information of user interface sub-window module is called according to the instruction, analyzes the sub- window of user interface for needing to call
Module.
With reference in a first aspect, in the third possible implementation, the acquisition user profile data include:
Obtain the user profile data of client local cache;Or
By sending the solicited message of inquiry database to server, receive the server and returned according to the solicited message
The user profile data returned.
With reference in a first aspect, either second of the first possible implementation or first aspect of first aspect
Possible implementation, or the third possible implementation of first aspect, in the 4th kind of possible implementation, wound
The each user interface sub-window module built includes each self-corresponding user interface bulk properties;The use according to the calling
Family interface sub-window module is generated for showing that the user interface child form of User Interface includes:
According to user interface bulk properties corresponding to the user interface sub-window module of the calling, generate and used for showing
The user interface child form of family interactive interface.
With reference to the 4th kind of possible implementation of first aspect, in the 5th kind of possible implementation, the establishment
After at least two user interface sub-window modules, in addition to:
Change user interface bulk properties corresponding to the user interface sub-window module created.
Second aspect of the embodiment of the present invention discloses a kind of generation equipment of user interface forms, including:
Creation module, for creating at least two user interface sub-window modules, the user interface sub-window module is used
In generation user interface Main form;
Analysis module is obtained, for obtaining user profile data, needs what is called according to the user profile data analysis
User interface sub-window module;
Merging module is generated, for being generated according to the user interface sub-window module of the calling for showing user mutual
The user interface child form at interface, and the user interface child form is merged into the user interface Main form.
With reference to second aspect, in the first possible implementation, each user interface sub-window module bag of establishment
Include each self-corresponding content parameters;The acquisition analysis module includes:
First acquisition unit, for obtaining user profile data;
Analytic unit, for analyzing the content of the user profile data;
Judging unit, for judging content parameters corresponding to the content of the user profile data, the content that will determine that out
The user interface sub-window module that user interface sub-window module corresponding to parameter is called as needs.
With reference to second aspect, in second of possible implementation, the user profile data include default be used for
Indicate the information of calling user interface sub-window module;The acquisition analysis module is specifically used for:User profile data are obtained, and
The information of user interface sub-window module is called according to the instruction, analyzes the user interface sub-window module for needing to call.
With reference to second aspect, in the third possible implementation, the acquisition analysis module includes:
Second acquisition unit, for obtaining the user profile data of client local cache;Or
Receiving unit, for by server send inquiry database solicited message, receive the server according to
The user profile data that the solicited message returns.
With reference to second aspect, either second of the possible implementation of the first of second aspect or second aspect
Possible implementation, or the third possible implementation of second aspect, in the 4th kind of possible implementation, wound
The each user interface sub-window module built includes each self-corresponding user interface bulk properties;The generation merging module is specific
For:According to user interface bulk properties corresponding to the user interface sub-window module of the calling, generate for showing user
The user interface child form of interactive interface, and the user interface child form is merged into the user interface Main form.
With reference to the 4th kind of possible implementation of second aspect, in the 5th kind of possible implementation, in addition to:
Forms characteristic modified module, for the creation module create at least two user interface sub-window modules it
Afterwards, user interface bulk properties corresponding to the user interface sub-window module of establishment is changed.
The third aspect of the embodiment of the present invention discloses a kind of computer-readable storage medium, and the computer-readable storage medium is stored with
Program, described program perform when including the embodiment of the present invention in a first aspect, or first aspect the first possible realization side
Formula, either the third possible implementation of the possible implementation of second of first aspect or first aspect, or
4th kind of possible implementation of first aspect, or the user disclosed in the 5th kind of possible implementation of first aspect
The Overall Steps of the generation method of interface widgets.
Implement the embodiment of the present invention, have the advantages that:
By implementing the embodiment of the present invention, by creating at least two user interface sub-window modules, according to user profile
Data analysis needs the user interface sub-window module called;Then generated and be used for according to the user interface sub-window module of calling
The user interface child form of User Interface is shown, and user interface child form is merged into user interface Main form, is solved
Realize in the prior art and set the code of the related UI forms of each specific transactions to lack flexibility and can for every kind of scene
Denaturation, huge repetitive operation is brought to client software developer, the technical problem of development cost is added, improves
The flexibility of code;And when needing to having the forms of denominator to change between multiple user interface Main forms, only need
The user interface sub-window module that this has been created is modified modification to multiple user interface Main forms can be achieved, avoided
Need will individually to make corresponding modification to all user interface Main forms for possessing the characteristic forms in the prior art, enter
One step reduces the repetitive operation of client software developer, enhance the flexibilities of the UI window designs for possessing general character with
And alterability.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is carried out clear, complete
Site preparation describes, it is clear that described embodiment is only part of the embodiment of the present invention, rather than whole embodiments.It is based on
Embodiment in the present invention, those of ordinary skill in the art are obtained every other under the premise of creative work is not made
Embodiment, belong to the scope of protection of the invention.
It is the schematic flow sheet of the generation method of user interface forms provided by the invention referring to Fig. 1, this method includes:
Step S100:At least two user interface sub-window modules are created, the user interface sub-window module is used to give birth to
Into user interface Main form;
Specifically, the user interface Main form in the embodiment of the present invention includes but is not limited between user and equipment be used to hand over
Mutual interface widgets, such as when user's access of instant communicating software and good friend are chatted, the chat forms of displaying are user
Interface Main form;The interface widgets for being used to interact between the user and equipment include polytype information, as user's title is believed
Different types of information such as breath, user's head image information, then the embodiment of the present invention will include the interface widgets of polytype information
It is referred to as user interface Main form;
Can it be analyzed multiple by analyzing the user interface bulk properties of multiple user interface Main forms in step S100
Characteristic and general character between user interface Main form, finding out between the plurality of user interface Main form has common user circle
Face-port bulk properties, then can creates user interface sub-window module for the common user interface bulk properties, i.e.,
The user interface sub-window module being created that is corresponding with the user interface bulk properties, the user interface child form mould being created that
Block is used to generate user interface Main form.Such as include in the presence of three user interface Main forms, first user interface Main form
User's heading message, identity information and class information, second user interface Main form includes user's heading message and car exhibition is believed
Breath, third party interface Main form include user's heading message and honor information;So analysis draws three user interfaces
The common user interface forms characteristic having between Main form is user's heading message;Created for the co-user heading message
User interface sub-window module is built, the user interface sub-window module being created that is used to generate user's heading message.
It will be appreciated that the user interface child form in the embodiment of the present invention is often shown without independent, but pass through
Combined user interface child form face generates and shown user interface Main form;If according to user profile number in below step S102
When only need to call 1 user interface sub-window module according to analysis, then generate and show that user interface Main form includes 1 use
Family interface child form.
Step S102:User profile data are obtained, the user interface for needing to call according to the user profile data analysis
Sub-window module;
Specifically, can be by obtaining the user profile data of client local cache;Can also be by being sent out to server
The solicited message of inquiry database is sent, receives the user profile data that the server returns according to the solicited message;Then basis
Which user interface sub-window module the user profile data analysis goes out to need to call generate user interface Main form.That is, walk
The user interface sub-window module created in rapid S100 can be called to generate the main window of user interface according to specifically used scene
Body, a user interface sub-window module can be called to generate different user interface Main forms.
Step S104:The use for showing User Interface is generated according to the user interface sub-window module of the calling
Family interface child form, and the user interface child form is merged into the user interface Main form.
Specifically, such as called user interface sub-window module includes 3, respectively the first user interface child form
Module, second user interface sub-window module and the 3rd user interface sub-window module, then according to 3 sub- windows of user interface
Module, 3 user interface child forms for showing User Interface are generated respectively, then by 3 user interface
Forms are merged into user interface Main form;
It is possible to further combine the another of the generation method of user interface forms provided by the invention as shown in Figure 2
The schematic flow sheet of embodiment, the user interface how called come detailed description of illustrating according to user profile data analysis needs are sub
Form module, this method include:
Step S200:Create at least two user interface sub-window modules;
Specifically, the step in above-mentioned Fig. 1 embodiments is may be referred to, is repeated no more here.For example, as shown in Figure 3 originally
The schematic diagram of the user interface Main form provided is invented, user logs in the backward user of amusement platform and illustrates the main window of user interface
Body, including identity information, image information, car show and medal information etc., by analysis multiple users log in amusement platforms
The user interface Main form shown afterwards all jointly possesses some user interface bulk properties, then software developer can be with pin
Common user interface bulk properties is started and builds user interface sub-window module, each user interface sub-window module of establishment
Including each self-corresponding content parameters;The schematic diagram provided by the invention for creating user interface sub-window module as shown in Figure 4,
User interface Main form in Fig. 3 is created that by 4 user interface sub-window modules according to common user interface bulk properties,
Such as it is respectively " title module ", " business card module ", " car exhibition module " and " medal module ", then " title module " is corresponding with mark
Topic content parameters, " business card module " are corresponding with image parameter, " car exhibition module " corresponding lordship parameter, and " medal module "
Corresponding medal parameter etc..
It will be appreciated that the user interface sub-window module of the establishment in each embodiment of the present invention is not limited in Fig. 4
User interface sub-window module, content parameters corresponding to each user interface sub-window module are also not necessarily limited to enumerate in Fig. 4 interior
Hold parameter.
Step S202:User profile data are obtained, analyze the content of the user profile data;
Specifically, the user profile data can be that user logs in the use that the individual subscriber preserved during the amusement platform is set
Family message data content, including identity information, if provided with image, if containing medal information etc., the use is drawn by analysis
The content of family information data.
Step S204:Judge content parameters corresponding to the content of the user profile data, the content parameters that will determine that out
The user interface sub-window module that corresponding user interface sub-window module is called as needs;
Specifically, the content of the user profile data is corresponding with content parameters, by taking Fig. 4 as an example, user profile data it is expensive
Race's identity information can correspond to the lordship parameter in " car exhibition module ", and the image information of user profile data can correspond to " business card
Image parameter in module ", the medal information of user profile data can correspond to medal parameter in " medal module " etc.;Pass through
Content parameters corresponding to the content of user profile data, user interface sub-window module corresponding to the content parameters that will determine that out are made
To need the user interface sub-window module called, such as judge that the user profile data of certain user only possess lordship,
There is no image information and medal information, then can judge only to need to call " title module " and " car exhibition module ";And for example sentence
Break and the user profile data of certain user and be singer's identity and contain image information and medal information, then can judge to need
Call " title module ", " business card module " and " medal module ".
Step S206:The use for showing User Interface is generated according to the user interface sub-window module of the calling
Family interface child form, and the user interface child form is merged into the user interface Main form.
Specifically, the present invention as shown in Figure 5 provides the schematic diagram of the user interface Main form of generation, if step S204 sentences
Breaking only needs to call " title module " and " car exhibition module " the two user interface sub-window modules, then calls the two users
Interface sub-window module, and the user interface child form for showing User Interface is generated according to user profile data, so
Two user interface child forms are merged into user interface Main form afterwards;The present invention as shown in Figure 6 provides the use of generation again
The schematic diagram of another embodiment of family interface Main form, if step S204 judges to need to call " title module ", " business card module "
" medal module " these three user interface sub-window modules, then call these three user interface sub-window modules, and according to
User profile data generate the user interface child form for showing User Interface, then by three sub- windows of user interface
Body is merged into user interface Main form.
Further, the user interface Main form generated in the embodiment of the present invention can show use by way of pop-up
Family, so as to which User Interface more intuitively is showed into user, such as it can more dazzle and more effectively show user institute
The identity combinations possessed, inspire user and develop self.
It will be appreciated that Fig. 5 and Fig. 6 is two kinds of embodiments of the embodiment of the present invention, the invention is not restricted to Fig. 5 and figure
The user interface Main form of 6 generations;
It should be noted that the user profile data in the embodiment of the present invention are also not necessarily limited to above-mentioned identity information, if
Provided with image, if containing medal information etc., user profile data can not be corresponding with content parameters, but including default use
The information of user interface sub-window module is called in instruction;That is, the user profile data content that individual subscriber is set can be direct
Including which user interface sub-window module called, it can be which user interface child form the instruction that system default is set calls
Which user interface sub-window module module or user call according to the customized instruction of self-demand, then according to
The step of user interface sub-window module that user profile data analysis needs to call, can include:User is called according to the instruction
The information of interface sub-window module, the user interface sub-window module for needing to call is analyzed, then directly perform above-mentioned steps
S206.
Yet further, each user interface sub-window module created in each embodiment of the present invention includes each corresponding
User interface bulk properties;The user interface bulk properties can include 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 spy such as color of user interface child form
Property.The use for showing User Interface is generated according to the user interface sub-window module of the calling in the embodiment of the present invention
The step of family interface child form, specifically includes:According to user interface bulk properties corresponding to the user interface sub-window module of calling
To generate the user interface child form for showing User Interface.
Yet further, the present invention can also include after at least two user interface sub-window modules are created:Modification
User interface bulk properties corresponding to the user interface sub-window module created.
Specifically, software developer or user can change corresponding to user interface sub-window module according to their needs
User interface bulk properties, pass through the generation method of the user interface forms in the embodiment of the present invention, a sub- window of user interface
Module can be called to generate different user interface Main forms, therefore corresponding to the user interface sub-window module of establishment
User interface bulk properties carry out once modification i.e. may be used in different user interface Main forms, avoid prior art
In the change of some UI forms characteristic often may result in and there are the forms for possessing the characteristic to make corresponding modification more, to visitor
Family end software developer brings huge repetitive operation, adds the technical problem of development cost, substantially increases code
Flexibility.
By implementing the embodiment of the present invention, by creating at least two user interface sub-window modules, according to user profile
Data analysis needs the user interface sub-window module called;Then generated and be used for according to the user interface sub-window module of calling
The user interface child form of User Interface is shown, and user interface child form is merged into user interface Main form, is solved
Realize in the prior art and set the code of the related UI forms of each specific transactions to lack flexibility and can for every kind of scene
Denaturation, huge repetitive operation is brought to client software developer, the technical problem of development cost is added, improves
The flexibility of code;And when needing to having the forms of denominator to change between multiple user interface Main forms, only need
The user interface sub-window module that this has been created is modified modification to multiple user interface Main forms can be achieved, avoided
Need will individually to make corresponding modification to all user interface Main forms for possessing the characteristic forms in the prior art, enter
One step reduces the repetitive operation of client software developer, enhance the flexibilities of the UI window designs for possessing general character with
And alterability.
For the ease of preferably implementing the such scheme of the embodiment of the present invention, the present invention is also corresponding to provide a kind of user circle
The generation equipment of face-port body, the structural representation of the generation equipment of user interface forms provided by the invention as shown in Figure 7, is used
The generation equipment 70 of family interface widgets can include:Creation module 700, analysis module 702 and generation merging module 704 are obtained,
Wherein,
Creation module 700 is used to create at least two user interface sub-window modules, the user interface sub-window module
For generating user interface Main form;
Obtain analysis module 702 to be used to obtain user profile data, need to call according to the user profile data analysis
User interface sub-window module;
Generation merging module 704 is used to be generated for showing that user hands over according to the user interface sub-window module of the calling
The user interface child form at mutual interface, and the user interface child form is merged into the user interface Main form.
Specifically, each user interface sub-window module that creation module 700 creates includes each self-corresponding content parameters;
The structural representation provided by the invention for obtaining analysis module as shown in Figure 8, obtaining analysis module 702 can include:First
Acquiring unit 7020, analytic unit 7022 and judging unit 7024, wherein
First acquisition unit 7020 is used to obtain user profile data;
Analytic unit 7022 is used for the content for analyzing the user profile data;
Judging unit 7024 is used to judge content parameters corresponding to the content of the user profile data, and what be will determine that out is interior
Hold the user interface sub-window module that user interface sub-window module corresponding to parameter is called as needs.
Further, the user profile data in the embodiment of the present invention can include default for indicating to call user circle
The information of face form module;So obtaining analysis module 702 can be specifically used for:User profile data are obtained, and according to institute
The information that user interface sub-window module is called in instruction is stated, analyzes the user interface sub-window module for needing to call.
Yet further, the structural representation of another embodiment provided by the invention for obtaining analysis module as shown in Figure 9
Figure, obtaining analysis module 702 is included outside first acquisition unit 7020, analytic unit 7022 and judging unit 7024, can also wrap
Second acquisition unit 7026 or receiving unit 7028 are included, all to include second acquisition unit 7026 and receiving unit 7028 in Fig. 9
Exemplified by illustrate, wherein
Second acquisition unit 7026 is used for the user profile data for obtaining client local cache;Or
Receiving unit 7028 is used for the solicited message by sending inquiry database to server, receives the server root
The user profile data returned according to the solicited message.
Yet further, each user interface sub-window module that creation module 700 creates includes each self-corresponding user
Interface widgets characteristic;Generation merging module 704 can be specifically used for:It is corresponding according to the user interface sub-window module of the calling
User interface bulk properties, generate the user interface child form for showing User Interface, and by the user interface
Child form is merged into the user interface Main form.
Yet further, another embodiment of the generation equipment of user interface forms provided by the invention as shown in Figure 10
Structural representation, the generation equipment 70 of user interface forms includes:Creation module 700, obtain analysis module 702 and generation conjunction
And outside module 704, forms characteristic modified module 706 can also be included, for creating at least two users circle in creation module 700
After face form module, user interface bulk properties corresponding to the user interface sub-window module of establishment is changed.
It should be noted that the generation equipment 70 of the user interface forms in the embodiment of the present invention can be individual calculus
Machine, tablet personal computer, personal digital assistant, intelligent mobile terminal or other electronic equipments etc.;
It will be appreciated that the function of each functional module of the generation equipment 70 of user interface forms in the embodiment of the present invention
It can be implemented according to the method in above method embodiment, its specific implementation process is referred to the phase of above method embodiment
Description is closed, here is omitted.
Figure 11 is referred to, Figure 11 is the structure of another embodiment of the generation equipment of user interface forms provided by the invention
Schematic diagram.Wherein, as shown in figure 11, the generation equipment 110 of user interface forms can include:At least one processor 1101,
Such as CPU, at least one network interface 1104, user interface 1103, memory 1105, at least one communication bus 1102 and
Display screen 1106.Wherein, communication bus 1102 is used to realize the connection communication between these components.Wherein, user interface 1103
Display screen (Display) 11 can be included, optional user interface 1103 can also include wireline interface, the wave point of standard.
Network interface 1104 can optionally include wireline interface, the wave point (such as WI-FI interfaces) of standard.Memory 1105 can be with
It is high-speed RAM memory or non-labile memory (non-volatile memory), a for example, at least magnetic
Disk storage.Memory 1105 optionally can also be at least one storage device for being located remotely from aforementioned processor 1101.Such as
Shown in Figure 11, as in a kind of memory 1105 of computer-readable storage medium can include operating system, network communication module, use
The generation program of family interface module and user interface forms.
In the generation equipment 110 of the user interface forms shown in Figure 11, the network interface 1104 is mainly used in connection clothes
Business device, enters row data communication with server;And processor 1101 can be used for calling the user interface stored in memory 1105
The generation program of forms, and perform following operate:
At least two user interface sub-window modules are created, the user interface sub-window module is used to generate user interface
Main form;
User profile data are obtained, the user interface child form mould for needing to call according to the user profile data analysis
Block;
User interface for showing User Interface is generated according to the user interface sub-window module of the calling
Forms, and the user interface child form is merged into the user interface Main form.
Specifically, each user interface sub-window module of establishment includes each self-corresponding content parameters;Processor 1101
It can be included according to the user interface sub-window module that the user profile data analysis needs to call:
Analyze the content of the user profile data;
Judge content parameters corresponding to the content of the user profile data, user corresponding to the content parameters that will determine that out
The user interface sub-window module that interface sub-window module is called as needs.
Specifically, the user profile data include the default letter for being used to indicate calling user interface sub-window module
Breath;The user interface sub-window module that processor 1101 needs to call according to the user profile data analysis can include:
The information of user interface sub-window module is called according to the instruction, analyzes the sub- window of user interface for needing to call
Module.
Specifically, processor 1101 obtains user profile data and can included:
Obtain the user profile data of client local cache;Or
By sending the solicited message of inquiry database to server, receive the server and returned according to the solicited message
The user profile data returned.
Specifically, each user interface sub-window module of establishment includes each self-corresponding user interface bulk properties;Place
Reason device 1101 generates user interface for showing User Interface according to the user interface sub-window module of the calling
Forms can include:
According to user interface bulk properties corresponding to the user interface sub-window module of the calling, generate and used for showing
The user interface child form of family interactive interface.
Specifically, after processor 1101 creates at least two user interface sub-window modules, can also carry out:
Change user interface bulk properties corresponding to the user interface sub-window module created.
It will be appreciated that the work(of each functional module of the generation equipment 110 of user interface forms in the embodiment of the present invention
It is able to can be implemented according to the method in above method embodiment, its specific implementation process is referred to above method embodiment
Associated description, here is omitted.
In summary, by implementing the embodiment of the present invention, by creating at least two user interface sub-window modules, according to
User profile data analysis needs the user interface sub-window module called;Then according to the user interface sub-window module of calling
The user interface child form for showing User Interface is generated, and user interface child form is merged into the main window of user interface
Body, solve and realize that the code shortage of the UI forms for each specific transactions correlation of every kind of scene setting is flexible in the prior art
Property and changeability, huge repetitive operation is brought to client software developer, adds the technical problem of development cost,
Improve the flexibility of code;And it ought need to having the forms of denominator to change between multiple user interface Main forms
When, the user interface sub-window module that this has been created need to only be modified and can be achieved to repair multiple user interface Main forms
Change, avoiding needs individually make accordingly all user interface Main forms for possessing the characteristic forms in the prior art
Modification, reduce further the repetitive operation of client software developer, enhance the UI window designs that possess general character
Flexibility and alterability.
One of ordinary skill in the art will appreciate that realize all or part of flow in above-described embodiment method, being can be with
The hardware of correlation is instructed to complete by computer program, described program can be stored in a computer read/write memory medium
In, the program is upon execution, it may include such as the flow of the embodiment of above-mentioned each method.Wherein, described storage medium can be magnetic
Dish, CD, read-only memory (Read-Only Memory, ROM) or random access memory (Random Access
Memory, RAM) etc..
Above disclosure is only preferred embodiment of present invention, can not limit the right model of the present invention with this certainly
Enclose, therefore the equivalent variations made according to the claims in the present invention, still belong to the scope that the present invention is covered.