public final class ProgressEvent extends EventObject
Modifier and Type | Field and Description |
---|---|
static int |
START
Start event id
|
static int |
STEP
Step event id
|
static int |
STOP
Stop event id
|
source
Constructor and Description |
---|
ProgressEvent(Object source,
int eventId)
Creates ProgressEvent instance.
|
ProgressEvent(Object source,
int eventId,
int operationType,
int count)
Creates ProgressEvent instance.
|
Modifier and Type | Method and Description |
---|---|
int |
getCount()
Returns step count.
|
int |
getEventId()
Returns ID of the event.
|
int |
getOperationType()
Returns operation type.
|
getSource, toString
public static final int START
public static final int STEP
public static final int STOP
public ProgressEvent(@NonNull Object source, int eventId)
source
- Source of the event.eventId
- ID of the event.public ProgressEvent(@NonNull Object source, int eventId, int operationType, int count)
source
- Source of the event.eventId
- ID of the event.operationType
- Source-specific number identifying source operation that
is being processed.count
- Number of steps that the processed opration consists of.public int getEventId()
public int getOperationType()
public int getCount()