org.jdesktop.swingx.event
Class BackgroundEvent
java.lang.Object
java.util.EventObject
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
BackgroundEvent
public BackgroundEvent(BackgroundWorker source)
- Creates a new instance of BackgroundEvent
BackgroundEvent
public BackgroundEvent(BackgroundWorker source,
Object[] data)
- Creates a new instance of BackgroundEvent
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.