ar.com.da.swing.event
Class EventSupport<ListenerType extends java.util.EventListener>
java.lang.Object
ar.com.da.swing.event.EventSupport<ListenerType>
- All Implemented Interfaces:
- java.io.Serializable, java.lang.reflect.InvocationHandler
public class EventSupport<ListenerType extends java.util.EventListener>
- extends java.lang.Object
- implements java.lang.reflect.InvocationHandler, java.io.Serializable
Support class for event management and dispatching
It generates a listener proxy which dispatchs events on every listener method
- Author:
- Carlos Descalzi
- See Also:
- Serialized Form
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
createSupport
public static <ListenerType extends java.util.EventListener> EventSupport<ListenerType> createSupport(java.lang.Class<ListenerType> listenerType)
getProxy
public ListenerType getProxy()
addListener
public void addListener(ListenerType listener)
removeListener
public void removeListener(ListenerType listener)
invoke
public java.lang.Object invoke(java.lang.Object proxy,
java.lang.reflect.Method method,
java.lang.Object[] args)
throws java.lang.Throwable
- Specified by:
invoke in interface java.lang.reflect.InvocationHandler
- Throws:
java.lang.Throwable
Copyright © 2006 null. All Rights Reserved.