The data we store in each menu item object is an array containing only one element: the name of the category.
我们储存在每个菜单项对象中的数据是一个仅包含一个元素的数组:类别名。
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.
请注意,当您为设计器谓词创建新的菜单项时,您还为该菜单项附加了一个单击处理程序。
When you select a menu item, the corresponding target is invoked, and the source data is transferred to it.
当您选择一个菜单项时,相应的目标就会被激活,而源数据就会传递给它了。
Launch the UTC using the server context menu item.
使用服务器上下文菜单项启动utc。
In context, an LLSD object is used to pass in any additional data specified in the XML file defining a menu item.
在这种环境中,LLSD对象用来传递定义菜单项的XML文件中所指定的任何其他数据。
In Figure 2, notice that the text of the menu item has appeared as a tool tip.
在图2中,注意出现了一个作为工具提示的菜单项文本。
To create this help repository menu item, the same sequence was followed as before with a change to one of the wizard pages.
要创建此帮助库菜单项,请使用与前面更改一个向导页面相同的顺序。
The easiest way to create a new menu item is to let the PDE wizard build the infrastructure for you.
创建新菜单项的最容易方法是让PDE向导为您构建基础结构。
For example, an extension point can define a means for modifying a host plug-in's menu item.
例如,扩展点可以定义修改主机插件的菜单项的方式。
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.
当用户从设计器上下文菜单中选择菜单项时,系统将调用该自定义处理程序,以执行与该菜单项关联的谓词。
While incomplete as of this writing, this section gives simple summaries of the steps used to perform common tasks, such as adding a menu item.
尽管在撰写本文时这节的内容还不完整,但是这节的内容对执行一些通用任务(例如添加菜单项)所使用的步骤进行了简单总结。
In the sample application, invoke the Intent as in Listing 6, from inside the Menu item handler.
在样例应用程序中,像清单6中一样,从菜单项处理程序中调用Intent。
The oncommand attribute is key, because it establishes what happens when the user selects the menu item.
oncommand属性非常关键,因为它可以确定当用户选择菜单项时发生什么操作。
Recall from Listing 8 how the login menu item invokes the authorize method with permissions.
回想一下清单8中登录菜单项是如何利用权限调用authorize方法的。
The clue is a new menu item titled "Download Google Drive" that's disabled by default.
这个线索是一个新的名为“下载GoogleDrive”的菜单项,默认情况下禁用的。
Listing 2 (overlay.xul) is an overlay to add a menu item for launching the stats viewer window.
清单2 (overlay . xul)显示了一个覆盖,它添加了一个菜单项来启动stats查看器窗口。
When editing an XPath expression, the content assist will contain a menu item called "Insert Simple XPath" expression.
在编辑XPath表达式时,内容帮助将包含一个名为 “InsertSimple XPath” 表达式的菜单项。
Each menu item consists of a LinkButton control with an internal handler bound to the Click event.
每个菜单项包含一个LinkButton控件,这个LinkButton控件有一个内部绑定的点击事件处理程序。
To launch the wizard, open the menu item Tools in the main window of the client.
为了启动向导,在客户机的主窗口中打开菜单项Tools。
NAMM_COMMAND indicates that your Action menu item has been selected, and you can now perform the associated operation.
NAMM_COMMAND指出action菜单项已经选定,而且现在您可以执行相关的操作。
The Edit menu item toggles editing.
Edit菜单项控制编辑。
Execute the script using the Run external admin script context menu item of the server (Figure 5).
使用服务器的Runexternaladminscript上下文菜单项运行该脚本(图5)。
For example, the Eclipse platform defines an extension point to add a menu item to any menu.
例如,Eclipse平台可以定义一个用于将菜单项添加到菜单中的扩展点。
Just add a repository (or test the connection to the repository) by selecting the appropriate menu item.
仅仅通过选择合适的菜单项添加一个存储库(或者测试与存储库的连接)。
Namely, you identify that the com.devworks.example.map.MapLookupDelegate class is called when the Google Map menu item is selected.
也就是说,您确定出,在GoogleMap菜单项被选中时调用 com.devworks.example.map.MapLookup类。
To create a File menu with an Exit menu item, add the code in Listing 11 to Gwitter.groovy
为了创建包含Exit菜单项的File 菜单,在Gwitter.groovy 中添加清单11 中的代码
A MenuBar that is displayed at the top of the Window and that offers menu item functionality.
MenuBar:显示在Window的顶部,并提供菜单项功能。
Repeat steps 2 and 3 for every menu item you want to replace with an image.
重复2-4步,为所有的菜单项设置好Menu Image图片。
The outer element specifies the existing target menu item in Firefox, by ID - menu_ToolsPopup is the "Tools" menu.
outer元素根据ID指定Firefox中的现有目标菜单项—menu _ ToolsPopup是“Tools”菜单。
应用推荐