gnu.mail.treeutil
Class StatusEvent
EventObject
gnu.mail.treeutil.StatusEvent
public class StatusEvent
extends EventObject
A status message.
StatusEvent(Object source, int type, String operation) - Creates a new status event with the specified type and operation.
|
StatusEvent(Object source, int type, String operation, int minimum, int maximum, int value) - Creates a new status event representing an update of the specified operation.
|
int | getMaximum() - Returns the end point of the operation.
|
int | getMinimum() - Returns the start point of the operation.
|
String | getOperation() - Returns a string describing the operation being performed.
|
int | getType() - Returns the type of event (OPERATION_START, OPERATION_UPDATE, or OPERATION_END).
|
int | getValue() - Returns the current point in the operation.
|
OPERATION_END
public static final int OPERATION_END
- 2
OPERATION_START
public static final int OPERATION_START
- 0
OPERATION_UPDATE
public static final int OPERATION_UPDATE
- 1
UNKNOWN
public static final int UNKNOWN
- -1
maximum
protected int maximum
minimum
protected int minimum
operation
protected String operation
StatusEvent
public StatusEvent(Object source,
int type,
String operation)
Creates a new status event with the specified type and operation.
StatusEvent
public StatusEvent(Object source,
int type,
String operation,
int minimum,
int maximum,
int value)
Creates a new status event representing an update of the specified operation.
getMaximum
public int getMaximum()
Returns the end point of the operation.
getMinimum
public int getMinimum()
Returns the start point of the operation.
getOperation
public String getOperation()
Returns a string describing the operation being performed.
getType
public int getType()
Returns the type of event (OPERATION_START, OPERATION_UPDATE, or OPERATION_END).
getValue
public int getValue()
Returns the current point in the operation.