⇒ Index (Frames) |  ⇒ Index (No Frames) |  ⇒ Package |  ⇒ Package Tree |  ⇒ Full Tree 
gnu.mail.treeutil

Class StatusEvent

EventObject
|
+--gnu.mail.treeutil.StatusEvent


public class StatusEvent
extends EventObject

A status message.
Author:

Field Summary

static int

OPERATION_END

static int

OPERATION_START

A status message.

static int

OPERATION_UPDATE

static int

UNKNOWN

int

maximum

int

minimum

String

operation

int

type

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


OPERATION_START

public static final int OPERATION_START

A status message.

Author:

OPERATION_UPDATE

public static final int OPERATION_UPDATE


UNKNOWN

public static final int UNKNOWN


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.

Parameters:
source
type
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.

Parameters:
source
type
operation
minimum
maximum
value

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.