Summary of the invention
In view of this, it is an object of the invention to propose a kind of method and device updating menu information, in order toRealize updating in the sightless state of user the information of menu, improve the fluency of operation.
A kind of method updating menu information provided based on the above-mentioned purpose present invention, comprises the following steps:
After software starts, obtain the background information prestored from background information storehouse, described background is believedBreath sends to foreground message storehouse, generates foreground fileinfo;
File menu at this software shows described foreground fileinfo;
After the webserver gets up-to-date fileinfo, replace described background information;
If detecting, described File menu is hidden, and sentences by detecting the renewal time of described foreground fileinfoWhether disconnected described foreground fileinfo is up-to-date fileinfo;If it is not, then by described background informationSend to described foreground message storehouse, replace original foreground fileinfo.
Optionally, described fileinfo includes that file is updated to the renewal time in current information storehouse, described fromAfter the webserver gets up-to-date fileinfo, replace the step of described background information, including:
Obtain the renewal time of background information;
Judge whether the renewal time of described background information is more than first with the difference of present system timeTime interval;The most then send file acquisition request to the webserver, receive the webserver returnedInterior fileinfo;
The fileinfo returned with the webserver replaces described background information.
Optionally, described to webserver transmission file acquisition request, receive in the webserver returnedThe step of fileinfo, including:
Send to the webserver and attempt obtaining request, the fileinfo in the webserver that reception returnsThe renewal time;
If the time that updates of the fileinfo in the webserver and the difference updating the time of background informationIt is worth and is spaced still greater than the very first time, then send to the webserver and confirm to obtain request, receive the network returnedFileinfo in server.
Optionally, whether described detection described foreground fileinfo is the step of up-to-date fileinfo, including:
Obtain the renewal time of foreground fileinfo;
If the renewal time of described foreground fileinfo is more than with the difference updating the time of background informationSecond time interval, then judge that described foreground fileinfo is not up-to-date fileinfo.
Optionally, method also includes:
If the first control instruction that user inputs being detected, detect whether described foreground fileinfo is up-to-dateFileinfo;If it is not, then by described background information send to foreground message storehouse, replace original beforePlatform fileinfo.
Optionally, described File menu at least two, each File menu arranges associated with it independentForeground message storehouse and background information storehouse;When one of them File menu shows on foreground, remaining paper menuIt is hidden;Described after the webserver gets up-to-date fileinfo, replace described background informationStep after, also include:
If detecting, the foreground fileinfo of arbitrary File menu is replaced by its backstage fileinfo, detects otherWhether the foreground fileinfo of the File menu being hidden is up-to-date fileinfo;If it is not, use otherThe foreground file letter of other File menus being hidden of background information updating of the File menu being hiddenBreath.
Optionally, also include:
Before software exits, obtain up-to-date fileinfo from the webserver, replace described background information.
A kind of device updating menu information provided based on the above-mentioned purpose present invention, including:
File menu module, at File menu display foreground fileinfo;
Foreground message storehouse, is used for storing foreground fileinfo;
Background information storehouse, is used for storing background information, is additionally operable to after device starts, after prestoringPlatform fileinfo sends to described foreground message storehouse, generates foreground fileinfo;
Update detection module, be used for detecting whether File menu is hidden;
Update judge module, for after detecting that File menu is hidden, by detecting described foreground fileThe renewal time of information judges whether described foreground fileinfo is up-to-date fileinfo;If it is not, then instituteState background information storehouse for sending described background information to described foreground message storehouse, replace original beforePlatform fileinfo;
Communication module, is used for and external network server communication, gets up-to-date file from the webserverAfter information, replace described background information.
Optionally, described fileinfo includes that file is updated to the renewal time in current information storehouse, described moreNew judge module is additionally operable to obtain the renewal time of background information, it is judged that described background information is moreWhether the difference of new time and present system time is spaced more than the very first time;The most described communication moduleFor sending file acquisition request to the webserver, receive the fileinfo in the webserver returned;Described background information is replaced for the fileinfo using the webserver to return in described background information storehouse.
Optionally, described communication module is additionally operable to send to the webserver attempt obtaining request, receives and returnsThe webserver in renewal time of fileinfo;Described renewal judge module is used for judging network serviceWhether the time that updates of the fileinfo in device and the difference updating the time of background information be more than firstTime interval;The most described communication module confirms to obtain request for sending to the webserver, receivesFileinfo in the webserver returned.
Optionally, described renewal judge module is additionally operable to obtain the renewal time of foreground fileinfo, it is judged that instituteWhether state the renewal time of foreground fileinfo and the difference updating the time of background information more than secondTime interval;The most then judge that described foreground fileinfo is not up-to-date fileinfo.
Optionally, also include inputting detection module;Described input detection module is for detecting the control of user's inputSystem instruction;If it is determined that described control instruction is the first control instruction, described renewal judge module is used for detecting instituteState whether foreground fileinfo is up-to-date fileinfo;If it is not, the most described background information storehouse is for by instituteState background information to send to foreground message storehouse, replace original foreground fileinfo.
Optionally, described File menu at least two, each File menu arranges associated with it independentForeground message storehouse and background information storehouse;When one of them File menu shows on foreground, remaining paper menuIt is hidden;
Described renewal detection module is additionally operable to whether detect the foreground fileinfo of arbitrary File menu by thereafterPlatform fileinfo is replaced;The most described renewal judge module detects the foreground of alternative document menu furtherWhether fileinfo is up-to-date fileinfo;If it is not, described background information storehouse uses alternative document menuIts foreground fileinfo of background information updating.
Optionally, before described device is closed, described communication module is additionally operable to obtain up-to-date from the webserverFileinfo, replaces described background information.
From the above it can be seen that a kind of method and device updating menu information that the present invention provides is passed throughThe mode of background update, it is possible to ensure the ageing of File menu, and to literary composition under the sightless state of userPart menu is updated, and can avoid the slow of vision that the operation refreshing menu in prior art brings and operationStagnant sense, lifting operation fluency.
Detailed description of the invention
For making the object, technical solutions and advantages of the present invention clearer, below in conjunction with specific embodiment,And referring to the drawings, the present invention is described in more detail.
First embodiment
The present embodiment provides a kind of method updating menu information.A kind of renewal dish that Fig. 1 provides for the present inventionThe overall flow schematic diagram of the first embodiment of the method for single information, as it can be seen, the method in the present embodiment,Comprise the following steps:
S10, after software starts, obtains the background information prestored, by described backstage from background information storehouseFileinfo sends to foreground message storehouse, generates foreground fileinfo.
Wherein, background information lab setting is after software exits, or remains able to after the equipment closedown at software placeRealize in the permanent storage media of data storage function.Foreground message storehouse for storage medium then no requirement (NR),Can be arranged in permanent storage media, it is also possible to be arranged on transitory storage medium;When it is arranged atTime in permanent storage media, before software exits, it should the foreground fileinfo preserved in emptying it.
The background information that software obtains from background information storehouse after starting for the first time is to exit last time at softwareTime retain background data.
Fileinfo includes but not limited to the title of single or multiple file, brief introduction, sample picture, link.
S11, the File menu at this software shows described foreground fileinfo.
File menu refers to display on the display interface of the equipment at software place, for visualizing to userShow the menu of fileinfo.It is also preferred that the left File menu shows fileinfo with tabular form.
S12, after the webserver gets up-to-date fileinfo, replaces described background information.
It should be noted that the entry number that above-mentioned foreground fileinfo and background information are comprised is default, when being updated, according to certain rule, file entries up-to-date in the webserver can be replaced backstageEntry outmoded in fileinfo, this is that to be the homepages such as existing most video, news using embodiment,It is equally applicable to the present embodiment.
S13, if detecting, described File menu is hidden, by the renewal time of detection foreground fileinfoJudge whether described foreground fileinfo is up-to-date fileinfo.
File menu is hidden a certain file comprising in multiple situation, such as File menu and is performed, then shouldThe display interface of file is placed in foreground, and now File menu is hidden to backstage;Or File menu has twoMore than individual, when carrying out the switching of File menu, the File menu being switched to backstage is considered as being hidden.AlsoAs long as i.e. File menu is switched to, by user's visibility status, the state that user is not visible, the most all regardIt is hidden for File menu.
S14, if it is not, then send described background information to described foreground message storehouse, replaces originalForeground fileinfo, and show at described File menu.
After performing detection in step S13, if foreground fileinfo is not up-to-date, then backstage can be used to believeFileinfo in breath storehouse updates the fileinfo in foreground message storehouse.Without being obtained file by server temporarilyInformation, and whole procedure file menu is in the not visible state of user, the boundary that the renewal of File menu causesThe states such as face refreshing will not be seen by the user, and does not i.e. interfere with Consumer's Experience.
In a variants of the present embodiment, further comprising the steps of:
S15, before software exits, obtains up-to-date fileinfo from the webserver, replaces described backstage literary compositionPart information.
By performing step S15 so that software can directly be obtained relatively by background information storehouse when next time startsNew fileinfo, directly displays, it is not necessary to obtain fileinfo from the webserver temporarily.
The present embodiment and subsequent embodiment are applicable to smart mobile phone, intelligent computer, PC etc. and possess displayUnit and the smart machine on backstage;The display unit of these smart machines should show File menu, intelligenceCan should also be able to intelligent menu is hidden in backstage by equipment.
The detailed process of the first embodiment of a kind of method updating menu information that Fig. 2 provides for the present inventionSchematic diagram, as it can be seen, the detailed step of the present embodiment includes:
S20, after software starts, obtains the background information prestored, by described backstage from background information storehouseFileinfo sends to foreground message storehouse, generates foreground fileinfo.
S21, the File menu at this software shows described foreground fileinfo.
S22, after the webserver gets up-to-date fileinfo, replaces described background information.
S23, the display state of monitoring File menu, if for the state that user is the most visual, such as, monitorWhether File menu is the most visual figure layer of user at the show layers residing for equipment.
S24, it is judged that whether File menu is hidden, namely File menu whether to be changed into user sightlessState.The most then go to step S25, if it is not, then go to step S22.
S25, the timeliness of detection foreground fileinfo.Namely the renewal time of acquisition foreground fileinfo, withJust subsequent step performs judgement.
S26, it is determined that whether foreground fileinfo is up-to-date fileinfo.The most then go to step S22,If it is not, then go to step S27.
S27, sends described background information to described foreground message storehouse, replaces original foreground fileInformation, and show at described File menu.
The method describing first embodiment above in conjunction with overall flow figure and detail flowchart, below in conjunction with makingBy view, by an example, said method is further expalined.
Fig. 3 a-Fig. 3 e is respectively five kinds of use states of this example, as follows:
A) first using state, now software just starts, its foreground message storehouse 2 quilt when last time exitsEmptying, therefore File menu 1 not any content shows.The backstage now background information storehouse 3 prestoredFileinfo (in this example, background information comprises fileinfo A and fileinfo B) sends to frontStation information storehouse.
B) second using state, the fileinfo in background information storehouse 3 will send to foreground message storehouse 2,And show in File menu 1.Now background information storehouse 3 begins attempt to obtain up-to-date from the webserver 4Fileinfo.Assume that the fileinfo in the now webserver 4 is fileinfo C and fileinfo D.
C) the 3rd using state, background information storehouse 3 receives the fileinfo that the webserver 4 sends, andThe background information replacing self storage with it, now the background information in background information storehouse 3 is replacedIt is changed to fileinfo C and fileinfo D.But now File menu 1 is not hidden, therefore wouldn'tBackground information can be sent to foreground message storehouse.
D) the 4th use state, the fileinfo A during now user have chosen File menu 1, and performThe file that fileinfo A is corresponding, File menu 1 replaced by the display interface of file A, File menu 1Hide.Now foreground message storehouse 2 judges that foreground fileinfo is not up-to-date fileinfo, therefore from rearStation information storehouse 3 obtains background information, replaces foreground fileinfo.
E) the 5th using state, user closes closed file A, and File menu 1 shows again, now file dishThe content of display in single 1, i.e. content in foreground message storehouse 2 has been updated to fileinfo C and fileInformation D, thus complete the background update of File menu 1.
The present embodiment gives a kind of method updating File menu, by up-to-date in background information library storageFileinfo, and when File menu is hidden, before the up-to-date fileinfo that backstage stores is updated toStation information storehouse, thus the renewal process of file menu information is hidden, user's perception in use is less than menuRefresh process, the most there is not waiting process in operation and visual experience, improve the smooth degree of operation.
Second embodiment
The present embodiment is on the basis of first embodiment, further to how with getting from the webserverUp-to-date fileinfo is replaced background information and is elaborated.
The detailed process of the second embodiment of a kind of method updating menu information that Fig. 4 provides for the present inventionSchematic diagram, as it can be seen, in the present embodiment, described fileinfo includes that file is updated to current informationThe renewal time in storehouse, above-mentioned steps S12, after the webserver gets up-to-date fileinfo, replaceDescribed background information, farther includes:
S40, obtains the renewal time of background information.
S41, it is judged that whether the renewal time of described background information is more than with the difference of present system timeThe very first time is spaced;The most then go to step S42, if it is not, then go to step S40.
It should be noted that in order to ensure system stability, be finished step S41 and sentence no after, it shouldSeparated in time goes to step S40 again.
S42, sends file acquisition request to the webserver, receives the file in the webserver returnedInformation.
S43, the fileinfo returned with the webserver replaces described background information.
It should be noted that the statement of all uses " first " and " second " is all in the embodiment of the present inventionThe parameter of entity or non-equal in order to distinguish two same names non-equal, it is seen that " first " " second "Only for the convenience of statement, should not be construed as the restriction to the embodiment of the present invention, subsequent embodiment is to this no longerIllustrate one by one.
In the present embodiment, with the difference updating time and system time of backstage fileinfo (due to systemTime is naturally larger than or is equal to the renewal time of background information, therefore deducts background with system timeInformation update the time numerical value, or the two optionally act as minuend or subtrahend the numerical value arrived absolute value makeFor above-mentioned difference, be a kind of relatively reasonable, be easy to the scheme that compares) whether make more than very first time intervalFor decision procedure, judge whether to update fileinfo to server request, detect and obtain up-to-date literary compositionPart information.Wherein very first time interval can be true according to various ways such as system load, user's investigation, experimentsFixed, its scope 5s-10min is all relatively reasonable;Very first time interval should not be longer, otherwise can affectRenewal speed, makes the no longer effective property of fileinfo, and very first time interval is not easy to shorter, otherwise can cause endFrequent communication between end and the webserver, affects the performance of terminal and the webserver, takies the most notNecessary resource.In preferably embodiment, very first time interval is set as 5min.
Include that file is updated to the renewal time in current information storehouse at fileinfo, and so update the timeBeing based on the system time decision of its information bank being finally updated to, such as fileinfo is acquired to netDuring network server, its renewal time should be recorded according to the time of the webserver;It is sent to backstage letter at itDuring breath storehouse, then should record its renewal time according to the time in background information storehouse, i.e. system time.
On the basis of first embodiment, how the present embodiment has further explained with from the webserverThe up-to-date fileinfo got replaces background information.But it is for some fortuitous events, the softestTime deviation between local terminal and the webserver at part place is relatively big, and the present embodiment then cannot improve placeReason, it is possible that some unexpected problems, therefore draws the following examples.
3rd embodiment
In order to solve the problem being likely to occur in the second embodiment, the present embodiment optimizes further and takes from networkBusiness device gets the method that up-to-date fileinfo replaces background information.
The detailed process of the 3rd embodiment of a kind of method updating menu information that Fig. 5 provides for the present inventionSchematic diagram, as it can be seen, step S42, sends file acquisition request to the webserver, receives returnFileinfo in the webserver, farther includes:
S50, sends to the webserver and attempts obtaining request, receive the file in the webserver returnedThe renewal time of information.
S51, it is judged that during the renewal updating time and background information of the fileinfo in the webserverBetween difference whether be spaced more than the very first time.The most then go to step S52, if it is not, then go to oneStep S40 in embodiment.Again, it is noted that should time delay the most in addition before going to step S40.
S52, sends to the webserver and confirms to obtain request, receive the file in the webserver returnedInformation.
The present embodiment is on the basis of a upper embodiment, by the fileinfo in further authentication serverWhether the difference updating the time of renewal time and background information is spaced still above the very first time, it is to avoidBecause of local zone time and the asynchronous problem that may cause of webserver time.
4th embodiment
It is the most expired and expired at it that second embodiment and the 3rd embodiment give judgement background informationTime the method that is updated.In the present embodiment, provide judgement foreground fileinfo further the most expired,And the method being updated after expired.
The detailed process of the 4th embodiment of a kind of method updating menu information that Fig. 6 provides for the present inventionSchematic diagram;, as it can be seen, in the present embodiment, whether step S13, detect described foreground fileinfoFor up-to-date fileinfo, farther include:
S60, obtains the renewal time of foreground fileinfo.
S61, it is judged that the difference updating the time of the renewal time of foreground fileinfo and background information isNo it is more than the second time interval.The most then go to step S62, if it is not, then go to step S60.EquallyIt should be noted that should time delay the most in addition before going to step S60.
S62, it is determined that described foreground fileinfo is not up-to-date fileinfo.
The present embodiment is the biggest by the difference comparing foreground fileinfo and background information updating timeIn the second time interval, it is judged that whether foreground fileinfo is up-to-date fileinfo.Here between the second timeEvery determining according to various ways such as system load, user's investigation, experiments, its scope 5s-10min is allBeing relatively reasonable, the very first time interval in this point and above-described embodiment is similar;But in order to reduce nothingEffect operation, improves execution efficiency, it should make the numerical value of the second time interval be spaced not less than the very first time, moreThe good integral multiple being arranged to very first time interval.So in second time interval, one can be performedSecondary or repeatedly background information renewal process, thus ensure as far as possible foreground fileinfo is being carried out moreTime new, background information exists up-to-date fileinfo.
5th embodiment
The detailed process of the 5th embodiment of a kind of method updating menu information that Fig. 7 provides for the present inventionSchematic diagram, as it can be seen, in the present embodiment, step S12, described get from the webserver up-to-dateFileinfo after, after replacing the step of described background information, also include:
S70, the control instruction of monitoring user's input.
S71, it is judged that whether described control instruction is the first control instruction.If so, step S72 is gone to, ifNo, go to step S70.
S72, it is judged that whether described foreground fileinfo is up-to-date fileinfo.If so, step S70 is gone to,If it is not, go to step S73.
S73, sends described background information to foreground message storehouse, replaces original foreground fileinfo.
Described first control instruction can be default any control instruction.This gives a kind of connecingThe method actively updating foreground fileinfo after receiving the specific control command of user.
Sixth embodiment
In some softwares, File menu has at least two, and user needs to hold in these menus when operationRow handover operation, and the only menu of same time is in the state that user is visual, other menus are the most temporary transientIt is hidden in backstage.For this situation, this gives a kind of menu that updates under many menu environment and believeThe method of breath.
The detailed process of the sixth embodiment of a kind of method updating menu information that Fig. 8 provides for the present inventionSchematic diagram, as it can be seen, in the present embodiment, described File menu at least two, each File menuIndependent foreground message storehouse associated with it and background information storehouse are set;When one of them File menu is on foregroundDuring display, remaining paper menu is temporarily stored into backstage.Step S12, the webserver gets up-to-date fileAfter information, after replacing described background information, also include:
S80, the handover operation of detection File menu.
S81, it may be judged whether have File menu to be switched to backstage.If so, step S82 is gone to, if it is not,Go to step S80.
S82, it is judged that whether the foreground fileinfo of the File menu being switched to backstage is up-to-date file letterBreath.If so, step S80 is gone to, if it is not, go to step S83.
S83, sends the background information being switched to the File menu on backstage to foreground message storehouse, replacesChange original foreground fileinfo.
In embodiment before, File menu " is hidden " to comprise in the present embodiment and " is switched to backstage "Situation;The present embodiment can be considered as the application scenarios of a materialization of step S13, S14.
Originally it is implemented in detecting when user switches File menu, determines whether to be switched to backstage (i.e. userThe most invisible) the foreground fileinfo of File menu whether be up-to-date fileinfo, if not then makingReplace by the background information of this document menu, update its foreground fileinfo.Due to this File menuThrough being switched to backstage, therefore renewal process is invisible, will not produce operating delay, further increase behaviourMake fluency.
The variants of the sixth embodiment of a kind of method updating menu information that Fig. 9 provides for the present invention detailedThin schematic flow sheet, as it can be seen, in an optional variants of the present embodiment, step S14, after describedPlatform fileinfo sends to foreground message storehouse, replaces original foreground fileinfo, and shows at File menuAfter, also include:
S90, the foreground fileinfo update status of detection all files menu.
S91, it may be judged whether have the foreground fileinfo of arbitrary File menu to be replaced by its backstage fileinfo.If so, step S92 is gone to, if it is not, go to step S90.
S92, it is judged that whether the foreground fileinfo of alternative document menu is up-to-date fileinfo.If it is not,Go to step S93, if so, go to step S90.
S93, uses its foreground fileinfo of background information updating of alternative document menu.
This variants is equally applicable to the situation of multifile menu, after detecting that arbitrary File menu is updated,Whether the i.e. foreground fileinfo of synchronous detecting alternative document menu is up-to-date, if not then equally to other literary compositionsThe fileinfo of part menu performs renewal.In order to improve the smooth degree of operation, step S92 can also be furtherReplace with following steps:
S94, it is judged that the foreground fileinfo of alternative document menu is in addition to the File menu being currently displayingNo for up-to-date fileinfo.If it is not, go to step S93, if so, go to step S90.
Step S94 avoids the renewal of File menu visible to active user.
In addition to the above methods, present invention also offers a kind of device making to update menu information in aforementioned manners.
The module diagram of a kind of device updating menu information that Figure 10 provides for the present invention, as it can be seen,In one embodiment, device includes:
File menu module 100, at File menu display foreground fileinfo;
Foreground message storehouse 101, is used for storing foreground fileinfo;
Background information storehouse 102, is used for storing background information, is additionally operable to, after terminal starts, will prestoreBackground information send to described foreground message storehouse, generate foreground fileinfo;
Communication module 103, is used for and external network server communication, gets from the webserver up-to-dateAfter fileinfo, replace described background information;
Update detection module 104, be used for detecting whether File menu is hidden;
Update judge module 105, for after detecting that File menu is hidden, by detection fileinfoThe renewal time judge whether described foreground fileinfo is up-to-date fileinfo;If it is not, after the most describedOriginal foreground literary composition, for sending described background information to described foreground message storehouse, is replaced in station information storehousePart information.
Described device is that PC, smart mobile phone, intelligent television etc. possess visualization File menu, and energyThe enough equipment that described File menu is hidden in backstage hang-up.
The device that the present embodiment provides is by the up-to-date fileinfo of background information library storage, and at file dishWhen being singly hidden, the up-to-date fileinfo that backstage stores is updated to foreground message storehouse, thus by file dishThe renewal process of single information is hidden, and user's perception in use, less than the refresh process of menu, is operating and regardingFeel and the most there is not waiting process on experiencing, improve the smooth degree of operation.
In a preferred embodiment, described fileinfo includes that file is updated to the renewal in current information storehouseTime, described renewal judge module 104 is additionally operable to obtain the renewal time of background information, it is judged that describedWhether the difference updating time and present system time of background information is spaced more than the very first time;If so,The most described communication module 103, for sending file acquisition request to the webserver, receives the network clothes returnedFileinfo in business device;Described background information storehouse 102 is for the fileinfo using the webserver to returnReplace described background information.
In an optional embodiment, described communication module 103 is additionally operable to send trial to the webserver and obtainsTake request, the renewal time of the fileinfo in the webserver that reception returns;Described renewal judge module105 for judging the renewal of renewal time of the fileinfo in the webserver and background information timeBetween difference whether be spaced more than the very first time;The most described communication module 103 is for network serviceDevice sends and confirms to obtain request, receives the fileinfo in the webserver returned.
In another embodiment, described renewal judge module 105 is additionally operable to obtain the renewal of foreground fileinfoTime, it is judged that the difference updating the time of the renewal time of described foreground fileinfo and background information isNo it is more than the second time interval;The most then judge that described foreground fileinfo is not up-to-date fileinfo.
In an optional embodiment, described device also includes inputting detection module 106;Described input detectionModule 106 is for detecting the control instruction of user's input;If it is determined that described control instruction is the first control instruction,Described renewal judge module 105 is for detecting whether described foreground fileinfo is up-to-date fileinfo;IfNot, the most described background information storehouse 102 is used for sending to foreground message storehouse 101 described background information,Replace original foreground fileinfo.
In another embodiment, described File menu at least two, each File menu arranges and is associated withIndependent foreground message storehouse 101 and background information storehouse 102;When one of them File menu shows on foregroundTime, remaining paper menu is temporarily stored into backstage;
Described renewal detection module 104 is additionally operable to detect whether user switches File menu;The most describedWhether the foreground fileinfo updating the File menu that judge module 105 is switched to backstage for detection isUp-to-date fileinfo;If it is not, then background information storehouse 102 will be for being switched to the File menu on backstageBackground information send to foreground message storehouse 101, replace original foreground fileinfo.
In a variants of above-described embodiment, described renewal detection module 104 is additionally operable to detect arbitrary file dishWhether single foreground fileinfo is replaced by its backstage fileinfo;The most described renewal judge module105 determine whether whether the foreground fileinfo of alternative document menu is up-to-date fileinfo;If it is not,Described background information storehouse 102 uses its foreground fileinfo of background information updating of alternative document menu.
In a preferred embodiment, before described device is closed, described communication module 103 is additionally operable to from networkServer obtains up-to-date fileinfo, replaces described background information.
From the above it can be seen that a kind of method and device updating menu information that the present invention provides is passed throughThe mode of background update, it is possible to ensure the ageing of File menu, and to literary composition under the sightless state of userPart menu is updated, and can avoid the slow of vision that the operation refreshing menu in prior art brings and operationStagnant sense, lifting operation fluency.
Those of ordinary skill in the field it is understood that the discussion of any of the above embodiment is exemplary only,It is not intended to imply that the scope of the present disclosure (including claim) is limited to these examples;Think of in the present inventionUnder road, can also be combined between the technical characteristic in above example or different embodiment, step canWith with random order realize, and exist the present invention as above different aspect many other change, forSimple and clear they do not provide in the details.Therefore, all within the spirit and principles in the present invention, doneAny omission, amendment, equivalent, improvement etc., should be included within the scope of the present invention.