org.caleigo.core
Class IDataTransaction.ProgressEvent

java.lang.Object
  extended byjava.util.EventObject
      extended byorg.caleigo.core.IDataTransaction.ProgressEvent
All Implemented Interfaces:
java.io.Serializable
Enclosing class:
IDataTransaction

public static final class IDataTransaction.ProgressEvent
extends java.util.EventObject

Event classed used by IProgressListener.

See Also:
Serialized Form

Field Summary
static int CANCELED
           
static int COMPLETED
           
static int FAILED
           
static int PROGRESS_CHANGED
           
static int STARTED
           
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
IDataTransaction.ProgressEvent(IDataTransaction.Job job, int eventType)
           
IDataTransaction.ProgressEvent(IDataTransaction.Job job, int eventType, int maxProgress, int currentProgress)
           
 
Method Summary
 int getCurrentProgress()
          Returns the current progress of the job, or -1 if no progress information is avilable.
 int getEventType()
           
 IDataTransaction.Job getJob()
           
 int getMaxProgress()
          Returns the mximum progress of the job, or -1 if no progress information is avilable.
 
Methods inherited from class java.util.EventObject
getSource, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

STARTED

public static final int STARTED
See Also:
Constant Field Values

COMPLETED

public static final int COMPLETED
See Also:
Constant Field Values

CANCELED

public static final int CANCELED
See Also:
Constant Field Values

FAILED

public static final int FAILED
See Also:
Constant Field Values

PROGRESS_CHANGED

public static final int PROGRESS_CHANGED
See Also:
Constant Field Values
Constructor Detail

IDataTransaction.ProgressEvent

public IDataTransaction.ProgressEvent(IDataTransaction.Job job,
                                      int eventType)

IDataTransaction.ProgressEvent

public IDataTransaction.ProgressEvent(IDataTransaction.Job job,
                                      int eventType,
                                      int maxProgress,
                                      int currentProgress)
Method Detail

getEventType

public int getEventType()

getJob

public IDataTransaction.Job getJob()

getMaxProgress

public int getMaxProgress()
Returns the mximum progress of the job, or -1 if no progress information is avilable.


getCurrentProgress

public int getCurrentProgress()
Returns the current progress of the job, or -1 if no progress information is avilable.



Copyright © 2005 Caleigo. All Rights Reserved.