
public class TaskEvent extends EventObject
Task.TaskEventSource,
Serialized Form| Modifier and Type | Field and Description |
|---|---|
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. |
source| Constructor and Description |
|---|
TaskEvent(Task source,
int type)
Creates a new instance of
TaskEvent. |
public static final int CHANGED_STATE
Task changed.public static final int ENDED
Task.public static final int STARTED
Task.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.public final Task getTask()
Task producing the event.public final int getType()
type.public String toString()
toString in class EventObjectCopyright © 2005-2012 jDTAUS. All Rights Reserved.