事件通常用于通知用户操作,例如,图形用户界面中的按钮单击或菜单选择操作。
Events are typically used to signal user actions such as button clicks or menu selections in graphical user interfaces.
在您构建该视图时,您为按钮添加了一个选择侦听器,以便应用程序能够对按钮单击作出响应。
As you're building the view, you add a selection listener to the button so that your application can respond to button clicks.
请注意,测试自动化是通过直接调用按钮控件的相关方法模拟按钮单击的,而不是通过触发事件模拟。
Notice that the test automation simulates a button click by directly invoking the button control's associated method rather than by firing an event.
现在可以转到开发人员控制台以查看TestActivity日志以及按钮单击所引发的消息。
You can go to the developer's console now to look at the TestActivity log and see the message emitted by the button click.
在所有情况下,都需要对表单按钮单击或页面重载进行响应以便利用表4中的uri来get、POST、PUT或DELETE内容。
In all cases, you will respond to the click of a form button or a page reload to GET, POST, PUT, or DELETE content using the URIs in Table 4.
尽管JSF给了您很多事件选项(菜单项选择、按钮单击,等等),但是大多数Model2依赖于更加简单的“请求接受”。
Whereas JSF gives you a host of event options -- menu item selected, button clicked, etc. -- most Model 2s rely on the more simple "request received."
所以如果应用程序为按钮单击事件关联了错误的方法,UI测试自动化不会捕捉到逻辑错误(虽然每次测试都会失败,而且您会很快发现问题)。
So the UI test automation will not catch the logic error if the application has the wrong method wired to a button click event (although every test would fail and you'd find the problem quickly).
如果您想听它的发音,可以右键单击按钮听听每个音素的发音。
If you want to hear it, you can right click on the button to hear what each sounds like.
单击该按钮可以触发刚刚定义的提交。
Clicking this button triggers the submission you just defined.
到目前为止,我讨论了用户生成的事件——用户只要按下按钮或单击链接,PHP就运行相应的脚本。
So far, I've discussed user-generated events - if the user presses a button or clicks a link, PHP runs a script.
运行时单击按钮时,不会发生任何事情。
当单击按钮时,所有属性都被触发。
用户单击按钮时,第一个简单操作将运行,显示确认框。
When the user clicks the button, the first simple action runs, displaying the confirmation box.
现在这个示例应用程序有一个大问题:虽然按钮的标签改变了,但是单击按钮时的动作没有变。
The sample application at this point has one big problem: even though the label of the button changes, the action that occurs when you click that button does not.
为定义关联,我们可以选中关联按钮,然后单击关联的源(Forum)和目标(Member)。
To define the associations, select the association button and click the source (Forum) and the target (Member).
在清单3中的例子中,我创建了一个简单的按钮,单击它会提示jQuery填入一个带有内容的。
In the example in Listing 3, I create a simple button that, when clicked, prompts jQuery to fill a with content.
通过单击Deploy按钮部署模式。
可以通过选择Fromcatalog单选按钮并单击Browse打开catalogexplorer对话框。
The catalog explorer dialog is launched by selecting the From catalog radio button, and clicking Browse.
于是,他选择Bacon前面的单选按钮并单击Findfriendsof Bacon。
To do so, he chooses the radio button before Bacon and clicks Find friends of Bacon.
为此,在testoptions内,选择Supplied testset单选按钮并单击set。
To do this, in test options, select the Supplied test set radio button and click set.
当用户单击按钮时,就会调用getdata函数。
When a user clicks on the button, it invokes the getData function.
您将添加一个获取用户名的文本框,以及一个Submit按钮,单击这个按钮,就会打印出 “Hello Worldfrom <username>”。
You will add a text box that will take the user's name and a Submit button which, when clicked, will print "Hello World from <user name>."
然后,它在按钮上注册一个单击事件,所以当按钮被单击时,第一个表单会通过Ajax 方式提交。
Then, a click-listener is installed on the button, so that when the button is clicked, the first form is submitted via Ajax.
单击Details按钮,在模块编辑器中,单击模块列表正下方的Add…按钮。
Click on the Details button and, in the modules editor, click the Add... button just under the module list.
阅读许可协议,如果您接受许可条款,单击Accept单选按钮,然后单击Next。
Read the license, click the accept radio button if you accept the licensing terms, and click Next.
如果已经设置了HOME变量,那么只需记下其内容(稍后需要它);否则,单击EnvironmentVariables按钮,然后单击new以添加home变量。
If a HOME variable is already set, then simply note the location (you'll need it in a moment) or click the Environment Variables button and then click New to add a HOME variable.
BuddyListDelegate接口将处理先前定义的 viewAction按钮的单击事件。
The BuddyListDelegate interface handles clicks to the viewAction button, which you defined previously.
如果许可协议是可接受的,选择Iagree单选按钮并单击Next按钮。
If the license agreement is acceptable, select the I agree radio button and click the Next button.
如果许可协议是可以接受的,选择Iaccept…单选按钮,然后单击Next按钮继续安装。
If the license agreement is acceptable, select the I accept... radio button and then click the Next button to continue with the install.
如果许可协议是可以接受的,选择Iaccept…单选按钮,然后单击Next按钮继续安装。
If the license agreement is acceptable, select the I accept... radio button and then click the Next button to continue with the install.
应用推荐