最后讨论的、但并非最不重要的API: RecordListener可以用于为应用程序设置事件通知。
The RecordListener, the last-but-not-least API we discussed, can be used to set up event notification for your applications.
现在我们的部件已经设置完成,并且程序准备接收用户事件。
The setup of our widget is now complete, and the program is ready to receive user events.
因此,绑定事件过滤器与事件处理程序意味着设置在特定事件发生时采取特定操作的情形。
So, binding an event filter to an event handler means you're setting up a situation in which specific actions will be taken when a particular event happens.
将其放入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).
如果全局范围要求使用事件处理程序的结果,请在全局结果变量中设置该结果。
If the global scope requires the result of the event handler, set the result in the global result variable.
如果您过去曾经编写过事件驱动的程序,那么我认为您会发现,对于设置显式事件处理循环这一常见做法,使用信号是一个令人耳目一新的变化。
If you've ever done any event-driven programming in the past, I think you'll find signals to be a refreshing change from the common practice of setting up an explicit event processing loop.
为了验证我们的系统,我们必须在实验室设置在测的应用程序,利用事件进行干扰,并且当不能适当处理事件时进行监测。
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.
可以设置事件处理程序来接收来自服务的回调。
You set up the event handler to accept the callback from the service.
可以设置用户首次向主要的内容字段输入数据时的事件处理程序,如图2所示。
You can set an event handler for the first time the user enters data into the main content field. Figure 2 illustrates.
尤其是,它将设置一个全局计数器,以对处于活动状态的事件处理程序进行计数;另外,还要设置一个变量,以在列表中保存事件处理程序的结果。
Especially, it sets up a global counter that counts the number of active event handlers as well as a variable that holds the results of the event handlers in a list.
如果整个页的生命,必须动态设置样式属性,使用事件处理程序而不CSS表达式是另一种方法。
If the style property must be set dynamically throughout the life of the page, using event handlers instead of CSS expressions is an alternative approach.
必须设置事件处理程序来捕获传入的值。
You must set up your event handler to catch the incoming value.
设想一下,您将能够引用在屏幕上呈现的任何HTML元素、更改其属性、设置由事件触发的处理程序并修改其外观,而所有这些都能即时实现。而这一切如今已成为现实。
Imagine if you could reference any HTML element rendered on the screen, change its properties, set handlers triggered by events, and modify its appearance — all instantaneously.
作为一次性设置的一部分,在WjcDispenser实例或类上提供一个订阅到特定类型的CustomEvent的事件处理程序。
As part of the one-time setup, provide an event handler subscribed to that specific type of CustomEvent on the WjcDispenser instance or class.
您在这里为onstorage事件设置一个事件处理程序。
这个处理程序阻止默认事件(提交表单)触发,将额外的ajax参数的值设置为1,使用原始表单发出一个ajax请求以获取URL和数据。
This handler prevents the default event (submitting the form) from being fired, sets the value of the extra ajax argument to 1, and makes an ajax Request using the original form for the URL and data.
此activity设置了清单1中XML文件的布局,它将几个事件处理程序连接起来。
This Activity sets the layout to the XML file in Listing 1, and it wires up a couple of event handlers.
没有使用 Listener接口,而是使用该类定义的匹配要注意的事件处理程序入口点的特性(例如actionPerformed)设置给Jython函数。
No Listener interface is used; instead attributes that match the interesting event handler entry points defined by the class (for example, actionPerformed) are set to Jython functions.
然后GoogleCalendar应用程序将转到可以选择各个日历设置(例如事件的时区和日历名称)的页面。
Then the Google Calendar application goes to a page where you can select various calendar settings, such as the time zone for the events and the name of the calendar.
在绑定事件过滤器与事件处理程序时,您是在创建cim_indicationsubscription类的实例并设置该实例的Filter和handler属性。
When you bind an event filter to an event handler, you are creating an instance of the CIM_IndicationSubscription class and setting the properties filter and handler of that instance.
如果在验证器处理程序上设置自己的or g . xml .sax .ContentHandler,该验证器处理程序将充当过滤器,验证收到的sax事件,并把事件转发到ContentHandler。
If you set your own org.xml.sax.ContentHandler on the validator handler, the validator handler ACTS as a filter that validates incoming sax events and forwards events to your ContentHandler.
在这段代码样例中,将用所需的参数设置摘要url,打开摘要,然后获得DOMNodeList中的所有事件条目,可以用foreach迭代程序来处理。
In this code sample, you set up the feed URL with the parameters needed, open the feed, then get all the event entries in a DOMNodeList, which you can process with the foreach iterator.
为您的婚礼,鸟被带到事件处理程序,并设置由专业的新娘和新郎在适当的时刻自由。
For your wedding, the birds are brought to the event by professional handlers and set free by the bride and groom at an appropriate moment.
为了方便程序使用者快速跳过启动封面直接进入程序主窗体,我们还要设置一个click事件来关闭窗体A并调用主窗体b。
In order to facilitate procedures for users to skip commencement cover fast direct access to the main program window, we need to set up a click to the incident closed Form a and Form B main Call.
它得到的一切设置应用程序启动时处理应用程序级别的事件。
It gets everything setup when the app starts and deals with application level events.
如果用户将应用程序设置为联机状态,事件处理程序会尝试重新验证用户。
If the user sets the application to the online state, the event handler attempts to revalidate the user.
下面的代码示例显示如何设置仅在某些情况下才会为其调用事件处理程序的事件。
The following code example shows how to set up an event for which the handler is only called under certain conditions.
获取或设置一个值,该值指定宿主应用程序要用于代理类型中的此事件的事件访问器方法的类型。
Gets or sets a value that specifies the kind of event accessor method the host application will use for this event in the proxy type.
获取或设置一个值,该值确定是否仍然应调用分配给资源库的处理程序,即使事件在其事件数据中被标记为已处理。
Gets or sets a value that determines whether the handler assigned to the setter should still be invoked, even if the event is marked handled in its event data.
设置事件处理程序以接收有关文档类型定义(DTD)、XML数据简化(XDR)架构和XML架构定义语言(XSD)架构验证错误的信息。
Sets an event handler for receiving information about document type definition (DTD), XML-Data Reduced (XDR) schema, and XML schema definition language (XSD) schema validation errors.
应用推荐