org.jdtaus.core.monitor
Class TaskEvent

java.lang.Object
  extended byjava.util.EventObject
      extended byorg.jdtaus.core.monitor.TaskEvent
All Implemented Interfaces:
Serializable

public class TaskEvent
extends EventObject

Event produced by a .

Version:
$Id: TaskEvent.java 2201 2007-03-21 23:59:00Z schulte2005 $
Author:
Christian Schulte
See Also:
Serialized Form

Field Summary
static int CHANGED_STATE
          Event constant indicating that state of a changed.
static int ENDED
          Event constant indicating the end of a .
static int STARTED
          Event constant indicating the start of a .
 
Constructor Summary
TaskEvent(Task source, int type)
          Creates a new instance of .
 
Method Summary
 Task getTask()
          Accessor to the producing the event.
 int getType()
          Getter for property .
 String toString()
          Returns a string representation of the object.
 
Methods inherited from class java.util.EventObject
getSource
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

CHANGED_STATE

public static final int CHANGED_STATE
Event constant indicating that state of a changed.

See Also:
Constant Field Values

ENDED

public static final int ENDED
Event constant indicating the end of a .

See Also:
Constant Field Values

STARTED

public static final int STARTED
Event constant indicating the start of a .

See Also:
Constant Field Values
Constructor Detail

TaskEvent

public TaskEvent(Task source,
                 int type)
Creates a new instance of .

Parameters:
source - the task producing the new event.
type - constant indicating the type of the event.
Throws:
IllegalArgumentException - if is not equal to one of the constants , or .
Method Detail

getTask

public final Task getTask()
Accessor to the producing the event.

Returns:
the source of the event.

getType

public final int getType()
Getter for property .

Returns:
the type of the event.

toString

public String toString()
Returns a string representation of the object.

Returns:
a string representation of the object.


Copyright © 2005-2007 jDTAUS. All Rights Reserved.