gnu.mail.treeutil

Class StatusEvent


public class StatusEvent
extends EventObject

A status message.

Field Summary

static int
OPERATION_END
static int
OPERATION_START
static int
OPERATION_UPDATE
static int
UNKNOWN
protected int
maximum
protected int
minimum
protected String
operation
protected int
type
protected int
value

Constructor Summary

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.

Method Summary

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.

Field Details

OPERATION_END

public static final int OPERATION_END

Field Value:
2


OPERATION_START

public static final int OPERATION_START

Field Value:
0


OPERATION_UPDATE

public static final int OPERATION_UPDATE

Field Value:
1


UNKNOWN

public static final int UNKNOWN

Field Value:
-1


maximum

protected int maximum


minimum

protected int minimum


operation

protected String operation


type

protected int type


value

protected int value

Constructor Details

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.

Method Details

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.