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 clearly and completely described, obviously, described embodiment is only the present invention's part embodiment, rather than whole embodiment.Embodiment based in the present invention, those of ordinary skills, not making the every other embodiment obtaining under creative work prerequisite, belong to the scope of protection of the invention.
In the embodiment of the present invention, master routine can be the arbitrary application program that can support subroutine, for example: the application program of page type, the application program of player types, the application program of type of play or application program of security type etc.And target subroutine can be the arbitrary subroutine that can move on master routine.
Refer to Fig. 1, Fig. 1 is the schematic flow sheet of a kind of window display method of providing of the embodiment of the present invention, as shown in Figure 1, comprises the following steps:
S101, reception are used for the idsplay order of the demonstration information of display-object subroutine.
Optionally, above-mentioned idsplay order can arbitraryly can be presented at the demonstration information of target subroutine the instruction in the current window of master routine.For example: the instruction that the instruction of user's input or master routine oneself generate.In addition, the information of required demonstration when above-mentioned demonstration information can be target subprogram activation, for example: the picture that need to show, word, video, virtual key etc.
S102, respond described idsplay order, obtain the window parameter information corresponding with described target subroutine, adjust the window parameter of the current window of master routine according to described window parameter information, described master routine comprises described target subroutine.
The above-mentioned window parameter information corresponding with target subroutine can be the window parameter information that the demonstration information that need to show with target subroutine adapts to, for example: when the demonstration information that need to show when target subroutine is too much, above-mentioned window parameter information can be the excessive parameter information of window size, tunes up the size of current window; When the demonstration information that need to show when target subroutine is very few, above-mentioned window parameter information can be the too small parameter information of window size, turns the size of current window down; When the demonstration information Chinese word that need to show when target subroutine is very few, above-mentioned window parameter information can be the excessive parameter information of window font, tunes up the font in current window; The color of the demonstration information that need to show when target subroutine is when green, and above-mentioned window parameter information can be that window color is green parameter information, and the color that is about to current window is adjusted into green.
In S103, the described current window after described adjustment, show described demonstration information.
Optionally, step S103 can be the demonstration information of obtaining target subroutine from this locality, to in the current window of this demonstration information after adjustment, show again, before execution step S103, the demonstration information of target subroutine generates, for example: master routine had moved above-mentioned target subroutine before execution step S103, just the demonstration information of target subroutine does not show in current window, and current window is now the demonstration information that shows another subroutine.Step S103 can also be the demonstration information that generates target subroutine, and will in the current window of this demonstration information after adjustment, show, before execution step S103, the demonstration information of target subroutine does not also generate, for example: master routine did not also start target subroutine before execution step S103.
When step S103 shows above-mentioned demonstration information in current window, this current window shows that the interface of above-mentioned demonstration information just can be understood as the user interface of target subroutine (User Interface, UI) interface.
The demonstration information that just can realize different subroutines by above-mentioned steps is in the window of different window parameters, thus the window resource utilization of raising application program.In addition, when improving the window resource utilization of application program, because the demonstration information of each subroutine shows in the window that is window parameter corresponding to this subroutine, demonstration information that like this can this subroutine can the most comprehensively show, and be also to show in optimal window, it is also best giving user's experience like this.
Optionally, said method can be applied to any equipment that possesses application program, for example: panel computer, mobile phone, electronic reader, telepilot, personal computer (Personal Computer, PC), notebook computer, mobile unit, Web TV, wearable device etc. have the smart machine of network function.
In technique scheme, when receiving the idsplay order of the demonstration information that is used for display-object subroutine, respond described idsplay order, obtain the window parameter information corresponding with described target subroutine, according to described window parameter information, adjust the window parameter of the current window of master routine, then in the current window after adjustment, show described demonstration information.Thereby can realize the demonstration information of different subroutines in the window of different window parameters, thereby improve the window resource utilization of application program.
Refer to Fig. 2, Fig. 2 is the schematic flow sheet of the another kind of window display method that provides of the embodiment of the present invention, as shown in Figure 2, comprises the following steps:
S201, reception are for starting the enabled instruction of described target subroutine.
Step S201 receives the click commands of clicking the icon of target subroutine in master routine interface, or step S201 can be the above-mentioned enabled instruction that master routine generates automatically, for example: master routine periodically starts above-mentioned target subroutine, or automatically start above-mentioned target subroutine when master routine certain trigger parameter detected.In addition, startup target subroutine is the demonstration information of meeting display-object subroutine.
S202, respond described enabled instruction, obtain the window parameter information corresponding with described target subroutine, adjust the window parameter of the current window of master routine according to described window parameter information, described master routine comprises described target subroutine.
Optionally, above-mentioned window parameter can comprise following at least one:
Window size, window font and window color.
Be that step S202 can be the window size of adjusting the current window of master routine, or adjust the window font of the current window of master routine, or the window color of the current window of adjustment master routine etc.
Optionally, above-mentionedly obtain the window parameter information corresponding with described target subroutine and can comprise:
To the request of server send window parameter acquiring, the identification information of described target subroutine is carried in described parameter acquiring request;
Receive described server and respond the described window parameter information that the request of obtaining of described window parameter sends.
Wherein, server can obtain the window parameter information corresponding with described target subroutine in advance, because the characteristic parameter server of above-mentioned target subroutine can be known in advance, be the demonstration information that server is known target subroutine in advance, thereby server can obtain the window parameter information applicable with these demonstration information in advance.For example: server receives the operation of user's input and the window parameter information corresponding with described target subroutine that generates, or the window parameter information corresponding with described target subroutine that generates according to the demonstration information of target subroutine of server.
This embodiment can obtain above-mentioned parameter current information at alignment server, thereby can realize, obtains more accurate window parameter information, because server window parameter information corresponding to above-mentioned and described target subroutine that can be real-time update.
Optionally, described in obtain the window parameter information corresponding with described target subroutine, can comprise:
From this locality, obtain the window parameter information corresponding with described target subroutine.
For example: local pre-stored window parameter information corresponding to each subroutine that has, step S202 just can directly obtain the window parameter information corresponding with described target subroutine from this locality like this.
In addition, this locality can be pre-stored configuration file, this configuration file can be to adopt the main file that adopts extend markup language (Extensible Markup Language, XML) file layout of invention, and this configuration file can record window parameter information corresponding to each subroutine.
Optionally, described in obtain the window parameter information corresponding with described target subroutine, can comprise:
Analyze the information that needs demonstration in described display window, and generate window parameter information corresponding to information that needs demonstration in described display window, and using this window parameter information as the window parameter information corresponding with described target subroutine.
For example: by analysis, obtain demonstration information that target subroutine need to show when too much, just can the oversize parameter information of generating window; By analysis, obtain demonstration information that target subroutine need to show when very few, just can the undersized parameter information of generating window; By analysis, obtain demonstration information Chinese word that target subroutine need to show when very few, just can generate is the excessive parameter information of window font.
In this embodiment, can realize the real-time generation window parameter information corresponding with described target subroutine.
The demonstration information that shows described target subroutine in S203, the described current window after described adjustment.
Optionally, described method can also comprise the following steps:
Respond described enabled instruction, generate the target process of described target subroutine, wherein, the demonstration information of target subroutine comprises the demonstration information of described target process.
Above-mentioned target process can be for carrying the process of target subroutine.In addition, the demonstration information of target process can be equal to the demonstration information of target subroutine.
In this embodiment, above-mentionedly obtain the window parameter information corresponding with described target subroutine, according to described window parameter information, adjust the window parameter of the current window of master routine, can comprise:
By the UI process being pre-created, obtain the window parameter information corresponding with described target subroutine, and utilize described UI process according to described window parameter information, to adjust the window parameter of the current window of master routine;
In the described current window of step S203 after described adjustment, show described demonstration information, can comprise:
Utilize described UI process to be controlled at the demonstration information that shows described target process in the described current window after described adjustment.
Wherein, the above-mentioned UI process being pre-created can be in operation during above-mentioned master routine, the UI process creating for this master routine, in addition, this UI process can be for managing window parameter and the displaying contents of the current window of master routine, and UI process can be for controlling the user interface of master routine.
In this embodiment, can realize the corresponding event that is completed target subroutine by target process, and the demonstration information that adjustment current window and display-object carry out is all realized by UI process, by different processes, complete different events like this, thereby raising execution efficiency, in addition, can avoid makeing mistakes and causing the problem of all event handling failures because of a certain process.
It should be noted that, before execution step S201, master routine is in operation.
In technique scheme, on the basis of first embodiment, increase the embodiment of plurality of optional, and can realize the utilization factor that window resource is provided.
Refer to Fig. 3, Fig. 3 is the schematic flow sheet of the another kind of window display method that provides of the embodiment of the present invention, as shown in Figure 3, comprises the following steps:
S301, reception are for switching to the demonstration information of described target subroutine the current switching command that needs the demonstration information of demonstration.
For example: master routine had moved a plurality of subroutines that comprise above-mentioned target subroutine before step S301, and the current window of master routine is the demonstration information that shows another subroutine before step S301, like this when step S301 receives the out code of closing in current window subroutine corresponding to the demonstration information that shows, and after in current window, the subroutine corresponding to demonstration information of demonstration closed, when the demonstration information of target subroutine can show, this out code can be above-mentioned switching command so.Or when receiving the click commands of the icon of clicking target subroutine, and this click commands can trigger the demonstration information of target subroutine is switched to the current demonstration information that shows of needing, and this out code can be above-mentioned click commands so.
S302, respond described switching command, obtain the window parameter information corresponding with described target subroutine, adjust the window parameter of the current window of master routine according to described window parameter information, described master routine comprises described target subroutine.
Optionally, above-mentioned window parameter can comprise following at least one:
Window size, window font and window color.
Be that step S302 can be the window size of adjusting the current window of master routine, or adjust the window font of the current window of master routine, or the window color of the current window of adjustment master routine etc.
Optionally, above-mentionedly obtain the window parameter information corresponding with described target subroutine and can comprise:
To the request of server send window parameter acquiring, the identification information of described target subroutine is carried in described parameter acquiring request;
Receive described server and respond the described window parameter information that the request of obtaining of described window parameter sends.
Wherein, server can obtain the window parameter information corresponding with described target subroutine in advance, because the characteristic parameter server of above-mentioned target subroutine can be known in advance, be the demonstration information that server is known target subroutine in advance, thereby server can obtain the window parameter information applicable with these demonstration information in advance.For example: server receives the operation of user's input and the window parameter information corresponding with described target subroutine that generates, or the window parameter information corresponding with described target subroutine that generates according to the demonstration information of target subroutine of server.
This embodiment can obtain above-mentioned parameter current information at alignment server, thereby can realize, obtains more accurate window parameter information, because server window parameter information corresponding to above-mentioned and described target subroutine that can be real-time update.
Optionally, described in obtain the window parameter information corresponding with described target subroutine, can comprise:
From this locality, obtain the window parameter information corresponding with described target subroutine.
For example: local pre-stored window parameter information corresponding to each subroutine that has, step S202 just can directly obtain the window parameter information corresponding with described target subroutine from this locality like this.
Optionally, described in obtain the window parameter information corresponding with described target subroutine, can comprise:
Analyze the information that needs demonstration in described display window, and generate window parameter information corresponding to information that needs demonstration in described display window, and using this window parameter information as the window parameter information corresponding with described target subroutine.
For example: by analysis, obtain demonstration information that target subroutine need to show when too much, just can the oversize parameter information of generating window; By analysis, obtain demonstration information that target subroutine need to show when very few, just can the undersized parameter information of generating window; By analysis, obtain demonstration information Chinese word that target subroutine need to show when very few, just can generate is the excessive parameter information of window font.
In this embodiment, can realize the real-time generation window parameter information corresponding with described target subroutine.
In S303, the described current window after described adjustment, show described demonstration information.
It should be noted that, before execution step S301, master routine is in operation.
In technique scheme, on the basis of first embodiment, increase the embodiment of plurality of optional, and can realize the utilization factor that window resource is provided.
Refer to Fig. 4, Fig. 4 is the schematic flow sheet of the another kind of window display method that provides of the embodiment of the present invention, the present embodiment is illustrated with the game application scenarios in the applicable a plurality of application scenarioss of method of the present invention, certainly, the applicable application scenarios of the present embodiment can also be page application scenarios or player application scene, as browser, open a plurality of pages, player application is play a plurality of videos.As shown in Figure 4, this method can comprise the steps:
S401, receive the enabled instruction that starts target pages game, respond the target process that described enabled instruction creates this target pages game.
Wherein, this target pages game can be arbitrary a page game in Internet technical field, and page game it is also understood that as web game.In addition, above-mentioned target process for example can be, for carrying the process of target pages game: grender process.
S402, UI process are obtained the demonstration size of the most applicable target pages game from pre-configured configuration file.
Wherein, the UI process that above-mentioned UI process can be game center, for example: game process.Wherein, game center can be a client software that is used for carrying carbon game, and game center can concentrate in together the page game of various styles, facilitates player to select different page games to play according to the hobby of oneself.
In addition, in this embodiment, what game center adopted is the corresponding process of a page game, and the process of each page game is independently, avoids causing game center collapse because page game itself goes wrong.
In addition, above-mentioned configuration file can be to adopt XML file layout to record the applicable demonstration size of every money web game.
S403, UI process are adjusted the size of game center display interface according to the demonstration size of obtaining, and the interface of display-object page game.
In technique scheme, can be for different in the market page game products, according to the size of its demonstration, game center interface size is set dynamically, avoid too small or excessive because of game center interface, cause page trip show complete or show more than neededly, affect player's game experiencing.It is the most comprehensive making to be presented on user's interface in front, and also the most applicable interface that represents this video game character, makes great efforts to build a game atmosphere the most satisfied to user.
Be apparatus of the present invention embodiment below, apparatus of the present invention embodiment is for carrying out the method for the inventive method embodiment mono-to four realization, for convenience of explanation, only show the part relevant to the embodiment of the present invention, concrete ins and outs do not disclose, and please refer to the embodiment of the present invention one, embodiment bis-, embodiment tri-and embodiment tetra-.
Refer to Fig. 5, Fig. 5 is the structural representation of a kind of window display of providing of the embodiment of the present invention, as shown in Figure 5, comprising: receiving element 51, adjustment unit 52 and display unit 53, wherein:
Receiving element 51, for receiving the idsplay order for the demonstration information of display-object subroutine.
Optionally, above-mentioned idsplay order can arbitraryly can be presented at the demonstration information of target subroutine the instruction in the current window of master routine.For example: the instruction that the instruction of user's input or master routine oneself generate.In addition, the information of required demonstration when above-mentioned demonstration information can be target subprogram activation, for example: the picture that need to show, word, video, virtual key etc.
Adjustment unit 52, for responding described idsplay order, obtains the window parameter information corresponding with described target subroutine, adjusts the window parameter of the current window of master routine according to described window parameter information, and described master routine comprises described target subroutine.
The above-mentioned window parameter information corresponding with target subroutine can be the window parameter information that the demonstration information that need to show with target subroutine adapts to, for example: when the demonstration information that need to show when target subroutine is too much, above-mentioned window parameter information can be the excessive parameter information of window size, tunes up the size of current window; When the demonstration information that need to show when target subroutine is very few, above-mentioned window parameter information can be the too small parameter information of window size, turns the size of current window down; When the demonstration information Chinese word that need to show when target subroutine is very few, above-mentioned window parameter information can be the excessive parameter information of window font, tunes up the font in current window; The color of the demonstration information that need to show when target subroutine is when green, and above-mentioned window parameter information can be that window color is green parameter information, and the color that is about to current window is adjusted into green.
Display unit 53, for showing described demonstration information in the described current window after described adjustment.
Optionally, display unit 53 can be the demonstration information of obtaining target subroutine from this locality, then will in the current window of this demonstration information after adjustment, show.Display unit 53 can also be the demonstration information that generates target subroutine, and will in the current window of this demonstration information after adjustment, show.
When display unit 53 shows above-mentioned demonstration information in current window, this current window shows that the interface of above-mentioned demonstration information just can be understood as the user interface of target subroutine (User Interface, UI) interface.
Optionally, above-mentioned window parameter can comprise following at least one:
Window size, window font and window color.
Be that adjustment unit 52 can be the window size of adjusting the current window of master routine, or adjust the window font of the current window of master routine, or the window color of the current window of adjustment master routine etc.
Optionally, as shown in Figure 6, adjustment unit 52 can comprise:
Request subelement 521, for responding described idsplay order, to the request of server send window parameter acquiring, the identification information of described target subroutine is carried in described parameter acquiring request;
Receive subelement 522, for receiving described server, respond the described window parameter information that the request of obtaining of described window parameter sends;
Adjust subelement 523, for adjust the window parameter of the current window of master routine according to described window parameter information.
Wherein, server can obtain the window parameter information corresponding with described target subroutine in advance, because the characteristic parameter server of above-mentioned target subroutine can be known in advance, be the demonstration information that server is known target subroutine in advance, thereby server can obtain the window parameter information applicable with these demonstration information in advance.For example: server receives the operation of user's input and the window parameter information corresponding with described target subroutine that generates, or the window parameter information corresponding with described target subroutine that generates according to the demonstration information of target subroutine of server.
This embodiment can obtain above-mentioned parameter current information at alignment server, thereby can realize, obtains more accurate window parameter information, because server window parameter information corresponding to above-mentioned and described target subroutine that can be real-time update.
Optionally, adjustment unit 52 can obtain the window parameter information corresponding with described target subroutine for responding described idsplay order from this locality, adjusts the window parameter of the current window of master routine according to described window parameter information.
For example: local pre-stored window parameter information corresponding to each subroutine that has, adjustment unit 52 just can directly obtain the window parameter information corresponding with described target subroutine from this locality like this.
In addition, this locality can be pre-stored configuration file, and this configuration file can be the file that adopts the main XML of employing of invention file layout, and this configuration file can record window parameter information corresponding to each subroutine.
Optionally, adjustment unit 52 can be for responding described idsplay order, analyze the information that needs demonstration in described display window, and generate and in described display window, need window parameter information corresponding to information that shows, and using this window parameter information as the window parameter information corresponding with described target subroutine, according to described window parameter information, adjust the window parameter of the current window of master routine.
For example: by analysis, obtain demonstration information that target subroutine need to show when too much, just can the oversize parameter information of generating window; By analysis, obtain demonstration information that target subroutine need to show when very few, just can the undersized parameter information of generating window; By analysis, obtain demonstration information Chinese word that target subroutine need to show when very few, just can generate is the excessive parameter information of window font.
In this embodiment, can realize the real-time generation window parameter information corresponding with described target subroutine.
Optionally, receiving element 51 can be for receiving for starting the enabled instruction of described target subroutine.
For example: receiving element 51 can be to receive the click commands of clicking the icon of target subroutine in master routine interface, or receiving element 51 can be the above-mentioned enabled instruction that master routine generates automatically, for example: master routine periodically starts above-mentioned target subroutine, or automatically start above-mentioned target subroutine when master routine certain trigger parameter detected.In addition, startup target subroutine is the demonstration information of meeting display-object subroutine.
In this embodiment, as shown in Figure 7, described device can also comprise:
Creating unit 54, for responding described enabled instruction, generates the target process of described target subroutine, and described demonstration information comprises the demonstration information of described target process;
Adjustment unit 52 can obtain the window parameter information corresponding with described target subroutine for the UI process by being pre-created, and utilizes described UI process according to described window parameter information, to adjust the window parameter of the current window of master routine;
Display unit 53 can be for utilizing described UI process to be controlled at the demonstration information that shows described target process in the described current window after described adjustment.
In this embodiment, can realize the corresponding event that is completed target subroutine by target process, and the demonstration information that adjustment current window and display-object carry out is all realized by UI process, by different processes, complete different events like this, thereby raising execution efficiency, in addition, can avoid makeing mistakes and causing the problem of all event handling failures because of a certain process.
Optionally, receiving element 51 can be for receiving for the demonstration information of described target subroutine being switched to the current switching command that needs the demonstration information of demonstration.
For example: master routine had moved a plurality of subroutines that comprise above-mentioned target subroutine before receiving element 51 receives switching command, and the current window of master routine is the demonstration information that shows another subroutine before receiving element 51 receives switching command, like this when receiving element 51 receives the out code of closing in current window subroutine corresponding to the demonstration information that shows, and after in current window, the subroutine corresponding to demonstration information of demonstration closed, when the demonstration information of target subroutine can show, this out code can be above-mentioned switching command so.Or when receiving the click commands of the icon of clicking target subroutine, and this click commands can trigger the demonstration information of target subroutine is switched to the current demonstration information that shows of needing, and this out code can be above-mentioned click commands so.
The demonstration information that just can realize different subroutines by said units is in the window of different window parameters, thus the window resource utilization of raising application program.In addition, when improving the window resource utilization of application program, because the demonstration information of each subroutine shows in the window that is window parameter corresponding to this subroutine, demonstration information that like this can this subroutine can the most comprehensively show, and be also to show in optimal window, it is also best giving user's experience like this.
Optionally, said apparatus can be applied to any equipment that possesses application program, for example: panel computer, mobile phone, electronic reader, telepilot, personal computer (Personal Computer, PC), notebook computer, mobile unit, Web TV, wearable device etc. have the smart machine of network function.
In technique scheme, when receiving the idsplay order of the demonstration information that is used for display-object subroutine, respond described idsplay order, obtain the window parameter information corresponding with described target subroutine, according to described window parameter information, adjust the window parameter of the current window of master routine, then in the current window after adjustment, show described demonstration information.Thereby can realize the demonstration information of different subroutines in the window of different window parameters, thereby improve the window resource utilization of application program.
One of ordinary skill in the art will appreciate that all or part of flow process realizing in above-described embodiment method, to come the hardware that instruction is relevant to complete by computer program, described program can be stored in a computer read/write memory medium, this program, when carrying out, can comprise as the flow process of the embodiment of 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 access memory (Random Access Memory is called for short RAM) etc.
Above disclosed is only preferred embodiment of the present invention, certainly can not limit with this interest field of the present invention, and the equivalent variations of therefore doing according to the claims in the present invention, still belongs to the scope that the present invention is contained.