Listing 5. An example listener interface.
清单5. listener接口示例。
If you want to know the value of the attribute, you must register a listener object that implements the StorageServiceListener interface.
如果希望知道属性的值,必须注册一个实现StorageServiceListener接口的侦听器对象。
Next, the client, who is also a Listener because it implements the Listener interface, must register with the Speaker and pass in a reference to their Listener interface.
接着,客户机(即Listener,因为它实现Listener接口)必须注册到Speaker,并将引用传给Listener接口。
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.
没有使用 Listener接口,而是使用该类定义的匹配要注意的事件处理程序入口点的特性(例如actionPerformed)设置给Jython函数。
The XXXListener referenced here is a listener object, extending the EventListener interface, that waits for various events to happen within the component associated with the listener.
XXListener在这里指的是一个监听器对象,它扩展了EventListener接口,等候与监听器关联的组件中的各种事件发生。
With this definition we define two new CORBA interface types: Listener and Speaker.
使用这个定义,我们定义了两个新的CORBA接口类型:Listener和Speaker 。
Lines 11-13 create a standard implementation of the NotificationFilter interface, an optional parameter for listener registration.
行11 - 13创建NotificationFilter接口的标准实现,这个标准实现是用于进行侦听器注册的一个可选参数。
According to the requirements of the model, listener class and it's object will be created to register to the event source and realize the specific method in interface.
根据模型要求,要创建监听器类及其对象,完成向事件源的注册并实现接口中的特定方法。
Use this to request a typed object such as an interface for setting properties or getting status from the appropriate layer in the channel listener stack.
使用此方法可请求从通道侦听器堆栈的适当层返回类型化对象,如用于设置属性或获取状态的接口。
Use this to request a typed object such as an interface for setting properties or getting status from the appropriate layer in the channel listener stack.
使用此方法可请求从通道侦听器堆栈的适当层返回类型化对象,如用于设置属性或获取状态的接口。
应用推荐