Class TaskEvent<T>

java.lang.Object
java.util.EventObject
org.jdesktop.application.TaskEvent<T>
All Implemented Interfaces:
Serializable

public class TaskEvent<T> extends 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:
  • Constructor Details

    • 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 Details

    • getValue

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