org.jdesktop.application
Class TaskEvent<T>

java.lang.Object
  extended by java.util.EventObject
      extended by org.jdesktop.application.TaskEvent<T>
Type Parameters:
T -
All Implemented Interfaces:
java.io.Serializable

public class TaskEvent<T>
extends java.util.EventObject

An encapsulation of the value produced one of the Task execution methods: doInBackground(), process, done. The source of a TaskEvent is the Task that produced the value.

See Also:
TaskListener, Task, Serialized Form

Field Summary
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
TaskEvent(Task source, T value)
          Construct a TaskEvent.
 
Method Summary
 T getValue()
          Returns the value this event represents.
 
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

TaskEvent

public TaskEvent(Task source,
                 T value)
Construct a TaskEvent.

Parameters:
source - the Task that produced the value.
value - the value, null if type T is Void.
Method Detail

getValue

public final T getValue()
Returns the value this event represents.

Returns:
the value constructor argument.