java.util
Class EventListenerProxy

java.lang.Object sample code for java.lang.Object definition code for java.lang.Object 
  extended by java.util.EventListenerProxy
All Implemented Interfaces:
EventListener sample code for java.util.EventListener definition code for java.util.EventListener
Direct Known Subclasses:
AWTEventListenerProxy sample code for java.awt.event.AWTEventListenerProxy definition code for java.awt.event.AWTEventListenerProxy , PropertyChangeListenerProxy sample code for java.beans.PropertyChangeListenerProxy definition code for java.beans.PropertyChangeListenerProxy , VetoableChangeListenerProxy sample code for java.beans.VetoableChangeListenerProxy definition code for java.beans.VetoableChangeListenerProxy

public abstract class EventListenerProxy
extends Object sample code for java.lang.Object definition code for java.lang.Object
implements EventListener sample code for java.util.EventListener definition code for java.util.EventListener

An abstract wrapper class for an EventListener class which associates a set of additional parameters with the listener. Subclasses must provide the storage and accessor methods for the additional arguments or parameters. Subclasses of EventListenerProxy may be returned by getListeners() methods as a way of associating named properties with their listeners. For example, a Bean which supports named properties would have a two argument method signature for adding a PropertyChangeListener for a property: public void addPropertyChangeListener(String propertyName, PropertyChangeListener listener); If the Bean also implemented the zero argument get listener method: public PropertyChangeListener[] getPropertyChangeListeners(); then the array may contain inner PropertyChangeListeners which are also PropertyChangeListenerProxy objects. If the calling method is interested in retrieving the named property then it would have to test the element to see if it is a proxy class.

Since:
1.4

Constructor Summary
EventListenerProxy sample code for java.util.EventListenerProxy.EventListenerProxy(java.util.EventListener) definition code for java.util.EventListenerProxy.EventListenerProxy(java.util.EventListener) (EventListener sample code for java.util.EventListener definition code for java.util.EventListener  listener)
           
 
Method Summary
 EventListener sample code for java.util.EventListener definition code for java.util.EventListener getListener sample code for java.util.EventListenerProxy.getListener() definition code for java.util.EventListenerProxy.getListener() ()
           
 
Methods inherited from class java.lang.Object sample code for java.lang.Object definition code for java.lang.Object
clone sample code for java.lang.Object.clone() definition code for java.lang.Object.clone() , equals sample code for java.lang.Object.equals(java.lang.Object) definition code for java.lang.Object.equals(java.lang.Object) , finalize sample code for java.lang.Object.finalize() definition code for java.lang.Object.finalize() , getClass sample code for java.lang.Object.getClass() definition code for java.lang.Object.getClass() , hashCode sample code for java.lang.Object.hashCode() definition code for java.lang.Object.hashCode() , notify sample code for java.lang.Object.notify() definition code for java.lang.Object.notify() , notifyAll sample code for java.lang.Object.notifyAll() definition code for java.lang.Object.notifyAll() , toString sample code for java.lang.Object.toString() definition code for java.lang.Object.toString() , wait sample code for java.lang.Object.wait() definition code for java.lang.Object.wait() , wait sample code for java.lang.Object.wait(long) definition code for java.lang.Object.wait(long) , wait sample code for java.lang.Object.wait(long, int) definition code for java.lang.Object.wait(long, int)
 

Constructor Detail

EventListenerProxy sample code for java.util.EventListenerProxy(java.util.EventListener) definition code for java.util.EventListenerProxy(java.util.EventListener)

public EventListenerProxy(EventListener sample code for java.util.EventListener definition code for java.util.EventListener  listener)
Parameters:
listener - The listener object.
Method Detail

getListener sample code for java.util.EventListenerProxy.getListener() definition code for java.util.EventListenerProxy.getListener()

public EventListener sample code for java.util.EventListener definition code for java.util.EventListener  getListener()
Returns:
The listener associated with this proxy.