Finally, notice that we get a handle on the button we created in the layout XML and add a click event handler.
最后,注意上述代码获得一个在布局XML中创建的按钮的句柄,并添加一个单击事件处理程序。
How does the browser handle these items and how does it map event handlers, functions, and styles to that textual markup?
浏览器如何处理这些项,如果将事件处理程序、函数和样式映射到该文本标记?
Mobile Safari defines an onorientationchange event handler and a window.orientation property to handle the orientation events.
MobileSafari将定义onorientationchange事件处理程序和window . orientation属性以处理方向事件。
Method, threads that wait on the event handle proceed immediately without blocking. A manual reset event ACTS like the gate of a corral.
方法便可以重置它,从而使在该事件句柄上等待的线程立即继续而不受阻止。
Main : the main function creates the socket to be used for listening to connections, and then creates the callback for accept to handle each connection through the event handler.
main:主函数创建用来监听连接的套接字,然后创建accept的回调函数以便通过事件处理函数处理每个连接。
You can call me in the event of an emergency you can't handle.
万一有你不能处理的紧急情况,你可以打电话给我。
To verify our system, we must set up the application under test in the lab, perturb it with events, and detect when it fails to handle an event properly.
为了验证我们的系统,我们必须在实验室设置在测的应用程序,利用事件进行干扰,并且当不能适当处理事件时进行监测。
This function returns handle to the event object.
这个函数返回该事件对象的句柄。
This function returns the handle to the event object and can be used in subsequent calls to the event object.
这个函数返回事件对象的句柄,这样就可以在后续的调用中使用这个事件对象了。
The ECM step completion widget uses event sending to handle all work items that dispatch work.
ECM步骤完成小部件使用事件发送来处理分发工作的所有工作项目。
These two sockets each handle one event: data received.
这两个套接字分别处理一个事件:接收到的数据。
It empowers a programmer to handle an asynchronous event.
它使得程序员可以处理异步事件。
As the number of clients connect, new events to handle the client connection are added to the event queue and removed when the client disconnects.
当客户端连接时,在事件队列中添加新事件以处理客户端连接;当客户端中断连接时删除事件。
The normalized event count makes you handle events as if you collect them during the whole data collection.
规范化的事件计数值使我们能够像是在整个数据收集过程中收集事件那样处理事件。
Menus also handle their own events, so there's no need to register event listeners on the items in your menu.
菜单会自行处理它们的事件,所以你不必为你菜单中的项目注册事件侦听器。
The language defines a powerful event model that obviates the need for custom scripts to handle simple, form-related tasks.
该语言定义了功能强大的事件模型,从而可以不再需要定制脚本以处理简单的与表单相关的任务。
In any event, the mock implementation should definitely not try to handle every possible stock symbol or access a database with real-time data.
在任何情况下,模拟实现肯定都不应该试图处理每个可能的股票代码或访问具有实时数据的数据库。
Figure 1 shows this concept, with opportunities to hook in events to handle security aspects, or a particular HTTP method (such as GET or POST) event.
图1展示了这个概念,并且还包括了处理安全性方面问题的事件和特定的HTTP方法(比如GET或POST)事件。
Defines the events that this widget should handle, and the method that is called when the event is received.
定义小部件应该处理的事件,以及收到事件时调用的方法。
The message informs the delegate of an event that the delegating object is about to handle or has just handled.
消息通知事件的委托方法,委托对象将要处理或已经处理。
Starting at the root of the document tree and moving down to the element where the event was triggered, each element is given the opportunity to handle the event.
从文档树的根开始向下移动到触发事件的元素,其中每个元素都有机会处理该事件。
In the event of any quality problem of products provided by Party A, both sides shall handle the problem through negotiation,till both sides satisfy.
乙方发现甲方提供的产品有任何质量问题时,双方协商处理,直至双方满意为止。
In the event that a lawyer or an agent is appointed to handle the arbitration matters, a letter of authorization shall be submitted to the arbitration commission.
委托律师和其他代理人进行仲裁活动的,应当向仲裁委员会提交授权委托书。
Below, in Listing 13, we show how we handle the second event, the MenuEvent.
在下面的清单13中,我们将显示如何处理第二个事件MenuEvent。
Some of these sections include application composition, the SipFactory API, and a lot of event listeners to handle events in the protocol handling.
其中一些部分包含了应用程序组合、SipFactoryAPI和用于在协议处理中处理事件的很多事件侦听器。
To actually handle each request, the libevent library provides an event mechanism that ACTS as a wrapper around the underlying network backend.
为了实际处理每个请求,libevent库提供一种事件机制,它作为底层网络后端的包装器。
For example, in the initial state of Inactive, the only expected event is mouseover, so you can define a function to handle that situation, as shown in Listing 9.
例如,在Inactive的初始状态中,可能出现的惟一事件是mouseover,所以可以定义一个处理此情况的函数,见清单9。
The current draft of the standard already identifies the main topics of the event system that you must handle as part of the standardization process, including.
该标准的当前草案已经确认了事件系统的主要主题,您必须将这些主题作为标准化过程的一部分来处理,包括。
To invoke this method, you need to handle the "button pressed" event for the operation buttons, which is done by simply assigning a method named onclick to each button. For example.
要调用此方法,需要处理操作按钮的“按钮按下”事件,这可通过向每个按钮分配一个名为onclick的方法完成。
The Swing adaptors allow you to subclass the adaptor and just override the methods you need to handle for the event.
Swing适配器允许您子类化适配器,并且可以仅重写处理事件所需的方法。
应用推荐