CN103809864B - A kind of method and apparatus at switching at runtime interface - Google Patents
A kind of method and apparatus at switching at runtime interface Download PDFInfo
- Publication number
- CN103809864B CN103809864B CN201210442067.1A CN201210442067A CN103809864B CN 103809864 B CN103809864 B CN 103809864B CN 201210442067 A CN201210442067 A CN 201210442067A CN 103809864 B CN103809864 B CN 103809864B
- Authority
- CN
- China
- Prior art keywords
- display
- interface
- display control
- display interface
- configuration file
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Abstract
The method and apparatus that this application provides a kind of switching at runtime interface, the method includes: be pre-configured with the first attribute configuration file of the first display interface, and the second second attribute configuration file of display interface, when receiving the switching command that the first display interface from current presentation switches to the second display interface, obtain the second attribute configuration file of described second display interface;According to the difference between the display properties of described second attribute configuration file and described first attribute configuration file, load described second display interface;Described second display interface is switched to be shown the first display interface of current presentation.Use the method or apparatus of the embodiment of the present application, do not interfere with the performance of computer system, also improve the pause sense of changing interface existence thus improve Consumer's Experience.Meanwhile, GUI code also it is no longer necessary to realize changing interface, it is to avoid safeguard that these baroque codes cause the result that cost is high.
Description
Technical field
The application relates to the data processing field of computer system, particularly to a kind of switching at runtime interface
Method and apparatus.
Background technology
Computer software (Computer Software) refers to the program in computer system, and program is
The description processing object and process rule of calculating task.Some computer software has a lot of displays
Interface, in the different phase that software starts or runs, the interface shown by computer software is also
Different.When the display interface of computer software, for a certain reason, need to cut from an interface
When changing to another interface, need the control on showing interface is adjusted, such as, Chinese and English
The control layout adjustment etc. that switching causes, wherein, control is the encapsulation to data and method.
In prior art, when the control exposure on the interface of computer software needs to do some adjustment,
Such as shift, whether hide or change size etc., typically have two kinds of implementations, first
Plant in implementation, if the layout at interface is changed bigger, typically will be the interface before changing
Directly destroy, then re-create the interface after change and be shown.And in the second implementation,
If interface is changed smaller, then the code of boundary layer just can be used to implement control
Displacement, change size and hide etc. purpose.Both implementations are required for Developmental Engineer on boundary
Write corresponding code in the exploitation of face to realize.
Inventor finds in research process, the first scheme existing, re-creates because using
Interface after change realizes changing interface, it is necessary to when switching, weight is opened in quick closedown one again
Another newly created interface, it is big that this will result in resource occupation, and first closes one when switching
Create another interface again and will affect the performance of computer system because of repeatable operation, further
As changing interface exist pause sense and reduce Consumer's Experience.And existing first scheme,
Need to be realized by GUI code, although the problem not havinging the first scheme, but be accomplished by
Develop a large amount of GUI code to show to the switching realizing interface, and these code structure complexity result in
The result that maintenance cost is high.
In a word, a technical problem that those skilled in the art urgently solve is presently required is exactly: as
A kind of method proposing switching at runtime interface what can be innovated, to solve to switch in prior art boundary
Face can affect the problem of the performance of computer system, also will not improve while promoting Consumer's Experience
Maintenance cost.
Summary of the invention
Technical problems to be solved in this application are to provide a kind of method at switching at runtime interface, in order to
Solve interface switching in prior art and affect the problem of the performance of computer system, promote user's body
Also maintenance cost will not be improved while testing.
Present invention also provides the device at a kind of switching at runtime interface, in order to ensure that said method is in reality
In realization and application.
In order to solve the problems referred to above, a kind of method that this application discloses switching at runtime interface, including:
It is pre-configured with the first attribute configuration file of the first display interface, and the of the second display interface
Two attribute configuration files, described attribute configuration file is for representing the display properties of display interface;
When the switching receiving the first display interface from current presentation and switching to the second display interface refers to
When making, obtain the second attribute configuration file of described second display interface;
According to described second attribute configuration file and described first attribute configuration file display properties it
Between difference, load described second display interface;
Described second display interface is switched to be shown the first display interface of current presentation.
Preferably, described according to described second attribute configuration file and described first attribute configuration file
Difference between display properties, loads described second display interface, including:
Obtain all display controls of the second display interface of configuration in described second attribute configuration file
As the second display control queue, and obtain all display controls of the first display interface as the
One display control queue;
According to the attribute showing control in described first display control queue and the second display control queue
Difference, generates described second display interface.
Preferably, control is shown according in described first display control queue and the second display control queue
Attribute difference, generate described second display interface, including:
Judge whether the display control in described second display control queue shows described first successively
In control queue exist, if it is, with this second display control queue in show control genus
Property replace the attribute of display control corresponding in described first display control queue, if it is not, then directly
Connect the attribute loading described currently displaying control;
If the display control in the first display control queue shows in control queue not described second
Exist, then unload the display control in this first display control queue and attribute thereof;
Diversity ratio when the described second display properties showing control queue and the first display control queue
To time complete, the display control needed for combining the second display interface is to generate the second display interface.
Preferably, the second attribute configuration file of described second display interface of described acquisition, including:
The store path of described second attribute configuration file is obtained according to described switching command;
Described second attribute configuration file is read from the memory space that described store path indicates.
Preferably, described first display interface and the second display interface are positioned in same window.
This application discloses the device at a kind of switching at runtime interface, including:
Configuration module, for being pre-configured with the first attribute configuration file of the first display interface, Yi Ji
Second attribute configuration file of two display interfaces, described attribute configuration file is used for representing display interface
Display properties;
Acquisition module, switches to the second display for receiving the first display interface from current presentation
During the switching command at interface, obtain the second attribute configuration file of described second display interface;
Load-on module, for according to described second attribute configuration file and described first attribute configuration file
Display properties between difference, load described second display interface;
Handover module, for switching to described second display interface by the first display interface of current presentation
It is shown.
Preferably, described load-on module includes:
First obtains submodule, for obtaining the second display of configuration in described second attribute configuration file
All display controls at interface are as the second display control queue, and obtain the first display interface
All display controls are as the first display control queue;
Generate submodule, for according in described first display control queue and the second display control queue
The attribute difference of display control, generates described second display interface.
Preferably, described generation submodule includes:
Judge submodule, for whether judging the described second display control showing in control queue successively
Show in control queue described first and exist;
Replace submodule, in the case of in the described result judging submodule as being, with this second
The attribute of the display control in display control queue replaces correspondence in described first display control queue
The attribute of display control;
Load submodule, in the case of the result of described judgement submodule is no, be loaded directly into
The attribute of described currently displaying control;
Unloading submodule, if the display control being applied in the first display control queue is described second
Display control queue does not exists, unloads the display control in this first display control queue and genus thereof
Property;
Combination submodule, for showing the ratio of control queue and the first display control queue when described second
To time complete, the display control needed for combining the second display interface is to generate the second display interface.
Preferably, described acquisition module includes:
Second obtains submodule, for obtaining described second attribute configuration file according to described switching command
Store path;
Reading submodule, belongs to for reading described second from the memory space that described store path indicates
Property configuration file.
Preferably, described first display interface and the second display interface are positioned in same window.
Compared with prior art, the application includes advantages below:
In this application, when, in the computer software of front opening, user may be from current just clear
The first display interface look at switches to the second display interface, and in order to reduce from the first display interface
Switch to the resource for computer system spent by the second display interface, before and after needing in advance for switching
The attribute configuration file of the first display interface and the second display interface, at needs from the first display interface
The when of switching to the second display interface, directly invoke the second display interface attribute configuration file,
The attribute configuration file of the first display interface carries out the comparison of display properties, thus dynamically cuts in realization
Resource for computer system is nor affected on, moreover it is possible to promote user for interface switching while changing interface
Experience.Meanwhile, GUI code also it is no longer necessary to realize changing interface, it is to avoid safeguard this
A little baroque codes and cause the result that cost is high.
Further, the realization of changing interface, actually made in same window by bottom widget library
Switching, so the resource occupation for computer system is less, and changing interface performance also ratio is existing
There is technology more superior.
Certainly, the arbitrary product implementing the application it is not absolutely required to reach all the above simultaneously
Advantage.
Accompanying drawing explanation
For the technical scheme being illustrated more clearly that in the embodiment of the present application, embodiment will be described below
The accompanying drawing used required in is briefly described, it should be apparent that, the accompanying drawing in describing below is only
It is only some embodiments of the application, for those of ordinary skill in the art, is not paying wound
On the premise of the property made is laborious, it is also possible to obtain other accompanying drawing according to these accompanying drawings.
Fig. 1 is the flow chart of the embodiment of the method at a kind of switching at runtime interface of the application;
Fig. 2 is the flow chart of step 102 in the application embodiment of the method;
Fig. 3 is the flow chart of step 103 in the application embodiment of the method;
Fig. 4 is the flow chart of step 302 in the application embodiment of the method;
Fig. 5 is exploitation and the relation schematic diagram of bottom widget library of display interface in the application;
Fig. 6 is the structured flowchart of the device embodiment at a kind of switching at runtime interface of the application;
Fig. 7 is the structured flowchart of acquisition module 601 in the application device embodiment;
Fig. 8 is the structured flowchart of load-on module 602 in the application device embodiment;
Fig. 9 is the structured flowchart generating submodule 702 in the application device embodiment.
Detailed description of the invention
Below in conjunction with the accompanying drawing in the embodiment of the present application, to the technical scheme in the embodiment of the present application
It is clearly and completely described, it is clear that described embodiment is only that the application part is real
Execute example rather than whole embodiments.Based on the embodiment in the application, ordinary skill
The every other embodiment that personnel are obtained under not making creative work premise, broadly falls into this
The scope of application protection.
The application can be used in numerous general or special purpose calculating device context or configuration.Such as: individual
People's computer, server computer, handheld device or portable set, laptop device, many places
Reason device device, the distributed computing environment including any of the above device or equipment etc..
The application can retouch in the general context of computer executable instructions
State, such as program module.Usually, program module includes performing particular task or realizing specific taking out
The routine of image data type, program, object, assembly, data structure etc..Can also be in distribution
Formula computing environment puts into practice the application, in these distributed computing environment, by passing through communication network
And connected remote processing devices performs task.In a distributed computing environment, program module
May be located in the local and remote computer-readable storage medium including storage device.
One of main thought of the application can include, when, in the computer software of front opening, using
Family may switch to the second display interface from the first display interface currently browsed, and in order to
Reduce and switching to the resource for computer system spent by the second display interface from the first display interface,
Need to be the first display interface before and after switching and the attribute configuration file of the second display interface in advance,
Needs switch to the second display interface from the first display interface when, directly invoke the second display
The attribute configuration file at interface, the attribute configuration file of the first display interface carry out the ratio of display properties
Right, thus nor affect on resource for computer system while realizing switching at runtime interface, moreover it is possible to carry
Rise user's experience for interface switching.
With reference to Fig. 1, it is shown that the flow chart of the embodiment of the method at a kind of switching at runtime of the application interface,
The present embodiment may comprise steps of:
Step 101: be pre-configured with the first attribute configuration file of the first display interface, and second shows
Showing the second attribute configuration file at interface, described attribute configuration file is for representing the aobvious of display interface
Show attribute.
In the embodiment of the present application, the first display interface and the second display interface before and after corresponding switching come
Say, it is only necessary to the attribute configuration file of pre-configured the two display interface can realize dynamically cutting
Change.Wherein, the first display interface and the second display interface are in same computer software, are in
The different display pages under software difference running status, such as from the point of view of prosperous for Ali software, when
After user logins successfully, if clicking on login user is buyer user, then a corresponding " buyer
The version page ", and if user is seller user, then corresponding one " seller's version page ", if together
One user needs to switch to " seller's version page " from " buyer's version page ", then " buyer's version page
Face " it is exactly the first display interface in the embodiment of the present application, and " seller's version page " is exactly this Shen
Please the second display interface in embodiment.
Perform from the first display interface to the handover operation of the second display interface time, the first display interface
The first attribute configuration file and the second attribute configuration file of the second display interface join the most in advance
Put, but it should be noted that the first attribute configuration file and the second attribute configuration file have been joined
After having put, because user the most just switches to the second display circle from the first display interface
Face, so without performing step 102 and follow-up switching flow at once.
Wherein, attribute configuration file is used for representing the display properties of corresponding display interface, is i.e. display
The attribute of all controls in interface, such as, the length of a button control and elevation information, with
And this button control is at the positional information etc. of display interface.This attribute configuration file can use XML
(extensible markup language, Extensible Markup Language) file realizes, and concrete root
The operation drawing display interface according to attribute configuration file can be realized by bottom widget library.So exist
After having configured the first attribute configuration file and the second attribute configuration file, the two can be belonged to
The store path of property configuration file is registered in bottom widget library, follow-up can depend on when needs call
Attribute configuration file is found according to store path.When implementing, can by the mark of display interface with
Store path preserves one to one, thus can determine with target display interface only when switching
One store path of one correspondence.
Step 102: switch to the second display interface when receiving the first display interface from current presentation
Switching command time, obtain the second attribute configuration file of described second display interface.
Wherein, the first display interface and the second display interface mentioned in the embodiment of the present application are positioned at same
In individual window, it is i.e. to realize first under the current window when user opens some computer software
Display interface is to the switching at runtime of the second display interface.This step in actual applications, need to receive
The first display interface from current presentation to user's triggering switches to the switching of the second display interface and refers to
Performing when making, this switching command is it is to be understood that user's current display interface is " buyer's version page "
Time, click link or the button etc. of " seller's version page ", have issued to bottom widget library needs
The order that " seller's version page " carries out showing is switched to from currently displaying " buyer's version page ".
Certainly, in actual application scenarios, it would however also be possible to employ other modes trigger first from current presentation
Display interface switches to the switching command of the second display interface.
With reference to Fig. 2, for the flow chart of step 102, wherein, the of described second display interface is obtained
The step of two attribute configuration files, specifically may include that
Step 201: obtain the storage road of described second attribute configuration file according to described switching command
Footpath;
Because it is i.e. the second display interface that switching command contains target display interface, then, reality should
Just can get be already registered for according to the mark of the second display interface with middle bottom widget library
The store path of two attribute configuration files;
Step 202: read described second attribute configuration from the memory space that described store path indicates
File.
Bottom widget library reads the second attribute configuration literary composition again from the memory space of store path instruction
Part.
It is then returned to Fig. 1, in step 103: according to described second attribute configuration file and described the
Difference between the display properties of one attribute configuration file, loads described second display interface.
Wherein, what the second attribute configuration file reflected is the display control property of the second display interface, the
One attribute configuration file reflection is the display control property of the first display interface, then just can be by
In both of these documents, the display control of configuration is compared one by one, thus records the according to comparison result
Two display interfaces.
With reference to shown in Fig. 3, for the flow chart of step 103, specifically may include that when implementing
Step 301: obtain in described second attribute configuration file the second display interface all of configuration
Display control is as the second display control queue, and obtains all display controls of the first display interface
Part is as the first display control queue;
Because being the most configured in the second display interface and should wrap in the second attribute configuration file
Include which control and write the attribute of control, such as, the information such as the display position of control and size,
So when the difference of comparison the second attribute configuration file and the first attribute configuration file, needing first to obtain
Get all display controls of the second display interface configured in the second attribute configuration file as second
Display control queue, and all display controls of the first display interface are as the first display control team
Row.
Step 302: show control according in described first display control queue and the second display control queue
The attribute difference of part, generates described second display interface.
Because the first display interface and the second display interface are different display interfaces, so the first display
Display control in control queue and the second display control queue certainly exists attribute difference, such as,
Display control in first display control queue does not exists in the second display control queue, or the
Although the display control in a display control queue exists in the second display control queue, but belongs to
Property there occurs change, etc., this step be i.e. according in two queues display control difference
Generate the second display interface.
With reference to Fig. 4, for the flow chart of step 302, step 302 specifically may include that when implementing
Step 401: judge that whether the display control in described second display control queue is described successively
First display control queue exists, if it is, enter step 402;If it is not, then enter step
Rapid 403;
In the present embodiment, first comparison second shows that whether the display control in control is in the first display control
Part queue exists, if it is present illustrate that this display control may be at the second attribute configuration file
In display properties there occurs change, it is of course also possible to be not changed in, now no matter either with or without change
Change can reload this display control to realize switching;
Step 402: replace described first with the attribute of the display control in this second display control queue
The attribute of display control corresponding in display control queue;
If a control before the handover after two display interfaces in all exist, then then by it
In two attribute configuration files, the attribute of configuration replaces the attribute of configuration in the first attribute configuration file,
It is i.e. to realize display control to update from the first display interface to the display of the second display interface;
Step 403: be loaded directly into the attribute of described display control;
If a display control does not has in the first display interface and has in the second display interface, that
Explanation is the control newly increased in the second display interface, then can be loaded directly into this display
The attribute of control;
Step 404: if the display control in the first display control queue shows control described second
Queue does not exists, then unloads the display control in this first display control queue and attribute thereof;
Judge that whether the display control in the first display control queue is described second the most again
Display control queue exists, if it does not, not this control in explanation the second display interface,
Then need to unload the display control in this first display control queue and attribute thereof.
It should be noted that show control in the first display control queue and the second display control queue
Comparison process in, first comparison first shows all display controls in control queue, then comparison the
Display control in two display control queues, or, first comparison second shows showing in control queue
Show control, then comparison first shows all display controls in control queue, or, two queues
In display control compare at random, can the mode of choosing any one kind of them perform in the specific implementation,
Only the display control all comparisons in two queues need to be completed, is i.e. before step 405
The order of step 401~step 404 can be from main modulation, the description being not limited in the present embodiment
Sequentially.
Step 405: when the described second display control showing control queue and the first display control queue
When comparison is complete, the display control needed for combining the second display interface is to generate the second display interface.
When: when described second shows that the display control comparison of control queue and the first display control queue is complete
Bi Shi, combines the display control needed for those second display interfaces, and concrete can be by bottom control
Storehouse is drawn for the display control needed for the second display interface, shows with second after generating switching
Show interface.
It is then returned to the embodiment of Fig. 1, at step 104: by the first display interface of current presentation
Described second display interface is switched to be shown.
After the second display interface is completed, the current window that user opens is shown the second display
Interface, to realize switching to described second display interface to carry out the first display interface of current presentation
The purpose shown.
Use the embodiment of the present application, because attribute configuration file is pre-configured, switch again
Time be loaded directly into attribute configuration file, be no need for first closing one and create another interface again,
Also the performance of computer system would not be affected because of the repeatable operation for interface, further
Also improve the pause sense of changing interface existence thus improve Consumer's Experience.Meanwhile, the most no longer need
GUI code is wanted to realize changing interface, it is to avoid to safeguard that these baroque codes cause into
This high result.
Further, the realization of changing interface, actually made in same window by bottom widget library
Switching, so the resource occupation for computer system is less, and changing interface performance also ratio is existing
There is technology more superior.
In the embodiment of the present application, display interface is positioned at user's visible upper interface presentation layer, and real
The bottom widget library executing technical scheme is then that user is sightless, with reference to Fig. 5, it is shown that display interface
Exploitation and the relation of bottom widget library.
For aforesaid embodiment of the method, in order to be briefly described, therefore it is all expressed as a series of
Combination of actions, but those skilled in the art should know, and the application is not by described action
The restriction of order, because according to the application, some step can use other orders or enter simultaneously
OK.Secondly, those skilled in the art also should know, embodiment described in this description all belongs to
In preferred embodiment, necessary to involved action and module not necessarily the application.
The method that the embodiment of the method at switching at runtime interface a kind of with above-mentioned the application is provided is relative
Should, see Fig. 6, present invention also provides the device embodiment at a kind of switching at runtime interface, in this reality
Executing in example, this device may include that
Configuration module 600, for being pre-configured with the first attribute configuration file of the first display interface, with
And the second second attribute configuration file of display interface, described attribute configuration file is used for representing display
The display properties at interface.
Acquisition module 601, switches to second for receiving the first display interface from current presentation
During the switching command of display interface, obtain the second attribute configuration file of described second display interface.
Wherein, described first display interface and the second display interface are positioned in same window.
With reference to the structured flowchart that Fig. 7, Fig. 7 are acquisition module 601, specifically may include that
Second obtains submodule 701, for obtaining described second attribute configuration according to described switching command
The store path of file;
Reading submodule 702, for reading described the from the memory space that described store path indicates
Two attribute configuration files.
Load-on module 602, for according to described second attribute configuration file and described first attribute configuration
Difference between the display control of file, loads described second display interface.
With reference to the structured flowchart that Fig. 8, Fig. 8 are load-on module 602, specifically may include that
First obtains submodule 801, for obtaining second configured in described second attribute configuration file
All display controls of display interface are as the second display control queue, and obtain the first display circle
All display controls in face are as the first display control queue;
Generate submodule 802, for according to described first display control queue and the second display control team
Row show the comparison in difference result of control, generates described second display interface.
With reference to Fig. 9, for generating the structured flowchart of submodule 702, specifically may include that
Judge submodule 901, for judging the display control in described second display control queue successively
Whether show existence in control queue described first;
Replace submodule 902, in the case of in the described result judging submodule as being, should
It is right that the attribute of the display control in the second display control queue is replaced in described first display control queue
The attribute of the display control answered;
Load submodule 903, be used in the case of the result of described judgement submodule is no, directly
Load the attribute of described currently displaying control;
Unloading submodule 904, if the display control being applied in the first display control queue is described
Second display control queue in do not exist, unload this first display control queue in display control and
Its attribute;
Combination submodule 905, for when described second display control queue and the first display control queue
Comparison complete time, the display control needed for combining the second display interface is to generate the second display interface.
Handover module 603, for switching to described second display by the first display interface of current presentation
Interface is shown.
Use the embodiment of the present application, because attribute configuration file is pre-configured, switch again
Time be loaded directly into attribute configuration file, be no need for first closing one and create another interface again,
Also the performance of computer system would not be affected because of the repeatable operation for interface, further
Also improve the pause sense of changing interface existence thus improve Consumer's Experience.Meanwhile, the most no longer need
GUI code is wanted to realize changing interface, it is to avoid to safeguard that these baroque codes cause into
This high result.
Further, the realization of changing interface, actually made in same window by bottom widget library
Switching, so the resource occupation for computer system is less, and changing interface performance also ratio is existing
There is technology more superior.
It should be noted that each embodiment in this specification all uses the mode gone forward one by one to describe,
What each embodiment stressed is the difference with other embodiments, between each embodiment
Identical similar part sees mutually.For device class embodiment, due to itself and method
Embodiment basic simlarity, so describe is fairly simple, relevant part sees the portion of embodiment of the method
Defend oneself bright.
Finally, in addition it is also necessary to explanation, in this article, the relation of such as first and second or the like
Term is used merely to separate an entity or operation with another entity or operating space, and not
Necessarily require or imply and there is the relation of any this reality or suitable between these entities or operation
Sequence.And, term " includes ", " comprising " or its any other variant are intended to non-exclusive
Comprising, so that include the process of a series of key element, method, article or equipment not only of property
Including those key elements, but also include other key elements being not expressly set out, or also include for
The key element that this process, method, article or equipment are intrinsic.In the situation not having more restriction
Under, statement " including ... " key element limited, it is not excluded that including described key element
Process, method, article or equipment there is also other identical element.
Above the method and apparatus at a kind of switching at runtime interface provided herein is carried out in detail
Introducing, principle and the embodiment of the application are set forth by specific case used herein,
The explanation of above example is only intended to help and understands the present processes and core concept thereof;Meanwhile,
For one of ordinary skill in the art, according to the thought of the application, in detailed description of the invention and should
All will change with in scope, in sum, this specification content should not be construed as this Shen
Restriction please.
Claims (8)
1. the method at a switching at runtime interface, it is characterised in that be pre-configured with the first display interface
The first attribute configuration file, and the second attribute configuration file of the second display interface, described genus
Property configuration file for representing the display properties of display interface, the display properties of described display interface is:
The attribute of all controls in described display interface;The method includes:
When the switching receiving the first display interface from current presentation and switching to the second display interface refers to
When making, obtain the second attribute configuration file of described second display interface;
According to described second attribute configuration file and described first attribute configuration file display properties it
Between difference, load described second display interface;Described according to described second attribute configuration file with
Difference between the display properties of described first attribute configuration file, loads described second display interface,
Including: obtain all display controls of the second display interface of configuration in described second attribute configuration file
Part is as the second display control queue, and obtains all display control conducts of the first display interface
First display control queue;According in described first display control queue and the second display control queue
The attribute difference of display control, generates described second display interface;
Described second display interface is switched to be shown the first display interface of current presentation.
Method the most according to claim 1, it is characterised in that according to described first display control
Part queue and the second display control queue show the attribute difference of control, generates described second display
Interface, including:
Judge whether the display control in described second display control queue shows described first successively
In control queue exist, if it is, with this second display control queue in show control genus
Property replace the attribute of display control corresponding in described first display control queue, if it is not, then directly
Connect the attribute loading described currently displaying control;
If the display control in the first display control queue shows in control queue not described second
Exist, then unload the display control in this first display control queue and attribute thereof;
Diversity ratio when the described second display properties showing control queue and the first display control queue
To time complete, the display control needed for combining the second display interface is to generate the second display interface.
Method the most according to claim 1, it is characterised in that described acquisition described second shows
Show the second attribute configuration file at interface, including:
The store path of described second attribute configuration file is obtained according to described switching command;
Described second attribute configuration file is read from the memory space that described store path indicates.
4. according to the method described in any one of claims 1 to 3, it is characterised in that described first shows
Show that interface and the second display interface are positioned in same window.
5. the device at a switching at runtime interface, it is characterised in that this device includes:
Configuration module, for being pre-configured with the first attribute configuration file of the first display interface, Yi Ji
Second attribute configuration file of two display interfaces, described attribute configuration file is used for representing display interface
Display properties;
Acquisition module, switches to the second display for receiving the first display interface from current presentation
During the switching command at interface, obtain the second attribute configuration file of described second display interface;
Load-on module, for according to described second attribute configuration file and described first attribute configuration file
Display properties between difference, load described second display interface;Described load-on module includes:
First obtains submodule, for obtaining the second display circle of configuration in described second attribute configuration file
All display controls in face are as the second display control queue, and obtain the institute of the first display interface
There is display control as the first display control queue;Generate submodule, for showing according to described first
Show the attribute difference showing control in control queue and the second display control queue, generate described second
Display interface;
Handover module, for switching to described second display interface by the first display interface of current presentation
It is shown.
Device the most according to claim 5, it is characterised in that described generation submodule includes:
Judge submodule, for whether judging the described second display control showing in control queue successively
Show in control queue described first and exist;
Replace submodule, in the case of in the described result judging submodule as being, with this second
The attribute of the display control in display control queue replaces correspondence in described first display control queue
The attribute of display control;
Load submodule, in the case of the result of described judgement submodule is no, be loaded directly into
The attribute of described currently displaying control;
Unloading submodule, if the display control being applied in the first display control queue is described second
Display control queue does not exists, unloads the display control in this first display control queue and genus thereof
Property;
Combination submodule, for showing the ratio of control queue and the first display control queue when described second
To time complete, the display control needed for combining the second display interface is to generate the second display interface.
Device the most according to claim 5, it is characterised in that described acquisition module includes:
Second obtains submodule, for obtaining described second attribute configuration file according to described switching command
Store path;
Reading submodule, belongs to for reading described second from the memory space that described store path indicates
Property configuration file.
8. according to the device described in any one of claim 5~7, it is characterised in that described first shows
Show that interface and the second display interface are positioned in same window.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201210442067.1A CN103809864B (en) | 2012-11-07 | 2012-11-07 | A kind of method and apparatus at switching at runtime interface |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201210442067.1A CN103809864B (en) | 2012-11-07 | 2012-11-07 | A kind of method and apparatus at switching at runtime interface |
Publications (2)
Publication Number | Publication Date |
---|---|
CN103809864A CN103809864A (en) | 2014-05-21 |
CN103809864B true CN103809864B (en) | 2016-12-21 |
Family
ID=50706725
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201210442067.1A Active CN103809864B (en) | 2012-11-07 | 2012-11-07 | A kind of method and apparatus at switching at runtime interface |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN103809864B (en) |
Families Citing this family (13)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106648715B (en) * | 2015-10-29 | 2020-11-27 | 阿里巴巴集团控股有限公司 | Method and system for loading popup control |
CN106874312B (en) * | 2015-12-14 | 2020-04-10 | 北京奇虎科技有限公司 | User interface acquisition method and device |
CN107193844B (en) * | 2016-03-15 | 2021-03-26 | 菜鸟智能物流控股有限公司 | Interface activation method and device |
CN106843784B (en) * | 2017-01-19 | 2021-01-22 | 沃民高新科技(北京)股份有限公司 | Method and device for displaying data |
CN109426532B (en) * | 2017-08-22 | 2021-08-20 | 腾讯科技(深圳)有限公司 | Method and device for linking pages in android system and electronic equipment |
CN108037969A (en) * | 2017-12-07 | 2018-05-15 | 深圳乐信软件技术有限公司 | A kind of interface jump method, device, terminal and storage medium |
CN108701044B (en) * | 2018-04-25 | 2021-11-12 | 深圳市元征软件开发有限公司 | Interface switching method, system, equipment and computer readable storage medium |
CN108845774A (en) * | 2018-05-29 | 2018-11-20 | 努比亚技术有限公司 | A kind of interface display method, terminal and computer readable storage medium |
CN109144507B (en) * | 2018-07-17 | 2022-02-08 | 北京奇艺世纪科技有限公司 | Page switching method and device |
CN109614136A (en) * | 2018-11-26 | 2019-04-12 | 郑州云海信息技术有限公司 | The management method and device of webpage configuration information |
CN109783176B (en) * | 2019-01-17 | 2022-02-22 | 广州酷狗计算机科技有限公司 | Page switching method and device |
CN113687904B (en) * | 2021-10-26 | 2022-02-08 | 成都中科合迅科技有限公司 | Interface dynamic generation method based on configuration file |
CN114090125A (en) * | 2021-11-23 | 2022-02-25 | 金蝶软件(中国)有限公司 | Interface configuration method and related equipment |
Family Cites Families (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
TW200723078A (en) * | 2005-12-05 | 2007-06-16 | Inventec Corp | Interface display system and method |
CN101533350B (en) * | 2009-04-03 | 2011-10-26 | 深圳市宝捷信科技有限公司 | Quick switching method for pages, device and injection molding machine system |
CN102426517B (en) * | 2010-12-17 | 2013-09-18 | 百度在线网络技术(北京)有限公司 | Method and equipment for executing tool module in first page container |
CN102799421A (en) * | 2011-05-25 | 2012-11-28 | 腾讯科技(深圳)有限公司 | Multi-view switching system and method |
CN103473086A (en) * | 2013-08-29 | 2013-12-25 | 上海斐讯数据通信技术有限公司 | ADSL modem web interface switching method |
-
2012
- 2012-11-07 CN CN201210442067.1A patent/CN103809864B/en active Active
Also Published As
Publication number | Publication date |
---|---|
CN103809864A (en) | 2014-05-21 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN103809864B (en) | A kind of method and apparatus at switching at runtime interface | |
US9727300B2 (en) | Identifying the positioning in a multiple display grid | |
US9805114B2 (en) | Composable selection model through reusable component | |
US10831331B2 (en) | Window control for simultaneously running applications | |
US10452231B2 (en) | Usability improvements for visual interfaces | |
US9563333B2 (en) | Controlling computer-based instances | |
US20170010673A1 (en) | Gesture based sharing of user interface portion | |
US9703770B2 (en) | Automated validation of the appearance of graphical user interfaces | |
US20180027019A1 (en) | Privacy-preserving user-experience monitoring | |
US9710129B2 (en) | Displaying user activity in real-time collaborative editing systems | |
US11042390B2 (en) | Replaying operations on widgets in a graphical user interface | |
US20170010775A1 (en) | Usability analysis for user interface based systems | |
US11175804B2 (en) | Deploying user interface elements on a screen | |
CN114527897A (en) | Tracking and restoring pointer locations between applications | |
US9367223B2 (en) | Using a scroll bar in a multiple panel user interface | |
US9367430B1 (en) | Decomposing application topology data into transaction tracking data | |
CN107562852B (en) | Method, medium, device and computing equipment for displaying page in browser | |
US10223089B1 (en) | Partial redundancy elimination with a fixed number of temporaries | |
CN108182577A (en) | A kind of method, apparatus and equipment for showing payment information | |
US9600161B2 (en) | Generating and displaying a specific area | |
US20180067960A1 (en) | Z/os smf record navigation visualization tooling | |
CN107589892B (en) | Interaction method, system, equipment and storage medium for pull-down expansion of menu | |
US20190325102A1 (en) | Circuit generation based on zero wire load assertions | |
US20170371732A1 (en) | Method for debugging static memory corruption | |
US20240126577A1 (en) | Visualization of application capabilities |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C14 | Grant of patent or utility model | ||
GR01 | Patent grant |