CN101504607A - Window state manager and method, window management system and method - Google Patents

Window state manager and method, window management system and method Download PDF

Info

Publication number
CN101504607A
CN101504607A CN 200910048041 CN200910048041A CN101504607A CN 101504607 A CN101504607 A CN 101504607A CN 200910048041 CN200910048041 CN 200910048041 CN 200910048041 A CN200910048041 A CN 200910048041A CN 101504607 A CN101504607 A CN 101504607A
Authority
CN
China
Prior art keywords
window
state
attribute
focus place
core logic
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.)
Pending
Application number
CN 200910048041
Other languages
Chinese (zh)
Inventor
董琦
刘岚
殷昊
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Huaya Microelectronics Shanghai Inc
Original Assignee
Huaya Microelectronics Shanghai Inc
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Huaya Microelectronics Shanghai Inc filed Critical Huaya Microelectronics Shanghai Inc
Priority to CN 200910048041 priority Critical patent/CN101504607A/en
Publication of CN101504607A publication Critical patent/CN101504607A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • User Interface Of Digital Computer (AREA)

Abstract

The invention relates to a window state manager and a method, a window management system and a method. The window state manager comprises a recording unit, a system attribute management unit and a control unit, wherein the recording unit is used for inquiring and acquiring a window state of a window where a new focus is positioned; the system attribute management unit is used for storing a window state of a window where a current focus is positioned and storing state conversion functions required by various state conversions; and the control unit calls and executes state conversion functions required by the conversion of the two window states from the system attribute management unit according to the window state of the window where the new focus is positioned acquired from the recording unit and the window state of the window where the current focus is positioned acquired from the system attribute management unit. The window state manager and the method, and the window management system and the method have compact function realization; and the system attribute management unit can be multiplexed by different projects so as to save manpower, quicken software development speed, and also prevent the miss of window attribute state conversion during window switching.

Description

Window state manager and method, window management system and method
Technical field
The present invention relates to window state manager and method, window management system and method.
Background technology
Flourish along with software industry, software systems become and become increasingly complex.In order to offer a close friend's of software users operation interface, in the performance history of software, just need provide patterned user interface.
And in patterned user interface, what often relate to is exactly the operation of application window.For realizing the various functions of software, usually need to open various application windows, realize feature operation by application window.And in the time need not using corresponding function, then need close the respective application window.Therefore, in the performance history of software, just need design application corresponding window management system.For example, in application number is 00816055.4 Chinese patent application, disclose a kind of window system, described a kind of method that shows a window on a screen, wherein this window has a background by its visible underlaid object.This Chinese patent application has also been described when drawing in a window in addition, and management is positioned at the method for the window below such window.
Because in operation for application window; usually can relate to the various state exchanges of single application window; and the switching between a plurality of application windows with different windows state; thereby in the management of window; usually need to consider the state exchange between current focus place window and the next focus place window; that is to say, need the context relation between each window of consideration.Herein, focus place window is meant that window that is in active state in all windows, and at this moment all user's operations are all preferentially by this window treatments.
And at present for realizing window management, common way is the state that the window that makes each will become the focus place all obtains current focus place window, and the state transition function that is adopted according to the state decision of the state of current focus place window and window own.
Yet the method for this kind window management is for window itself, and which kind of state transition function the state that also needs to pay close attention to other windows to determine to adopt, and is therefore complicated on function realizes.And when window switches, may also can omit the switching of some window attributes, cause window to switch and mistake occurs.
Summary of the invention
The problem to be solved in the present invention be in the prior art software to using the management of window, its implementation is complicated, and the problem of easily makeing mistakes.
For addressing the above problem, the invention provides a kind of window state manager, comprising:
Record cell is used to inquire about and obtain the Window state of new focus place window;
System attribute management unit is used to store the Window state of current focus place window and stores the required state transition function of various state exchanges;
Control module, the Window state of the current focus place window that obtains according to the Window state of the new focus place window that obtains from record cell and from system attribute management unit calls and carries out the required state transition function of described two Window states conversion from system attribute management unit.
Correspondingly, the present invention also provides a kind of window management system that comprises described window state manager.
The present invention also provides a kind of Window state management method, comprising:
Inquire about and obtain the Window state of the application window at new focus place;
Obtain the Window state of current focus place application window;
Call and carry out two the required state transition functions of Window state conversion that obtain.
Correspondingly, the present invention also provides a kind of window management method that comprises described Window state management method.
Compared with prior art, above-mentioned window state manager and method, window management system and method have the following advantages: concerning window itself, need not to pay close attention to the state of other windows, only need the state of statement oneself.And in the system attribute management unit, then store the required state transition function of various state exchanges.Then after control module has obtained the Window state of current focus and new focus place window, just can call and carry out corresponding state transition function, switch to finish window.In this state conversion process, each window need not to participate in transfer process, thereby more succinct on function realizes.
In addition, system attribute management unit can be multiplexing by disparity items, thereby save manpower, accelerates software development speed.
Description of drawings
Fig. 1 is a kind of embodiment synoptic diagram of window state manager of the present invention;
Fig. 2 is that system attribute management unit and control module concern synoptic diagram in the window state manager shown in Figure 1;
Fig. 3 is a kind of embodiment synoptic diagram of Window state management method of the present invention;
Fig. 4 is the schematic flow sheet that calls executing state transfer function step in the method shown in Figure 3.
Embodiment
With reference to shown in Figure 1, a kind of embodiment of window state manager of the present invention comprises:
Record cell 10 is used to inquire about and obtain the Window state of new focus place window;
System attribute management unit 20 is used to store the Window state of current focus place window and stores the required state transition function of various state exchanges;
Control module 30, the Window state of the current focus place window that obtains according to the Window state of the new focus place window that obtains from record cell 10 and from system attribute management unit 20 calls and carries out the required state transition function of described two Window states conversion from system attribute management unit 20.
The Window state of the new focus place window of described record cell 10 records is the state of window attribute, and the Window state of the current focus place window of described system attribute management unit 20 storages is the state of window attribute.The various states of the attribute of described window and every kind of attribute can be pre-defined.
Described system attribute management unit 20 comprises some core logic units, each core logic unit is controlled a kind of window attribute, stores the current state of respective window attribute and the required state transition function of various state exchanges of this window attribute in the described core logic unit.
Below give an example, further specify above-mentioned application window management system by the specific implementation process of window management.
Suppose that current focus place window is window A, and window B is a new focus place window, then the Window state of window B can be inquired about and obtain to record cell 10, and send to control module 30.And store the Window state of window A in the system attribute management unit 20.
Control module 30 then can obtain the Window state of window A from system attribute management unit 20.Wherein, the Window state of window A and window B can be stated by the Window state function is set.Then all Window state functions lump together the Window state that just can represent each window, suppose that the Window state of window A and window B is as shown in table 1:
Table 1
Figure A200910048041D00071
In the above-mentioned table 1, window A and window B each have 3 window attributes: attribute 1, attribute 2, attribute 3, and each window attribute has two states: state 1 and state 2.
Control module 30 has just obtained the corresponding state of the various attributes of window A by obtaining the window state information of example each window as shown in table 1, and the corresponding state of the various attributes of window B.
Then according to the Window state shown in the table 1, when focus place window when window A switches to window B, the state of attribute 1 is transformed into state 2 from state 1, the state of attribute 2 is constant, and the state of attribute 3 is transformed into state 1 from state 2.
Then control module 30 will obtain the core logic unit of each window attribute correspondence from system attribute management unit 20.This process can realize according to the mapping relations of window attribute and core logic unit.And described mapping relations can realize by the function of the core logic unit that for example window attribute is set and relied on.
For example, with reference to shown in Figure 2, suppose that system attribute management unit 20 comprises N core logic unit: core logic module 1, core logic module 2, core logic module 3...... core logic module N.Wherein, core logic module 1 is according to mapping relations controlled attribute 1, and core logic module 2 is according to mapping relations controlled attribute 2, and core logic module 3 is according to mapping relations controlled attribute 3.
Then the window A that obtains in conjunction with above-mentioned table 1 is in the handoff procedure of window B, need carry out the window attribute of state exchange, control module 30 will call corresponding state transition function in core logic unit 1 and the core logic module 2 from system attribute management unit 20.
For example, control module 30 calls from core logic unit 1 and is used for attribute 1 is transformed into the state transition function 1 of state 2 from state 1, calls the state transition function 3 that is used for attribute 3 is transformed into from state 2 state 1 from core logic module 3.After control module 30 obtains these state transition functions, will carry out these state transition functions.
After control module 30 calls and carried out state transition function 1 and state transition function 3, also be equivalent to finish the state exchange that window A switches to the related window attribute of window B in fact.And the Window state of storing in the corresponding core logical block this moment also is the Window state of window B correspondence.For example, the state of the attribute 1 of storage is a state 2 in the core logic unit 1, and the state of the attribute 3 of storage is a state 1 in the core logic unit 3, and the state of the attribute 2 of storage is constant in the core logic unit 2, is still state 2.
According to the above description as can be known, above-mentioned application window management system need not to pay close attention to the state of other windows concerning window itself, only needs the state of statement oneself.The conversion of switching related Window state between the window then can be transferred to control module and finish.Thereby it is more succinct on function realizes.
In addition, when above-mentioned application window management system can also prevent that window from switching, the omission of window attribute state exchange appears, the window attribute state exchange is that the state transition function that directly calls near the window realizes that above-mentioned application window management system then can guarantee can not omit by instrument on prior art.Being transverse axis with the window attribute for example, is the longitudinal axis with the window, can make up the window attribute table of for example above-mentioned table 1 at an easy rate, data in this table can be filled in and manage by instrument, if when window switches, omitted a certain in the window attribute table, instrument can be checked out.
With reference to shown in Figure 3, a kind of embodiment of Window state management method of the present invention comprises:
Step s1 inquires about and obtains the Window state of the application window at new focus place;
Step s2 obtains the Window state of current focus place application window;
Step s3 calls and carries out two the required state transition functions of Window state conversion that obtain.
Wherein, the described Window state that obtains two application windows of current focus and new focus place is the state that obtains the window attribute of described two application windows.
Wherein, with reference to shown in Figure 4, call and carry out two Window states that obtain and change pairing state transition function and comprise the following steps:
Step s31, according to the Window state of described two application windows, acquisition need be carried out the window attribute of state exchange;
Step s32, according to the mapping relations of window attribute and core logic unit, acquisition need be carried out the core logic unit of the window attribute correspondence of state exchange;
Step s33 calls and carries out corresponding state transition function from the core logic unit that obtains.
Wherein, the Window state of current focus and new focus place window can be stated by the Window state function is set.
Wherein, described mapping relations can realize by the function of the core logic unit that for example window attribute is set and relied on.
Wherein, after calling and having carried out state transition function, the state of the window attribute of current focus place window is just replaced by the state of the window attribute of new focus place window.
The explanation of switching about concrete window can just repeat no more with reference to the illustrating of above-mentioned application management system herein.
Though the present invention discloses as above with preferred embodiment, the present invention is defined in this.Any those skilled in the art without departing from the spirit and scope of the present invention, all can do various changes and modification, so protection scope of the present invention should be as the criterion with claim institute restricted portion.

Claims (10)

1. a window state manager is characterized in that, comprising:
Record cell is used to inquire about and obtain the Window state of new focus place window;
System attribute management unit is used to store the Window state of current focus place window and stores the required state transition function of various state exchanges;
Control module, the Window state of the current focus place window that obtains according to the Window state of the new focus place window that obtains from record cell and from system attribute management unit calls and carries out the required state transition function of described two Window states conversion from system attribute management unit.
2. window state manager as claimed in claim 1 is characterized in that, described Window state is the state of each window attribute of window.
3. window state manager as claimed in claim 2, it is characterized in that, described system attribute management unit comprises some core logic units, each core logic unit is controlled a kind of window attribute, stores the current state of respective window attribute and the required state transition function of various state exchanges of this window attribute in the described core logic unit.
4. window state manager as claimed in claim 3 is characterized in that described core logic unit is controlled described window attribute according to the mapping relations of core logic unit and window attribute.
5. window management system that comprises each described window state manager of claim 1 to 4.
6. a Window state management method is characterized in that, described method of state management comprises:
Inquire about and obtain the Window state of the application window at new focus place;
Obtain the Window state of current focus place application window;
Call and carry out two the required state transition functions of Window state conversion that obtain.
7. Window state management method as claimed in claim 5 is characterized in that, the described Window state that obtains two application windows of current focus and new focus place is the state that obtains the window attribute of described two application windows.
8. Window state management method as claimed in claim 5 is characterized in that, calls and carries out two the required state transition functions of Window state conversion that obtain and comprise:
According to the Window state of described two application windows, acquisition need be carried out the window attribute of state exchange;
According to the mapping relations of window attribute and core logic unit, acquisition need be carried out the core logic unit of the window attribute correspondence of state exchange;
From the core logic unit that obtains, call and carry out corresponding state transition function.
9. Window state management method as claimed in claim 5 is characterized in that, the Window state of described current focus place window and new focus place window is stated by the Window state function is set.
10. window management method that comprises each described Window state management method of claim 6 to 9.
CN 200910048041 2009-03-20 2009-03-20 Window state manager and method, window management system and method Pending CN101504607A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN 200910048041 CN101504607A (en) 2009-03-20 2009-03-20 Window state manager and method, window management system and method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN 200910048041 CN101504607A (en) 2009-03-20 2009-03-20 Window state manager and method, window management system and method

Publications (1)

Publication Number Publication Date
CN101504607A true CN101504607A (en) 2009-08-12

Family

ID=40976862

Family Applications (1)

Application Number Title Priority Date Filing Date
CN 200910048041 Pending CN101504607A (en) 2009-03-20 2009-03-20 Window state manager and method, window management system and method

Country Status (1)

Country Link
CN (1) CN101504607A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101882432B (en) * 2010-02-01 2012-07-04 深圳市同洲电子股份有限公司 Focus element display method, device and digital television receiving terminal
CN103116441A (en) * 2013-01-28 2013-05-22 广东威创视讯科技股份有限公司 Window switching method and device
CN106126217A (en) * 2016-06-17 2016-11-16 武汉深之度科技有限公司 A kind of apply the information getting method of window, device and calculating equipment
CN110987742A (en) * 2019-11-26 2020-04-10 倪世章 Method and device for controlling and detecting content of suspended matter in sewage treatment and computer equipment

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101882432B (en) * 2010-02-01 2012-07-04 深圳市同洲电子股份有限公司 Focus element display method, device and digital television receiving terminal
CN103116441A (en) * 2013-01-28 2013-05-22 广东威创视讯科技股份有限公司 Window switching method and device
CN103116441B (en) * 2013-01-28 2016-06-29 广东威创视讯科技股份有限公司 A kind of windows switching method and device
CN106126217A (en) * 2016-06-17 2016-11-16 武汉深之度科技有限公司 A kind of apply the information getting method of window, device and calculating equipment
CN106126217B (en) * 2016-06-17 2019-03-15 武汉深之度科技有限公司 A kind of information acquisition method of application widget, device and calculate equipment
CN110987742A (en) * 2019-11-26 2020-04-10 倪世章 Method and device for controlling and detecting content of suspended matter in sewage treatment and computer equipment

Similar Documents

Publication Publication Date Title
CN1942854B (en) Screen transition control device and method
CN103200247B (en) A kind of data download method and PC download client
CN109862196A (en) A kind of online customer service remote interaction method and system
CN101504607A (en) Window state manager and method, window management system and method
CN105069059A (en) Database synchronization method and apparatus
CN101815012B (en) Method and device for acquiring performance data
CN113326083A (en) State machine processing method, state processing device, electronic equipment and storage medium
CN102737061B (en) Distributed ticket query management system and method
CN102088635A (en) Method for recording historic search keywords in network television
CN105843576B (en) A kind of combination windows switching method and device
CN102375668B (en) Window management method and device for mobile terminal
CN1963821A (en) Method, system and apparatus to realize accessing to database
CN109542841A (en) The method and terminal device of data snapshot are created in cluster
CN103914286B (en) Management method and manager for tab page in user interface
CN104506948A (en) Message passing method and message passing system between middleware and user interfaces
CN115729164B (en) Industrial communication system management method and device and industrial communication system
CN108205559A (en) A kind of data managing method and its equipment
CN102394943B (en) Interface index establishment method and apparatus thereof, and interface information query method and apparatus thereof
CN110233944A (en) Method, system, electronic equipment and the medium of interactive voice response
CN102938806B (en) A kind of method and device obtaining call resource
CN103763615A (en) Interaction method and equipment for episode selection
CN102624959B (en) The inquiry of extension in wireless device, using method, inquiry and operative installations
CN104735097A (en) Information collecting method and system
CN101990224B (en) Method and system for updating performance index
CN110839101A (en) Calling strategy method based on blacklist

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C12 Rejection of a patent application after its publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20090812