Most visited

Recently visited

Added in API level 3

PropertyChangeListenerProxy

public class PropertyChangeListenerProxy
extends EventListenerProxy<PropertyChangeListener> implements PropertyChangeListener

java.lang.Object
   ↳ java.util.EventListenerProxy<java.beans.PropertyChangeListener>
     ↳ java.beans.PropertyChangeListenerProxy


一个扩展了EventListenerProxy类,专门用于添加具有“绑定”属性的PropertyChangeListener 此类的实例可以作为PropertyChangeListener添加到支持触发属性更改事件的bean。

如果对象有 getPropertyChangeListeners方法,则返回的数组可能是 PropertyChangeListenerPropertyChangeListenerProxy对象的混合。

也可以看看:

Summary

Public constructors

PropertyChangeListenerProxy(String propertyName, PropertyChangeListener listener)

PropertyChangeListener绑定到特定属性的构造函数。

Public methods

String getPropertyName()

返回与侦听器关联的命名属性的名称。

void propertyChange(PropertyChangeEvent event)

将属性更改事件转发给侦听器代理。

Inherited methods

From class java.util.EventListenerProxy
From class java.lang.Object
From interface java.beans.PropertyChangeListener

Public constructors

PropertyChangeListenerProxy

Added in API level 3
PropertyChangeListenerProxy (String propertyName, 
                PropertyChangeListener listener)

PropertyChangeListener绑定到特定属性的构造函数。

Parameters
propertyName String: the name of the property to listen on
listener PropertyChangeListener: the listener object

Public methods

getPropertyName

Added in API level 3
String getPropertyName ()

返回与侦听器关联的命名属性的名称。

Returns
String the name of the named property associated with the listener

propertyChange

Added in API level 3
void propertyChange (PropertyChangeEvent event)

将属性更改事件转发给侦听器代理。

Parameters
event PropertyChangeEvent: the property change event

Hooray!