|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjava.util.EventObject
org.jdtaus.core.monitor.TaskEvent
public class TaskEvent
Event produced by a Task.
TaskEventSource,
Serialized Form| Field Summary | |
|---|---|
static int |
CHANGED_STATE
Event constant indicating that state of a Task changed. |
static int |
ENDED
Event constant indicating the end of a Task. |
static int |
STARTED
Event constant indicating the start of a Task. |
| Constructor Summary | |
|---|---|
TaskEvent(Task source,
int type)
Creates a new instance of TaskEvent. |
|
| Method Summary | |
|---|---|
Task |
getTask()
Gets the Task producing the event. |
int |
getType()
Getter for property type. |
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 |
|---|
public static final int CHANGED_STATE
Task changed.
public static final int ENDED
Task.
public static final int STARTED
Task.
| Constructor Detail |
|---|
public TaskEvent(Task source,
int type)
TaskEvent.
source - the task producing the new event.type - constant indicating the type of the event.
IllegalArgumentException - if type is not equal to one of
the constants STARTED, CHANGED_STATE or ENDED.| Method Detail |
|---|
public final Task getTask()
Task producing the event.
public final int getType()
type.
public String toString()
toString in class EventObject
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||