比如,按钮有单击事件。
For example, a Button control contains a Click event that is raised when the Button is clicked.
当这发生时,鼠标单击事件从文档根行进到目标(li)并再次返回。
When that happens, the mouse click event travels from the root of the document to the target (li) and back again. The sequence is.
第二个修改是扩展搜索结果列表,这样用户就可以单击事件报告的标题并查看整个报告。
The second is to extend the search results list so that a user can click on the title of an incident report and see the full report.
如果有一个鼠标单击事件发生,它将在客户区中鼠标光标的位置处绘制这个字符串。
If at least one mouse click has occurred, it draws the string in the client area at the mouse position.
最后,注意上述代码获得一个在布局XML中创建的按钮的句柄,并添加一个单击事件处理程序。
Finally, notice that we get a handle on the button we created in the layout XML and add a click event handler.
在前一节,您已经看见两种绑定到单击事件的方法:YUI的Event和Dojo的connect。
In the previous section, you saw two ways of binding to the click event: YUI's event and Dojo's connect.
然后,它在按钮上注册一个单击事件,所以当按钮被单击时,第一个表单会通过Ajax 方式提交。
Then, a click-listener is installed on the button, so that when the button is clicked, the first form is submitted via Ajax.
BuddyListDelegate接口将处理先前定义的 viewAction按钮的单击事件。
The BuddyListDelegate interface handles clicks to the viewAction button, which you defined previously.
模板本身显示CDA条目的文本,该条目是从此前用原始单击事件相关联id(原始锚链接的ID)所创建的缓存中提取的。
The template itself displays the text of the CDA entry, extracted from the cache created earlier using the ID associated with the original click event (the ID of the original anchor link).
如果没有事件处理程序处理这个单击事件,它就会沿着同样的路线再返回到根元素,这时根元素默认的单击处理程序将忽略该事件。
If no event handlers processed the click, the event will travel back up the same path until it comes back to the root element, where the default click handler will ignore it.
在本文中,我们对应用程序进行了改动,让其只对应于单击事件来检索数据,因此,我们不会因鼠标在其上移动而为此图像拉出数据。
In this application, we changed the application to only retrieve data on a click, so we weren't pulling data for every image the mouse zoomed over.
该自定义单击处理程序可为所有菜单项处理单击事件(请参见示例应用程序中的方法MenuItemClickHandler)。
The custom click handler handles clicking events for all menu items (see the method MenuItemClickHandler in the sample application).
ButtonWithCallbacks不仅处理按钮的一些本质行为(比如单击),它同时还通过调用回调函数处理单击事件的通知。
Not only does ButtonWithCallbacks handle behaviors essential to buttons (like clicking), it also handles notification of click events by invoking the callback functions.
如果你想看看这样到底有多坏,写一个简单的按钮,并在其单击事件中添加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.
所以如果应用程序为按钮单击事件关联了错误的方法,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).
在出现单击事件时,它将调用update函数并传递可以绑定到表单字段name和identifier的employee对象。
On the click event, it calls the update function and passes on the employee object, which is bondable to the form fields, name, and identifier.
控制器处理所有UI事件,例如单击按钮、选择菜单以及更改文本字段。
The controller handles all UI events, such as button clicks, menu selection, and text-field changes.
请注意,测试自动化是通过直接调用按钮控件的相关方法模拟按钮单击的,而不是通过触发事件模拟。
Notice that the test automation simulates a button click by directly invoking the button control's associated method rather than by firing an event.
在浏览器中,通常为响应用户操作而生成事件:当用户单击按钮时,按钮产生一个ONCLICK事件。
In a browser, events are typically generated in response to user actions: a button fires an ONCLICK event when the user clicks.
该函数将接收关于单击的事件信息,不过本例中并没有使用到。
This function receives the event details for the click, though they are not used in this case.
当我们在应用程序中单击的时候,新的事件将被压入堆栈顶部,指针指向最后添加的元素。
As we click around in the application, new events will be pushed onto the top of the stack, and the pointer will identify the last element added.
扩展和插件使用的主要区别在单击两个按钮的事件处理程序时可以看到。
The primary difference between the use of extensions and plug-ins can be seen in the click event handlers for the two buttons.
为每一个清单元素添加事件单击处理程序以便通过填充选择的字段对单击作出响应。
An event click handler is added for every list element to respond on a click by populating the fields with the selection.
它的优点是您不受限于如鼠标单击之类的预定义事件。
The advantage here is that you're not limited to predefined events such as a mouse click.
要查看模拟接收和返回了哪些值,请单击模拟事件。
To see what values the emulation received and then returned, click the Emulate event.
矩形和文本元素对不同的事件 --如移动鼠标和单击 --做出反应,产生一种简单的滚动效果。
The rectangle and text elements react to the different events, such as moving the mouse and clicking, to create a simple rollover effect.
仅在记录模式下,单击计时事件将被输出到STDOUT中,以及这些特殊事件的散列签名。
In record mode only, the click-timing events are printed to STDOUT, along with the hash signature for those particular events.
这包括了如何将事件—包括用户级事件,如单击按钮—转换成操作和过程。
This will include how events - including user level events such as clicking on a button - are translated into operations and processes.
这包括了如何将事件—包括用户级事件,如单击按钮—转换成操作和过程。
This will include how events - including user level events such as clicking on a button - are translated into operations and processes.
应用推荐