The ContextMenu control is also in charge of adding an oncontextmenu handler to each control or page element that registers to get one. I defined two ways for an element to get its own context menu.
快捷菜单也负责为每个控件或为注册快捷菜单的页面元素添加oncontextmenu事件处理器。
It provides an event handler for each menu option.
它为每一个菜单选项提供事件处理程序。
In the handler, you retrieve the verb associated with the menu item and invoke it.
在该处理程序中,可以检索与该菜单项相关联的谓词并调用它。
Note that when you create new menu items for designer verbs, you also attach a click handler for the menu item.
请注意,当您为设计器谓词创建新的菜单项时,您还为该菜单项附加了一个单击处理程序。
It isn't until the menu choice is actually selected that the corresponding handler class is created, thereby deferring the activation of the plug-in containing the handler class.
直到菜单选项真正被选择时,相应的处理程序类才会被创建,因而延迟了包含此处理器类的插件的激活。
When you select a lab option menu field, the Ajax script invokes a GET Web service in DivisionsResource in the Resource Request Handler, which returns an array of divisions for the selected lab.
当您选择某实验室选项菜单字段时,ajax脚本将调用资源请求处理程序的DivisionsResource中的一个GETWeb服务,后者将返回所选实验室的部门数组。
In the sample application, invoke the Intent as in Listing 6, from inside the Menu item handler.
在样例应用程序中,像清单6中一样,从菜单项处理程序中调用Intent。
Create an Eclipse user intereface (UI) command to provide a menu entry to call a command handler.
创建一个Eclipse用户界面(UI)命令,提供一个菜单项来调用命令处理程序。
When one of these menu text items is clicked, then the corresponding onclick event handler makes the corresponding screen appear in the browser window.
当单击这些菜单文本项时,对应的onclick事件处理函数让对应的屏幕出现在浏览器窗口中。
The custom click handler handles clicking events for all menu items (see the method MenuItemClickHandler in the sample application).
该自定义单击处理程序可为所有菜单项处理单击事件(请参见示例应用程序中的方法MenuItemClickHandler)。
Others are special to XUL, like grippyhidden (which stops a menu bar from being hidden by the user) and oncommand (which is an event handler that fires when a menu option is chosen).
其他属性则是XUL 专有的,比如 grippyhidden (不让用户隐藏某个菜单栏)和oncommand (这是一个事件处理程序,当选中某个菜单项时激活)。
When a user selects a menu item from a designer context menu, the custom handler is called to execute the verb associated with the menu item.
当用户从设计器上下文菜单中选择菜单项时,系统将调用该自定义处理程序,以执行与该菜单项关联的谓词。
Each menu item consists of a LinkButton control with an internal handler bound to the Click event.
每个菜单项包含一个LinkButton控件,这个LinkButton控件有一个内部绑定的点击事件处理程序。
This wizard adds a menu or accelerator command handler or dialog control event handler to the class of your choice.
本向导将菜单、快捷键命令处理程序或对话框控件事件处理程序添加到所选的类中。
Designer verbs associate a menu item with an event handler.
设计器谓词使菜单项与事件处理程序关联。
When the menu item is cloned, the cloned menu item will call the same event handler.
当克隆该菜单项后,克隆的菜单项将调用同一事件处理程序。
This allows you to provide an event handler that performs a custom routine, such as adding custom content or modifying a menu item before it is rendered, whenever this event occurs.
这可让您提供事件处理常式,以便在每次发生这个事件时执行自订常式,例如加入自订内容或在呈现功能表项目前加以修改。
This allows you to provide an event handler that performs a custom routine, such as adding custom content or modifying a menu item before it is rendered, whenever this event occurs.
这可让您提供事件处理常式,以便在每次发生这个事件时执行自订常式,例如加入自订内容或在呈现功能表项目前加以修改。
应用推荐