org.jdesktop.swingx.event
Class ProgressEvent
java.lang.Object
java.util.EventObject
org.jdesktop.swingx.event.MessageEvent
org.jdesktop.swingx.event.ProgressEvent
- All Implemented Interfaces:
- java.io.Serializable
public class ProgressEvent
- extends MessageEvent
A MessageEvent that represents the cycle of a long running operation.
Use the constructors to indicate the stage of the operation.
- Author:
- Mark Davidson
- See Also:
- Serialized Form
Fields inherited from class java.util.EventObject |
source |
Constructor Summary |
ProgressEvent(java.lang.Object source)
Constructs an indeterminate progress event. |
ProgressEvent(java.lang.Object source,
int progress)
Constructs a progress event used to indicate an increment of progress. |
ProgressEvent(java.lang.Object source,
int min,
int max)
Constructs a ProgressEvent which indicates the beginning of a long operation. |
Methods inherited from class java.util.EventObject |
getSource |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
ProgressEvent
public ProgressEvent(java.lang.Object source)
- Constructs an indeterminate progress event.
ProgressEvent
public ProgressEvent(java.lang.Object source,
int progress)
- Constructs a progress event used to indicate an increment of progress.
- Parameters:
source
- the object which orignated the eventprogress
- the value between min and max which indicates
the progression of the operation.
ProgressEvent
public ProgressEvent(java.lang.Object source,
int min,
int max)
- Constructs a ProgressEvent which indicates the beginning of a long operation.
For a determinite progress operation, the minimum value should be less than
the maximum value. For indterminate operations, set minimum equal to maximum.
- Parameters:
source
- the object which orignated the eventmin
- the minimum value of the progress operationmax
- the maximum value of the progress operation
getMaximum
public int getMaximum()
getMinimum
public int getMinimum()
isIndeterminate
public boolean isIndeterminate()
getProgress
public int getProgress()
Copyright © 2005 Sun Microsystems All Rights Reserved.