com.ibm.jusb.event
Class EventListenerImp

java.lang.Object
  extended by com.ibm.jusb.event.EventListenerImp
All Implemented Interfaces:
java.util.EventListener
Direct Known Subclasses:
UsbDeviceListenerImp, UsbPipeListenerImp, UsbServicesListenerImp

public class EventListenerImp
extends java.lang.Object
implements java.util.EventListener

Implementation of EventListener.

Author:
Dan Streetman

Constructor Summary
EventListenerImp()
           
 
Method Summary
 void addEventListener(java.util.EventListener listener)
          Add a listener.
 void clear()
          Clear all listeners.
 java.lang.String getName()
           
 boolean isEmpty()
           
 void removeEventListener(java.util.EventListener listener)
          Remove a listener.
 void setName(java.lang.String n)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EventListenerImp

public EventListenerImp()
Method Detail

addEventListener

public void addEventListener(java.util.EventListener listener)
Add a listener.

Parameters:
listener - The listener to add.

removeEventListener

public void removeEventListener(java.util.EventListener listener)
Remove a listener.

Parameters:
listener - the listener to remove.

clear

public void clear()
Clear all listeners.


isEmpty

public boolean isEmpty()
Returns:
If this has no listeners.

setName

public void setName(java.lang.String n)
Parameters:
n - The name to use.

getName

public java.lang.String getName()
Returns:
The name in use.