如何创建一个引用一个匿名注册侦听器处理程序?
How to create a reference to an anonymouse addEventListener handler?
基本上,您先实现侦听器,然后注册侦听器,这样您会发现将来的变化。
Basically, you implement the listener, then register the listener, and you'll find about future changes.
我们在这里传递了注册侦听器时所用的ObjectName和侦听器。
Here we pass the same ObjectName and listener which we used to register the listener.
定义一个事件侦听器并将其注册至视图。
无论何时在服务器上接收到通知,它几乎是立刻被发送(或者说“推”)到客户机并被传递给已注册的侦听器。
Whenever a notification is received on the server, it is almost immediately sent (or "pushed") to the client and handed to the registered listeners.
通过注册为服务侦听器,我们可得知服务开始和停止的时间。
By registering as a service listener, we are notified when that service starts and stops.
侦听器可以与服务器注册在相同的进程中,或者注册在相同或不同机器上的一个远程进程中。
Listeners can be registered in the same process as the server or in a remote process on the same or different machine.
控制台还注册属性更改侦听器。
菜单会自行处理它们的事件,所以你不必为你菜单中的项目注册事件侦听器。
Menus also handle their own events, so there's no need to register event listeners on the items in your menu.
行17执行侦听器注册。
通过将侦听器注册到上行服务器可以保证启动或停止下行服务器时您会收到通知。
By registering a listener on the upstream server, you can be assured that you will receive notification when a downstream server is started or stopped.
清单1显示了该如何将侦听器注册到一个类以及如何从一个类中解除侦听器的注册。
Listing 1 shows how to register and de-register listeners to a class.
假设所有的库存更改都是添加或删除书籍这类动作的结果,那么可以在每次发生这些动作的时候通知所有注册到Inventory类的侦听器。
Assuming any inventory changes are the result of actions such as adding or removing books, you can notify all the listeners registered to the inventory class every time these actions occur.
扩展的注册方法的另一个优点就是:它可将侦听器添加到还未存在的MBean。
The other advantage of the extended registration method is that it will add listeners to MBeans which do not yet exist.
这种功能上的增加用处之大简直令人难以置信,因为它允许您用部署管理器注册一个通知侦听器以获得来自远程服务器上的MBean的通知。
This is an incredibly useful addition, as it allows you to register a single notification listener with the deployment manager to get notifications from MBeans on remote servers.
消息队列使用者注册为消息队列侦听器。
Message queue consumer is registered as a message queue listener.
ApacheSOAP 2.2提供了一个可插的故障处理机制,可以将一个或多个故障侦听器注册到这种机制中来处理故障。
Apache SOAP 2.2 provides a pluggable fault-handling mechanism into which one or more fault listeners may be registered to process faults.
例如,当股票价格改变时,如果要通知servlet,它可以在知名的EventSource上注册一个侦听器。
For example, if a servlet wants to be notified when a stock price has changed, it can register a listener on a well-known EventSource.
行11 - 13创建NotificationFilter接口的标准实现,这个标准实现是用于进行侦听器注册的一个可选参数。
Lines 11-13 create a standard implementation of the NotificationFilter interface, an optional parameter for listener registration.
Jersey提供一个基于过滤器的侦听器框架,该框架允许注册两种类型的过滤器。
Jersey provides a filter-based Interceptor framework that allows registering two types of filters.
同样,如果您已经注册了侦听器,您可能会接收到一个stopping或stopped通知,具体接到哪一个通知要取决于服务器的实际停止速度(记住,通知是异步的)。
Similarly, if you have a listener already registered, you might receive a stopping or stopped notification, depending on how fast the server actually stops (remember notifications are asynchronous).
如果希望知道属性的值,必须注册一个实现StorageServiceListener接口的侦听器对象。
If you want to know the value of the attribute, you must register a listener object that implements the StorageServiceListener interface.
因此,如果一个侦听器被注册到了一个MBean 集合,那么添加到该集合的其他 MBean就会自动将该侦听器添加给自己。
So if a listener was registered to a set of MBeans, additional MBeans added to that same set would have the listener automatically added to it.
为了在服务器进程中注册一个通知侦听器,您可以使用servlet,然后执行与上面一样的通用步骤。
To register a notification listener in the server process, you could use a servlet and perform the same general steps as above.
将侦听器端口放在 qm.ini文件的TCP节中(或Windows注册表中),以便那些端口与队列管理器很好地关联。
Place the listener port in the qm.ini file in the TCP stanza (or in the Windows Registry) so that ports are well associated with queue managers.
要从同一个对象接收多个事件,你必须为每个事件注册你的侦听器。
To receive multiple events from the same object, you must register your listener for each event.
获得了StorageComp对象的句柄后,我们使用它将新类注册为ServerStorage服务的侦听器。
After we have the handle to the StorageComp object, we use it to register the new class as a listener for the Server Storage service.
注册一个能侦听服务器端变更的侦听器。
Registering a listener looking for changes on the server side.
JScrollPane组件甚至随预注册的侦听器一起提供,所以当这个组件获得焦点且用户移动鼠标滚轮时窗格将会滚动。
The JScrollPane component even comes with a pre-registered listener, so the pane will scroll when it has focus and the user moves the wheel.
每次为已注册的侦听器进行handleNotification调用时都要传递注册该侦听器期间传递的那个handback对象。
The exact handback object passed during listener registration is passed on each handleNotification call for the registered listener.
应用推荐