DESY ACOP Beans Home

com.cosylab.gui.components
Class ProgressEvent

java.lang.Object
  extended by java.util.EventObject
      extended by com.cosylab.gui.components.ProgressEvent
All Implemented Interfaces:
java.io.Serializable

public class ProgressEvent
extends java.util.EventObject

Event for describing task progress change.

Version:
$id$
Author:
Ales Pucelj
See Also:
Serialized Form

Field Summary
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
ProgressEvent(java.lang.Object source, java.lang.String status, int current, int total)
          Creates new instance of progress change event.
 
Method Summary
 int getCurrent()
          Returns current value of progress.
 java.lang.String getStatus()
          Returns status description.
 int getTotal()
          Returns total ammount.
 
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(java.lang.Object source,
                     java.lang.String status,
                     int current,
                     int total)
Creates new instance of progress change event.

Parameters:
source - ProgressMonitor that has triggered this event.
status - Text description of progress.
current - New progress value.
total - Progress value when completed.
Method Detail

getCurrent

public int getCurrent()
Returns current value of progress.

Returns:
current value of progress.

getStatus

public java.lang.String getStatus()
Returns status description.

Returns:
Textual description of current status.

getTotal

public int getTotal()
Returns total ammount.

Returns:
total ammount for progress.


Copyright © 2010. All Rights Reserved.