com.artima.place
Class ProgressEvent

java.lang.Object
  |
  +--java.util.EventObject
        |
        +--com.artima.place.ProgressEvent
All Implemented Interfaces:
java.io.Serializable

public class ProgressEvent
extends java.util.EventObject

An event that indicates a revised progress of a Link activation expressed in terms of percent complete.

See Also:
Serialized Form

Fields inherited from class java.util.EventObject
source
 
Constructor Summary
ProgressEvent(ProgressEventGenerator source, int percentComplete)
          Constructs a ProgressEvent object with the specified percent completion.
 
Method Summary
 int getPercentComplete()
          Returns the percent complete for this Link activation.
 
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
 

Constructor Detail

ProgressEvent

public ProgressEvent(ProgressEventGenerator source,
                     int percentComplete)
Constructs a ProgressEvent object with the specified percent completion.
Parameters:
source - the source of this ProgressEvent
percentComplete - the percentage of completion that this ProgressEvent represents
Throws:
NullPointerException - if passed source is null
java.lang.IllegalArgumentException - if percentComplete is less than zero or greater than 100
Method Detail

getPercentComplete

public int getPercentComplete()
Returns the percent complete for this Link activation.
Returns:
the percent complete for this Link activation.