All Packages Class Hierarchy This Package Previous Next Index
Class com.ibm.eNetwork.ECL.event.ECLProgressEvent
java.lang.Object
|
+----com.ibm.eNetwork.ECL.event.ECLEvent
|
+----com.ibm.eNetwork.ECL.event.ECLProgressEvent
- public class ECLProgressEvent
- extends ECLEvent
Base progress event class.
-
CANCEL
-
-
END
-
-
PROGRESS
-
-
START
-
-
ECLProgressEvent(Object, long, long)
- Constructor for generating a new ECLProgressEvent.
-
ECLProgressEvent(Object, long, long, int)
- Constructor for generating a new ECLProgressEvent with the specified
type.
-
GetType()
- Returns the type of progress event.
-
GetUnitsDone()
- Returns the total number of units of work completed.
-
GetUnitsToDo()
- Returns the total number of units of work to do.
START
public static final int START
PROGRESS
public static final int PROGRESS
END
public static final int END
CANCEL
public static final int CANCEL
ECLProgressEvent
public ECLProgressEvent(Object source,
long unitsDone,
long unitsToDo)
- Constructor for generating a new ECLProgressEvent. If unitsDone is zero,
the event type will be START. If unitsDone equals unitsToDo, the
event type will be END. In all other cases, the event type will default
to PROGRESS.
- Parameters:
- source - The source of the event.
- unitsDone - The number of units of work done.
- unitsToDo - The total number of units of work to do.
ECLProgressEvent
public ECLProgressEvent(Object source,
long unitsDone,
long unitsToDo,
int type)
- Constructor for generating a new ECLProgressEvent with the specified
type.
- Parameters:
- source - The source of the event.
- unitsDone - The number of units of work done.
- unitsToDo - The total number of units of work to do.
- type - The type of event.
GetType
public int GetType()
- Returns the type of progress event.
- Returns:
- one of the following event types: START, PROGRESS, END, CANCEL.
GetUnitsDone
public long GetUnitsDone()
- Returns the total number of units of work completed.
GetUnitsToDo
public long GetUnitsToDo()
- Returns the total number of units of work to do.
All Packages Class Hierarchy This Package Previous Next Index