javax.usb.event
Class UsbServicesEvent

java.lang.Object
  extended byjava.util.EventObject
      extended byjavax.usb.event.UsbServicesEvent
All Implemented Interfaces:
java.io.Serializable

public class UsbServicesEvent
extends java.util.EventObject

Class for a USB services event.

Author:
E. Michael Maximilien, Dan Streetman
See Also:
Serialized Form

Field Summary
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
UsbServicesEvent(UsbServices source, UsbDevice device)
          Constructor.
 
Method Summary
 UsbDevice getUsbDevice()
          Get the UsbDevice.
 UsbServices getUsbServices()
          Get the UsbServices.
 
Methods inherited from class java.util.EventObject
getSource, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

UsbServicesEvent

public UsbServicesEvent(UsbServices source,
                        UsbDevice device)
Constructor.

Parameters:
source - The source UsbServices.
device - The UsbDevice involved in the event.
Method Detail

getUsbServices

public UsbServices getUsbServices()
Get the UsbServices.

Returns:
The associated UsbServices.

getUsbDevice

public UsbDevice getUsbDevice()
Get the UsbDevice.

Returns:
The associated UsbDevice.