org.jdesktop.swingx.event
Class BackgroundEvent

java.lang.Object
  extended by java.util.EventObject
      extended by org.jdesktop.swingx.event.BackgroundEvent
All Implemented Interfaces:
Serializable

public class BackgroundEvent
extends EventObject

The Event object for events fired to BackgroundListeners. If data has been published, it can be retrieved via the getData() method.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
BackgroundEvent(BackgroundWorker source)
          Creates a new instance of BackgroundEvent
BackgroundEvent(BackgroundWorker source, Object[] data)
          Creates a new instance of BackgroundEvent
 
Method Summary
 Object[] getData()
           
 BackgroundWorker getWorker()
           
 
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

BackgroundEvent

public BackgroundEvent(BackgroundWorker source)
Creates a new instance of BackgroundEvent


BackgroundEvent

public BackgroundEvent(BackgroundWorker source,
                       Object[] data)
Creates a new instance of BackgroundEvent

Method Detail

getWorker

public BackgroundWorker getWorker()
Returns:
the BackgroundWorker that fired the event

getData

public Object[] getData()
Returns:
data associated with the event. In particular, this is used in the process method of the BackgroundListener to retrieve data that is to be displayed in the GUI.