CN101004675A - Method, system for displaying menu, and client end - Google Patents

Method, system for displaying menu, and client end Download PDF

Info

Publication number
CN101004675A
CN101004675A CN 200610001393 CN200610001393A CN101004675A CN 101004675 A CN101004675 A CN 101004675A CN 200610001393 CN200610001393 CN 200610001393 CN 200610001393 A CN200610001393 A CN 200610001393A CN 101004675 A CN101004675 A CN 101004675A
Authority
CN
China
Prior art keywords
menu
client
feature card
message
interface
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.)
Granted
Application number
CN 200610001393
Other languages
Chinese (zh)
Other versions
CN100492284C (en
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.)
Tencent Technology Shenzhen Co Ltd
Original Assignee
Tencent Technology Shenzhen Co Ltd
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 Tencent Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CNB2006100013933A priority Critical patent/CN100492284C/en
Publication of CN101004675A publication Critical patent/CN101004675A/en
Application granted granted Critical
Publication of CN100492284C publication Critical patent/CN100492284C/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • User Interface Of Digital Computer (AREA)

Abstract

A method for displaying menu includes logging menu function item in specific type of menu at client end by function pluggable unit, issuing notice message to function pluggable units corresponding to all menu function items logged in menu by client end, dynamically adding its menu function item onto said menu by said pluggable unit for finalizing display of menu.

Description

A kind of method of display menu, system and client
Technical field
The present invention relates to the communications field and computer realm, particularly relate to a kind of method, system and client of display menu.
Background technology
Along with software development is constantly carried out, software configuration is more sophisticated also, and function increases gradually, all functions is realized not gearing to actual circumstances in single module, so plug-in part technology arises.Plug-in part technology allows software that oneself basic function and expanded function are separated.
The client of existing instant communication client or other types can not be presented at the menu function item of this feature card (promptly still being the menu that display client solidifies) in the corresponding menu after new feature card is installed.And after new feature card was installed, if this feature card need use the function of existing plug-in unit, it need know functional interface how to inquire about existing plug-in unit so, how to use, and needs was imported information such as which type of parameter.Like this, if existing plug-in unit changes, the then new plug-in unit of installing also needs to do corresponding modification, could adapt to.So just produced function dependence (i.e. coupling).If produce coupling between the plug-in unit, just lost the independence of function.Revising certain function just needs to consider to influence other plug-in units, thereby has increased the development difficulty of feature card.
Summary of the invention
The invention provides a kind of method, system and client of display menu, after solving the new feature card of present installation, client can't dynamically show the problem of what's new in menu, and what's new can produce coupling problems with original function.
The inventive method comprises:
A, feature card are registered to its menu function item in the menu of particular type in the client;
B, when activating described menu, the feature card of all menu function item correspondences that client is registered in this menu message of giving notice;
C, described feature card dynamically add its menu function item in the described menu, to finish the demonstration of menu.
In the described steps A, feature card is registered to its menu function item in the menu of particular type in the client by the The Component Object Model interface of client.
The menu of described particular type is designated in feature card.
Also comprise in the described steps A: feature card is informed client with its interface message.
Among the described step B, client is according to the interface message of described feature card, sends a notification message to the feature card of correspondence.
Comprise the following steps: among the described step C that C1, feature card according to the menu information and the configuration information that carry in the notification message of receiving, determine state and/or content that it should show in this menu; C2, feature card pass through the The Component Object Model interface of client, and described state that should show and/or content are sent to client; C3, client dynamically generate and show current menu.
Also comprise step: D, user after the described step C in the menu that shows behind the choice menus function items, client sends execution command by the interface of the feature card corresponding with this menu function item to described feature card; E, described feature card are carried out corresponding operation.
System of the present invention comprises: feature card is used to the client-side extensions function; Client is used for described feature card alternately, according to the menu function item of feature card registration, dynamically generates and display menu.
Described client comprises following submodule: menu interface is used for described feature card mutual; The menu Registering modules is used for receiving log-on message by described menu interface, and the menu function item in the described log-on message is registered in the menu of particular type; The notification message generation module is used for when activating menu, according to the corresponding notification message that generates of the log-on message in the described menu Registering modules, and to described feature card transmission; The menu generation module is used for generating current menu according to receiveing the response of described feature card; The menu display module is used to show the current set of menu.
Client of the present invention comprises: the menu display module is used to show the current set of menu; Menu interface is used for and PERCOM peripheral communication; The menu Registering modules is used for receiving log-on message by described menu interface, and the menu function item in the described log-on message is registered in the menu of particular type; The notification message generation module is used for when activating menu, generates notification message according to the log-on message in the described menu Registering modules is corresponding, and sends; The menu generation module is used for generating current menu according to receiveing the response of described notification message.
Beneficial effect of the present invention is as follows:
The inventive method is being installed new feature card, and after client reloaded this feature card, feature card adopted the mode of its menu function item of registration, and its menu function item is registered in the menu that might trigger this function, and etc. wait order; When activating described menu, the feature card of all menu function item correspondences that client can be registered in this menu message of giving notice; Feature card determines state and/or content that it should show, and described state that should show and/or content is sent to client according to the menu information and the configuration information (trigger event) that carry in the notification message of receiving in this menu; Client dynamically generates in view of the above and shows current menu.By the enforcement of the inventive method, no longer adopt client to solidify the form of expression of menu, but dynamically generate menu when needed, thereby the function of what's new dynamically can be presented in the menu.
The present invention is mutual by client and each feature card, form with dynamic menu provides unified calling interface to all functions plug-in unit, when between plug-in unit, using the other side's function mutually like this, need not to consider to have installed any plug-in unit, perhaps how to use certain plug-in unit, only need operate getting final product according to the requirement of dynamic menu calling interface.Thereby reduced the effect of coupling, also reached the requirement of software conformance simultaneously.(performance anywhere of software conformance, software is in full accord.Because menu is generated by the dynamic menu module, all can both obtain identical effect when showing a certain class menu Anywhere.)
In order to support the inventive method, the present invention also provides a kind of system and client of display menu.
Description of drawings
Fig. 1 is a system architecture synoptic diagram of the present invention;
Fig. 2 is a client terminal structure synoptic diagram of the present invention;
Fig. 3 is the inventive method flow chart of steps.
S1, client initialization, and value-added tax function plug-in unit.
S2, feature card obtain the menu interface information of client.
S3, feature card are with its menu function item registration.
S4, when activating described menu, client is to the feature card message of giving notice.
S5, feature card send to client and receive the response.
S6, client dynamically generate, and display menu.
Below specifically describe the inventive method by two examples.
Method example one: feature card to client send receive the response in show that the state that should show is for swashing Live, client generates and display menu.
S101, client initialize, and the value-added tax function plug-in unit.
User installation behind the new feature card, restart and land client and (include but not limited to instant Communication customer end), client will be carried out the initialization of self after the identification authentication to the user passes through.
Client begins to load the feature card of having installed after initializing and finishing.
S102, feature card obtain the menu interface information of client.
After feature card is loaded, the query function (query function is prior art) that provides by system, Come the menu function interface message in the inquiring client terminal, in order to carry out alternately with client.
S103, feature card are with its menu function item registration.
The Menu Type that each feature card indicates according to plug-in unit inside, by the menu interface that inquires to the visitor The family end sends log-on message. Menu Registering modules in the client is according to the menu class in the described log-on message Type is registered to the menu function item of feature card in the menu of particular type. For example: the merit that sends note Can plug-in unit " transmission note " be registered in menu corresponding to the own head portrait of user, also be registered to other In menu corresponding to user's head portrait.
Simultaneously, feature card also can be informed client with its interface message by described log-on message.
S104, when activating described menu, client is to the feature card message of giving notice.
When the user activates a certain type menu, for example: with clicking this usefulness in the instant communication client by mouse right button The head portrait at family oneself, then client is collected the menu merit that all were registered under menu corresponding to this user head portrait Energy (this example is to only have " transmission note " as example), and by the notification message generation module in the client Generate notification message, wherein carry the menu information (menu that this end subscriber head portrait is corresponding) of described menu, And configuration information (for example: the user is with cell-phone number and instant communication client binding).
Afterwards, client sends to this feature card according to the interface message of the feature card of described transmission note Notification message.
S105, feature card send to client and receive the response.
After feature card is received described notification message, determine according to the menu information in the notification message and configuration information Fixed its state that in this menu, should show and/or content. The menu that activates in this example is the own head portrait of user pair The menu of answering, and the user sends the note merit with cell-phone number and instant communication client binding so can use Can, namely state is for activating, and content is " transmission note ".
Feature card is carried on the described state that should show and/or content and receives the response, by described menu Interface sends to client.
S106, client dynamically generate, and display menu.
The menu generation module of client generates and works as according to the state that should show and/or content in receiveing the response Front menu namely comprise in described the current set of menu " transmission note ", and its status is active, can be used The family is selected.
After the menu generation module has generated the current set of menu, displayed it to by the menu display module in the client The user.
Afterwards, the user can select " transmission note ", and client sends execution command by the interface of the feature card corresponding with this menu function item to sending the SMS plug-in unit, and this feature card is carried out corresponding operation.Finish if need other feature cards to cooperate, then client
Method example two: feature card to client send receive the response in show that the state that should show is deactivation, client generates and display menu.
S201, client initialization, and value-added tax function plug-in unit.(identical) with S101
S202, feature card obtain the menu interface information of client.(identical) with S102
S203, feature card are with its menu function item registration.(identical) with S103
Embodiment
For after new feature card is installed, in menu, can dynamically show newly-increased function, and the coupling that reduces what's new and original function, the invention provides a kind of system of display menu, referring to shown in Figure 1, it comprises: interconnective feature card and client.
Described feature card is used to the client-side extensions function.
Described client is used for described feature card alternately, according to the menu function item of feature card registration, dynamically generates and display menu.
Further, referring to shown in Figure 2, described client (being client of the present invention) comprising: menu interface, menu Registering modules and notification message generation module that annular links to each other; Described menu interface also links to each other with the menu display module by the menu generation module.
Described menu interface, it is the The Component Object Model interface, is used for being connected with the interface of external function plug-in unit, and communication with it.
Described menu Registering modules is used for the log-on message by described menu interface receiving function plug-in unit, and the menu function item in the described log-on message is registered in the menu of particular type.
Described notification message generation module, be used for when activating menu, according to the log-on message in the described menu Registering modules, for generating notification messages, and send to the feature card of described the various menu function items correspondence with all menu function items that are registered under the described menu.Carry menu information (for example: in the instant communication client, the menu of own head portrait correspondence) in the described notification message, and configuration information (for example: the user is provided with the cell-phone number with the instant communication client binding).
Described menu generation module is used for generating current menu according to receiveing the response of described notification message.Carry feature card decision should show according to the menu information in the described notification message and configuration information state and/or content in described the receiveing the response, the menu generation module generates current menu in view of the above.
Described menu display module is used to the current set of menu that shows that described menu generation module generates.
Use said system and client, the invention provides a kind of method of dynamic menu display,, comprise the following steps: referring to shown in Figure 3
S204, when activating described menu, client is to the feature card message of giving notice.
The user is not with cell-phone number and instant communication client binding in this example.
Other content is identical with S104.
S205, feature card send to client and receive the response.
After feature card is received described notification message, determine state and/or the content that it should show in this menu according to menu information in the notification message and configuration information.The menu that activates in this example is the menu of the own head portrait correspondence of user, but the user is with the binding of cell-phone number and instant communication client, so can't use the transmission SMS, promptly state is deactivation, and content is " a transmission note "; Perhaps state is deactivation, and content is empty (promptly not showing " transmission note ").
Feature card is carried on the described state that should show and/or content and receives the response, and sends to client by described menu interface.
S206, client dynamically generate, and display menu.
The menu generation module of client generates the current set of menu according to state that should show and/or content in receiveing the response, promptly comprise in described the current set of menu " transmission note ", but its state is deactivation; Perhaps in described the current set of menu, do not comprise " transmission note ".
After the menu generation module has generated the current set of menu, it is shown to the user by the menu display module in the client.
Obviously, those skilled in the art can carry out various changes and modification to the present invention and not break away from the spirit and scope of the present invention.Like this, if of the present invention these are revised and modification belongs within the scope of claim of the present invention and equivalent technologies thereof, then the present invention also is intended to comprise these changes and modification interior.

Claims (10)

1, a kind of method of display menu is characterized in that, comprises the following steps:
A, feature card are registered to its menu function item in the menu of particular type in the client;
B, when activating described menu, the feature card of all menu function item correspondences that client is registered in this menu message of giving notice;
C, described feature card dynamically add its menu function item in the described menu, to finish the demonstration of menu.
2, the method for claim 1 is characterized in that, in the described steps A, feature card is registered to its menu function item in the menu of particular type in the client by the The Component Object Model interface of client.
3, method as claimed in claim 2 is characterized in that, the menu of described particular type is designated in feature card.
4, method as claimed in claim 2 is characterized in that, also comprises in the described steps A: feature card is informed client with its interface message.
5, method as claimed in claim 4 is characterized in that, among the described step B, client is according to the interface message of described feature card, sends a notification message to the feature card of correspondence.
6, method as claimed in claim 4 is characterized in that, comprises the following steps: among the described step C
C1, feature card determine state and/or content that it should show according to the menu information and the configuration information that carry in the notification message of receiving in this menu;
C2, feature card pass through the The Component Object Model interface of client, and described state that should show and/or content are sent to client;
C3, client dynamically generate and show current menu.
7, as each described method of claim 4 to 6, it is characterized in that, also comprise step after the described step C:
Behind the choice menus function items, client sends execution command by the interface of the feature card corresponding with this menu function item to described feature card in the menu that shows for D, user;
E, described feature card are carried out corresponding operation.
8, a kind of system of display menu comprises: feature card is used to the client-side extensions function, it is characterized in that described system also comprises: client is used for described feature card mutual, according to the menu function item of feature card registration, dynamically generate and display menu.
9, system as claimed in claim 8 is characterized in that, described client comprises following submodule:
Menu interface is used for described feature card mutual;
The menu Registering modules is used for receiving log-on message by described menu interface, and the menu function item in the described log-on message is registered in the menu of particular type;
The notification message generation module is used for when activating menu, according to the corresponding notification message that generates of the log-on message in the described menu Registering modules, and to described feature card transmission;
The menu generation module is used for generating current menu according to receiveing the response of described feature card;
The menu display module is used to show the current set of menu.
10, a kind of client comprises: be used to show the menu display module of the current set of menu, it is characterized in that described client also comprises:
Menu interface is used for and PERCOM peripheral communication;
The menu Registering modules is used for receiving log-on message by described menu interface, and the menu function item in the described log-on message is registered in the menu of particular type;
The notification message generation module is used for when activating menu, generates notification message according to the log-on message in the described menu Registering modules is corresponding, and sends;
The menu generation module is used for generating current menu according to receiveing the response of described notification message.
CNB2006100013933A 2006-01-19 2006-01-19 Method, system for displaying menu, and client end Active CN100492284C (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CNB2006100013933A CN100492284C (en) 2006-01-19 2006-01-19 Method, system for displaying menu, and client end

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CNB2006100013933A CN100492284C (en) 2006-01-19 2006-01-19 Method, system for displaying menu, and client end

Publications (2)

Publication Number Publication Date
CN101004675A true CN101004675A (en) 2007-07-25
CN100492284C CN100492284C (en) 2009-05-27

Family

ID=38703848

Family Applications (1)

Application Number Title Priority Date Filing Date
CNB2006100013933A Active CN100492284C (en) 2006-01-19 2006-01-19 Method, system for displaying menu, and client end

Country Status (1)

Country Link
CN (1) CN100492284C (en)

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101833467A (en) * 2010-05-14 2010-09-15 华为终端有限公司 Method and equipment for adding menu items into Android menu
CN101907991A (en) * 2010-06-30 2010-12-08 天津大学 Plug-in technique-based method for realizing power system analysis software interface
CN101676850B (en) * 2008-09-16 2011-11-02 联想(北京)有限公司 System for self-defining right click menu and method for calling right click menu
CN102413153A (en) * 2010-09-20 2012-04-11 腾讯科技(深圳)有限公司 Microblog message publishing method and device
CN102646056A (en) * 2012-03-01 2012-08-22 宁波电业局 Function expansion method and device for grid GIS (geographic information system) platform based applications
CN103425468A (en) * 2012-05-17 2013-12-04 航天信息股份有限公司 Method and device for integrating plug-in type software
CN104400787A (en) * 2014-10-08 2015-03-11 艾尔发(苏州)自动化科技有限公司 Method for conveniently and rapidly using mechanical arm operation interface
CN112632495A (en) * 2020-12-24 2021-04-09 文思海辉智科科技有限公司 WeChat public number management method and device and electronic equipment

Cited By (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101676850B (en) * 2008-09-16 2011-11-02 联想(北京)有限公司 System for self-defining right click menu and method for calling right click menu
US9319508B2 (en) 2010-05-14 2016-04-19 Huawei Device Co., Ltd. Method and device for adding menu item to android menu
CN101833467A (en) * 2010-05-14 2010-09-15 华为终端有限公司 Method and equipment for adding menu items into Android menu
US9703454B2 (en) 2010-05-14 2017-07-11 Huawei Device Co., Ltd. Method and device for adding menu item to ANDROID menu
EP2570917A1 (en) * 2010-05-14 2013-03-20 Huawei Device Co., Ltd. Method and device for adding menu items in android menu
EP2570917A4 (en) * 2010-05-14 2013-08-07 Huawei Device Co Ltd Method and device for adding menu items in android menu
CN101833467B (en) * 2010-05-14 2013-12-04 华为终端有限公司 Method and equipment for adding menu items into Android menu
CN101907991A (en) * 2010-06-30 2010-12-08 天津大学 Plug-in technique-based method for realizing power system analysis software interface
CN102413153A (en) * 2010-09-20 2012-04-11 腾讯科技(深圳)有限公司 Microblog message publishing method and device
CN102646056A (en) * 2012-03-01 2012-08-22 宁波电业局 Function expansion method and device for grid GIS (geographic information system) platform based applications
CN103425468A (en) * 2012-05-17 2013-12-04 航天信息股份有限公司 Method and device for integrating plug-in type software
CN103425468B (en) * 2012-05-17 2016-12-14 航天信息股份有限公司 Plug-in type software integrating method and device
CN104400787A (en) * 2014-10-08 2015-03-11 艾尔发(苏州)自动化科技有限公司 Method for conveniently and rapidly using mechanical arm operation interface
CN112632495A (en) * 2020-12-24 2021-04-09 文思海辉智科科技有限公司 WeChat public number management method and device and electronic equipment

Also Published As

Publication number Publication date
CN100492284C (en) 2009-05-27

Similar Documents

Publication Publication Date Title
CN100492284C (en) Method, system for displaying menu, and client end
CN102136933B (en) Equipment management method, middleware and machine communication platform, equipment and system
CN100479389C (en) Module and method for realizing equipment access interface, equipment access system and method
CN102710593B (en) Method, device and system for publishing message in graph mashup
Sneps-Sneppe et al. About M2M standards and their possible extensions
CN105183452A (en) Spring AOP based remote protocol service middleware for monitoring power distribution device
CN103200292A (en) Menu display method and terminal
CN102724656B (en) Device and method for updating state of user of mobile social network and mobile terminal
CN109587272A (en) A kind of optimization method of micro services, device and electronic equipment
CN102333164B (en) Incoming call screen display method of call system based on B/S (Browser/Server) framework
CN105183435A (en) Frame structure of intelligent control software
CN105516250B (en) Internet of Things service call platform and system
KR20080064587A (en) Open framework system for heterogeneous computing and service integration
CN101162424B (en) System and method for loading interface element
CN105450589A (en) Remote procedure call method and system
CN101316242B (en) Service-oriented intelligent platform
CN101339520B (en) Method for accessing EJB into enterprise service bus
Sneps-Sneppe et al. M2M applications and open API: What could be next?
CN107317881B (en) BA system based on micro-service architecture
CN103595695A (en) Method and system for providing services by service bus
CN111355738A (en) Method and system for supporting multiple protocols by gateway
CN103563299A (en) Method and system for providing calender services in a universal plug and play home network environment
CN107659491A (en) A kind of Group file sharing method and system based on instant messaging
CN113743879A (en) Automatic rule processing method, system and related equipment
CN109743366A (en) A kind of resource locking method, apparatus and system for scene of more living

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