org.brains2b.task
Class TaskEvent

java.lang.Object
  extended byjava.util.EventObject
      extended byjava.awt.AWTEvent
          extended byorg.brains2b.task.TaskEvent
All Implemented Interfaces:
java.io.Serializable

public class TaskEvent
extends java.awt.AWTEvent

TaskEvent is fired when a task notifies its Listeners that it has either made progress or is finished

Version:
0.10 [12-07-2002]
Author:
dennis@brains2b.nl
See Also:
Serialized Form

Field Summary
 
Fields inherited from class java.awt.AWTEvent
ACTION_EVENT_MASK, ADJUSTMENT_EVENT_MASK, COMPONENT_EVENT_MASK, consumed, CONTAINER_EVENT_MASK, FOCUS_EVENT_MASK, HIERARCHY_BOUNDS_EVENT_MASK, HIERARCHY_EVENT_MASK, id, INPUT_METHOD_EVENT_MASK, INVOCATION_EVENT_MASK, ITEM_EVENT_MASK, KEY_EVENT_MASK, MOUSE_EVENT_MASK, MOUSE_MOTION_EVENT_MASK, MOUSE_WHEEL_EVENT_MASK, PAINT_EVENT_MASK, RESERVED_ID_MAX, TEXT_EVENT_MASK, WINDOW_EVENT_MASK, WINDOW_FOCUS_EVENT_MASK, WINDOW_STATE_EVENT_MASK
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
TaskEvent(java.lang.Object source, int id)
          Constructor for TaskEvent.
TaskEvent(java.lang.Object source, int id, int min, int value, int max)
          Constructor for TaskEvent.
 
Method Summary
 int getMax()
          Gets the maximum position.
 int getMin()
          Gets the minimum position .
 int getPosition()
          Gets the position.
 boolean isFinished()
          True if Task has finished
 void setFinished(boolean finished)
          set to true if task has finished
 
Methods inherited from class java.awt.AWTEvent
consume, getID, isConsumed, paramString, setSource, toString
 
Methods inherited from class java.util.EventObject
getSource
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

TaskEvent

public TaskEvent(java.lang.Object source,
                 int id)
Constructor for TaskEvent.

Parameters:
source -
id -

TaskEvent

public TaskEvent(java.lang.Object source,
                 int id,
                 int min,
                 int value,
                 int max)
Constructor for TaskEvent.

Parameters:
source -
id -
Method Detail

getMin

public int getMin()
Gets the minimum position .

Returns:
Returns a int

getMax

public int getMax()
Gets the maximum position.

Returns:
Returns a int

getPosition

public int getPosition()
Gets the position.

Returns:
Returns a int

isFinished

public boolean isFinished()
True if Task has finished

Returns:
Returns a boolean

setFinished

public void setFinished(boolean finished)
set to true if task has finished

Parameters:
finished - The finished to set