Groovy Documentation

org.jdesktop.swingx.event
[Java] Class BackgroundEvent

java.lang.Object
  java.util.EventObject
      org.jdesktop.swingx.event.BackgroundEvent

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.

Authors:
rbair


Field Summary
private Object[] data

 
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()

Returns:
data associated with the event.

BackgroundWorker getWorker()

@return the BackgroundWorker that fired the event

 
Methods inherited from class EventObject
toString, getSource, wait, wait, wait, equals, hashCode, getClass, notify, notifyAll
 
Methods inherited from class Object
wait, wait, wait, equals, toString, hashCode, getClass, notify, notifyAll
 

Field Detail

data

private Object[] data


 
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

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.


getWorker

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


 

Groovy Documentation