net.sf.bloof.util
Class ProgressEvent

java.lang.Object
  |
  +--net.sf.bloof.util.ProgressEvent

public class ProgressEvent
extends java.lang.Object

A semantic event which indicates that a progress occured. This event is generated by a component ( such as a Metrics ) when the component-specific event occurs ( e.g. 30% of the calculation is finished ). The event is passed to every every ProgrssListener object that registered to receive such events using the component's addProgressListener method. The object that implements the ProgressListener interface gets this ProgressEvent when the event occurs.

Version:
$Id: ProgressEvent.java,v 1.4 2003/08/18 11:13:00 pekacki Exp $
Author:
Lukasz Pekacki

Constructor Summary
ProgressEvent()
          Constructs an ProgressEvent with progess percentate = 0 and empty message
ProgressEvent(java.lang.String aMessage)
          Constructs an ProgressEvent with progess percentate = 0
ProgressEvent(java.lang.String aMessage, int aPercentage)
          Constructs an ProgressEvent
 
Method Summary
 java.lang.String getMessage()
          Returns the message.
 int getPercentage()
          Returns the percentage.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ProgressEvent

public ProgressEvent()
Constructs an ProgressEvent with progess percentate = 0 and empty message


ProgressEvent

public ProgressEvent(java.lang.String aMessage)
Constructs an ProgressEvent with progess percentate = 0

Parameters:
aMessage - Message of the Event

ProgressEvent

public ProgressEvent(java.lang.String aMessage,
                     int aPercentage)
Constructs an ProgressEvent

Parameters:
aMessage - Message of the Event
aPercentage - Percentage of the Progress of the total Action
Method Detail

getMessage

public java.lang.String getMessage()
Returns the message.

Returns:
String

getPercentage

public int getPercentage()
Returns the percentage.

Returns:
int

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object
See Also:
Object.toString()


Copyright © 2003 bloof@Sourceforge. All Rights Reserved.