您应该把这个类当作事件侦听器。
他们有时候也被称为事件侦听器。
定义一个事件侦听器并将其注册至视图。
一个事件侦听器,对来自每个普通代理事件进行计数。
An event listener that counts events coming from each General Agent.
当事件侦听器生成颜色时,如何去除渐变?
How would I go about getting rid of the gradient when the color is generated by the event listener?
我们需要解除绑定的事件侦听器在指示当角开始破坏?
Do we need to unbind event listeners in directives when angular starts to destroy?
正如前面提到的,EDA事件源和事件侦听器采用松散耦合方式。
As mentioned earlier, EDA event sources and event listeners are loosely coupled.
菜单会自行处理它们的事件,所以你不必为你菜单中的项目注册事件侦听器。
Menus also handle their own events, so there's no need to register event listeners on the items in your menu.
getEventManager—返回添加和删除事件侦听器的管理器对象。
GetEventManager - Returns a manager object that adds and removes event listeners.
该模块必须作为一个浏览器的事件侦听器来实现,目的是为接收下载以及与文档相关的事件。
This module must register as an event listener with the browser in order to receive the notification of downloads and document-specific events. By making use of ATL smart Pointers.
完成此请求后,将调用 loadChart()函数,并删除当前事件侦听器。
When this request is complete, the loadChart() function is called and the current event listener is removed.
清单4显示了WeatherReporter应用程序中实现的两个事件侦听器。
Listing 4 shows the implementation of two event listeners in the Weather Reporter application.
当我使用此处显示的事件侦听器方法修改列标题颜色时>,我得到一个默认渐变。
When I modify the column header colors using the event listener method shown here, I get a default gradient.
Swing框架以事件侦听器的形式广泛利用了观察者模式(也称为发布-订阅模式)。
The Swing framework makes extensive use of the Observer pattern (also known as the publish-subscribe pattern) in the form of event listeners.
在头两行和最后两行之间,您使用Swing中用于绑定事件的同一风格来定义一个事件侦听器。
Between those lines, you define an event listener using an idiom similar to what you would use to bind an event in Swing.
在本例中,您是在寻找具有报头样式的元素,并对返回的每个元素应用一个事件侦听器(更多介绍见下节)。
In this case, you're looking for any elements that have the header style, and you then apply an event listener to each element returned (more on that in the next section).
CCXML比大多数VoiceXML实现更为高级,提供了对回叫、事件侦听器和多路及多方会话的支持。
CCXML is more advanced than most VoiceXML implementations, offering support for callbacks, event listeners, and multi-line and multi-party sessions.
其中一些部分包含了应用程序组合、SipFactoryAPI和用于在协议处理中处理事件的很多事件侦听器。
Some of these sections include application composition, the SipFactory API, and a lot of event listeners to handle events in the protocol handling.
如果不使用dijit,则应首先查找DOM节点,然后使用dojo . connect来绑定事件侦听器。
If dijits are not used, the DOM nodes should be found first, and then dojo.connect is used to bind event listeners.
收到每个带有 header样式的元素后,用forEach方法遍历集合,对每个元素应用一个事件侦听器。
You're given every element with the header style, and you then iterate over that collection with the forEach method, applying an event listener to each element.
可以用熟悉的侦听器模式在GWT中执行事件处理。
You use the familiar Listener pattern to perform event handling in GWT.
侦听器只有在发生与服务有关的事件时才会得到调用。
The listener is called only when events relevant to that service occur.
当系统中某些事件发生时,通知就会被发给所有的侦听器。
When certain events occur in the system, notifications are emitted to all listeners.
如果事件在传输队列(位于侦听器前)中堆积,则请同时增大侦听器和源适配器控制器的线程池的大小。
If events are building up in the transport queue (in front of the listener), increase the size of the thread pool for both the listener and the source adapter controller.
对于不小心的事件源,侦听器会造成麻烦的另一个方式是:抛出未检测的异常。
Another way that listeners can make trouble for unwary event sources is throwing an unchecked exception.
因此在下一篇文章中,您将学习如何设置侦听器来捕获这些事件,并使用定制操作回应。
You'll learn how to set up listeners to catch these events and react with custom behavior.
而应该给组件安装一个焦点侦听器,并查找FOCUS_GAINED事件。
Install a focus listener on the component and look for the FOCUS_GAINED event.
这些类负责决定什么时候它们需要触发事件,什么时候确实触发事件,以及什么时候调用所有登记的侦听器。
These classes decide when they need to fire events, and when they do, they call all the listeners that are registered.
文档声明鼠标滚轮事件向上传递容器层次结构,但错误导致这件事无法发生,所以您需要为按钮增加一个侦听器。
Documentation states that mouse wheel events propagate up the container hierarchy, but the bug prevents this from happening so you'll need to attach the listener to the button.
另外一项可以用来找到隐藏失效侦听器的技术是:防止指定侦听器对象在指定事件源上登记两次。
Another technique that can sometimes be used to find otherwise hidden lapsed listeners is preventing a given listener object from being registered twice with a given event source.
应用推荐