public final class ProgressEvent extends EventObject
| Modifier and Type | Class and Description |
|---|---|
static class |
ProgressEvent.State
The possible states of a progress event.
|
source| Constructor and Description |
|---|
ProgressEvent(Object source,
ProgressEvent.State state)
Creates a new
ProgressEvent object. |
ProgressEvent(Object source,
ProgressEvent.State state,
int step,
int maxSteps)
Creates a new
ProgressEvent object. |
ProgressEvent(Object source,
ProgressEvent.State state,
int step,
int maxSteps,
String message)
Creates a new
ProgressEvent object. |
ProgressEvent(Object source,
ProgressEvent.State state,
String message)
Creates a new
ProgressEvent object. |
| Modifier and Type | Method and Description |
|---|---|
int |
getMaxSteps()
The maximal amount of steps of the observed progressing process.
|
String |
getMessage()
Gets the message associated with this event.
|
int |
getPercentFinished()
Gets the finish percentage.
|
ProgressEvent.State |
getState()
Gets the
State of this ProgressEvent. |
int |
getStep()
The current step of the observed progressing process.
|
boolean |
isIndeterminate()
Returns the isIndeterminate state of the
ProgressEvent. |
String |
toString() |
getSourcepublic ProgressEvent(Object source, ProgressEvent.State state)
ProgressEvent object. Equal to calling
ProgressEvent(java.lang.Object, de.cismet.commons.utils.ProgressEvent.State, int, int) with 0 as step
and 0 as maxSteps.source - the source of the eventstate - the state of the eventpublic ProgressEvent(Object source, ProgressEvent.State state, String message)
ProgressEvent object. Equal to calling
ProgressEvent(java.lang.Object, de.cismet.commons.utils.ProgressEvent.State, int, int, java.lang.String)
with 0 as step and 0 as maxSteps.source - the source of the eventstate - the state of the eventmessage - the message to indicate what this event is all about, usually localisedpublic ProgressEvent(Object source, ProgressEvent.State state, int step, int maxSteps)
ProgressEvent object. Equal to calling
ProgressEvent(java.lang.Object, de.cismet.commons.utils.ProgressEvent.State, int, int, java.lang.String)
with null as message.source - the source of the eventstate - the state of the eventstep - the current step or 0 if it is isIndeterminatemaxSteps - the current maxsteps of 0 if it is isIndeterminatepublic ProgressEvent(Object source, ProgressEvent.State state, int step, int maxSteps, String message)
ProgressEvent object.source - the source of the eventstate - the state of the eventstep - the current step or 0 if it is isIndeterminatemaxSteps - the current maxsteps of 0 if it is isIndeterminatemessage - the message to indicate what this event is all about, usually localisedpublic ProgressEvent.State getState()
State of this ProgressEvent.State of this ProgressEventpublic int getPercentFinished()
isIndeterminate()public boolean isIndeterminate()
ProgressEvent. A ProgressEvent is considered
isIndeterminate if either getStep() or getMaxSteps() is 0.true if either getStep() or getMaxSteps() is 0public int getStep()
isIndeterminate().public int getMaxSteps()
isIndeterminate().public String getMessage()
public String toString()
toString in class EventObjectCopyright © 2012–2026 cismet GmbH. All rights reserved.