清单4将change_url函数绑定到对“Go !”按钮的单击事件中。
Listing 4 binds the function change_url to a click of the "Go!" button.
BuddyListDelegate接口将处理先前定义的 viewAction按钮的单击事件。
The BuddyListDelegate interface handles clicks to the viewAction button, which you defined previously.
到目前为止,我讨论了用户生成的事件——用户只要按下按钮或单击链接,PHP就运行相应的脚本。
So far, I've discussed user-generated events - if the user presses a button or clicks a link, PHP runs a script.
所以如果应用程序为按钮单击事件关联了错误的方法,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).
如果研究一下JSF的标准生命周期,不难发现用户通常需要在Web页面上生成一个事件(比如,通过单击一个按钮)来调用GUI刷新。
If you check the standard life cycle of JSF, you will find that the user normally needs to produce an event on the Web page (by clicking a button, for example) to invoke the GUI refresh.
尽管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."
请注意,事件处理并不局限于按钮,还包括处理在任何div、span等上进行的鼠标单击。
Note that these are not limited to just buttons and such, but can be made to handle a mouse click on any div, span, and so on.
单击Report按钮显示为mighelp容器生成的EPCIS事件。
Click on the Report button to display the EPCIS events generated for the MigHelp container.
将其放入web页面中,然后激活事件处理程序(单击按钮,在域之间按tab键切换焦点,或者使用设置的任何方法来触发请求)。
Put it into your Web page and then activate your event handler (click a button, TAB out of a field, or use whatever method you set up to trigger a request).
最后,注意上述代码获得一个在布局XML中创建的按钮的句柄,并添加一个单击事件处理程序。
Finally, notice that we get a handle on the button we created in the layout XML and add a click event handler.
请注意,测试自动化是通过直接调用按钮控件的相关方法模拟按钮单击的,而不是通过触发事件模拟。
Notice that the test automation simulates a button click by directly invoking the button control's associated method rather than by firing an event.
扩展和插件使用的主要区别在单击两个按钮的事件处理程序时可以看到。
The primary difference between the use of extensions and plug-ins can be seen in the click event handlers for the two buttons.
处理单击ok按钮时的事件。
当事件触发时,比如用户单击了一个按钮,消息就会异步发送给服务器上的组件。
When an event is triggered, such as when a user clicks on a button, a message can be sent to the component on the server asynchronously.
图18显示最初生成的输出,以及单击按钮触发事件后的输出。
Figure 18 shows the generated output initially and the output after the event has been fired by clicking the button.
单击应用程序的后退和前进按钮时,不会在堆栈中添加新的事件,而是移动堆栈的指针。
When clicking the backward and forward buttons for the application, we won't be adding new events to the stack but we will be moving the pointer within the stack.
如果你想看看这样到底有多坏,写一个简单的按钮,并在其单击事件中添加Thread . sleep(2000)这段代码。
If you want to see how bad this can look, write a simple application with a button that invokes Thread.sleep (2000) in its OnClickListener.
用户可以通过单击列表视图中的Add按钮添加事件。
The user can add events by clicking the add button in the listing view.
ButtonWithCallbacks不仅处理按钮的一些本质行为(比如单击),它同时还通过调用回调函数处理单击事件的通知。
Not only does ButtonWithCallbacks handle behaviors essential to buttons (like clicking), it also handles notification of click events by invoking the callback functions.
单击addEvent按钮,然后选择DataChange作为事件类型,表示当来自属性代理的数据发生变化时,将执行相应的操作。
Click the Add event button, and select data change as the event type, indicating that whenever the data from the property broker changes, the operations are executed.
然后添加事件侦听程序以处理文本区域中的击键,并且在单击submit按钮后执行搜索。
Event listeners are then added to process the keystrokes in the text area, as well as executing the search when the Submit button is clicked.
在控制器类中,可以定义Swing事件(例如单击按钮或更改文本字段)的处理程序,并控制模型的状态。
The controller class is where you define handlers for Swing events (such as button clicks and text-field changes) and control the state of the model.
事件可能会由任何代码引发,并经常为响应单击按钮等用户操作由高度信任的系统代码不断引发。
Events can potentially be raised by any code, and are frequently raised by highly trusted system code in response to user actions such as clicking a button.
事件发生在表单的“重置”按钮被单击的时候。
Onreset incident took place in the form of "reset" button is click of times.
事件通常用于通知用户操作,例如,图形用户界面中的按钮单击或菜单选择操作。
Events are typically used to signal user actions such as button clicks or menu selections in graphical user interfaces.
文档中的事件(例如将光标移入特定区域,或单击按钮和菜单项)可以调用程序集中的事件处理方法。
Events in the document, for example moving the cursor into specific areas or clicking buttons and menu items, can call event-handling methods in the assembly.
文档中的事件(例如将光标移入特定区域,或单击按钮和菜单项)可以调用程序集中的事件处理方法。
Events in the document, for example moving the cursor into specific areas or clicking buttons and menu items, can call event-handling methods in the assembly.
应用推荐